diff options
author | Jan Hubicka <jh@suse.cz> | 2001-11-05 16:38:01 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-11-05 15:38:01 +0000 |
commit | d56a82115f7863493cbfc6d739420777270ab22b (patch) | |
tree | eeb94824f44e30df6454e8ba4f18f0eff58451bb /gcc/cfglayout.h | |
parent | 3b0c635f60049f111e7ee358aea56c734a19d2cc (diff) | |
download | gcc-d56a82115f7863493cbfc6d739420777270ab22b.tar.gz |
Makefile.in (bb-reoder.o): Add depdendency on cfglayout.h; remove unneded depdendencies;
* Makefile.in (bb-reoder.o): Add depdendency on cfglayout.h;
remove unneded depdendencies;
(cfglayout.o): New.
* cfglayout.c, cfglayout.h: New files; break out from ...
* bb-reorder.c: ... here; Remove unneeded includes;
From-SVN: r46786
Diffstat (limited to 'gcc/cfglayout.h')
-rw-r--r-- | gcc/cfglayout.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc/cfglayout.h b/gcc/cfglayout.h new file mode 100644 index 00000000000..3c59e42ffd6 --- /dev/null +++ b/gcc/cfglayout.h @@ -0,0 +1,37 @@ +/* Basic block reordering routines for the GNU compiler. + Copyright (C) 2000 Free Software Foundation, Inc. + + This file is part of GCC. + + GCC is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GCC is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public + License for more details. + + You should have received a copy of the GNU General Public License + along with GCC; see the file COPYING. If not, write to the Free + Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. */ + +struct scope_def; +typedef struct scope_def *scope; + +/* Structure to hold information about the blocks during reordering. */ +typedef struct reorder_block_def +{ + rtx eff_head; + rtx eff_end; + scope scope; + basic_block next; + int visited; +} *reorder_block_def; + +#define RBI(BB) ((reorder_block_def) (BB)->aux) + +extern void cfg_layout_initialize PARAMS ((void)); +extern void cfg_layout_finalize PARAMS ((void)); |