summaryrefslogtreecommitdiff
path: root/gcc/cfglayout.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-05 15:38:01 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-05 15:38:01 +0000
commit521a4359f7f50790563d9b5a8fc83c09ad433c63 (patch)
treeeeb94824f44e30df6454e8ba4f18f0eff58451bb /gcc/cfglayout.h
parent99a474605a477d56e1c92705824bd613c6c908bf (diff)
downloadgcc-521a4359f7f50790563d9b5a8fc83c09ad433c63.tar.gz
* 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; git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46786 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.h')
-rw-r--r--gcc/cfglayout.h37
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));