diff options
author | Diego Novillo <dnovillo@redhat.com> | 2001-07-10 03:50:25 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2001-07-09 23:50:25 -0400 |
commit | 2b1d9dc0efa7f724ce91c3463b1f5a70ab936cd1 (patch) | |
tree | 6798316b89ab69c995e28b442a4782b978b2535b /gcc/basic-block.h | |
parent | 70bdc2ff0aa08ce5166cd202074100eea97a653d (diff) | |
download | gcc-2b1d9dc0efa7f724ce91c3463b1f5a70ab936cd1.zip gcc-2b1d9dc0efa7f724ce91c3463b1f5a70ab936cd1.tar.gz gcc-2b1d9dc0efa7f724ce91c3463b1f5a70ab936cd1.tar.bz2 |
basic-block.h (tree_node): Forward declare if needed.
2001-07-09 Diego Novillo <dnovillo@redhat.com>
* basic-block.h (tree_node): Forward declare if needed.
(struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
(BLOCK_HEAD_TREE): Define.
(BLOCK_END_TREE): Define.
(struct loops): Rename field 'tree' to 'tree_root'.
* flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
'end_tree'.
(flow_loops_tree_build): Rename reference to field 'tree' to
'tree_root'.
(flow_loops_level_compute): Ditto.
* predict.c (estimate_bb_frequencies): Ditto.
* tree.h (struct tree_common): Add field 'aux'.
From-SVN: r43886
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index 256492e..5a2088e 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -26,6 +26,11 @@ Boston, MA 02111-1307, USA. */ #include "varray.h" #include "partition.h" +#ifndef TREE_CODE +union tree_node; +#define tree union tree_node * +#endif + /* Head of register set linked list. */ typedef bitmap_head regset_head; /* A pointer to a regset_head. */ @@ -174,6 +179,10 @@ typedef struct basic_block_def { /* The first and last insns of the block. */ rtx head, end; + /* The first and last trees of the block. */ + tree head_tree; + tree end_tree; + /* The edges into and out of the block. */ edge pred, succ; @@ -247,6 +256,9 @@ extern regset regs_live_at_setjmp; #define BLOCK_HEAD(B) (BASIC_BLOCK (B)->head) #define BLOCK_END(B) (BASIC_BLOCK (B)->end) +#define BLOCK_HEAD_TREE(B) (BASIC_BLOCK (B)->head_tree) +#define BLOCK_END_TREE(B) (BASIC_BLOCK (B)->end_tree) + /* Special block numbers [markers] for entry and exit. */ #define ENTRY_BLOCK (-1) #define EXIT_BLOCK (-2) @@ -433,7 +445,7 @@ struct loops struct loop *array; /* Pointer to root of loop heirachy tree. */ - struct loop *tree; + struct loop *tree_root; /* Information derived from the CFG. */ struct cfg |