summaryrefslogtreecommitdiff
path: root/gcc/varray.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-25 23:45:42 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-25 23:45:42 +0000
commit71caadc045ef9387efaa189404bba29d083a1771 (patch)
tree5f11cf1c6b61122849435f2ab564e45e67595e64 /gcc/varray.h
parente3e7d1c2029a646e0edad36cc7d3ad64dcab82bd (diff)
downloadgcc-71caadc045ef9387efaa189404bba29d083a1771.tar.gz
Flow rewrite to use basic block structures and edge lists.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25450 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varray.h')
-rw-r--r--gcc/varray.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/varray.h b/gcc/varray.h
index 5905773d190..7d4f6972f26 100644
--- a/gcc/varray.h
+++ b/gcc/varray.h
@@ -75,6 +75,7 @@ typedef union varray_data_tag {
struct sched_info_tag *sched[1];
struct reg_info_def *reg[1];
struct const_equiv_data const_equiv[1];
+ struct basic_block_def *bb[1];
} varray_data;
/* Virtual array of pointers header. */
@@ -146,6 +147,9 @@ extern varray_type varray_init PROTO ((size_t, size_t, const char *));
#define VARRAY_CONST_EQUIV_INIT(va, num, name) \
va = varray_init (num, sizeof (struct const_equiv_data), name)
+#define VARRAY_BB_INIT(va, num, name) \
+ va = varray_init (num, sizeof (struct basic_block_def *), name)
+
/* Free up memory allocated by the virtual array, but do not free any of the
elements involved. */
#define VARRAY_FREE(vp) \
@@ -189,6 +193,7 @@ extern varray_type varray_grow PROTO((varray_type, size_t));
#define VARRAY_BITMAP(VA, N) ((VA)->data.bitmap[ VARRAY_CHECK (VA, N) ])
#define VARRAY_SCHED(VA, N) ((VA)->data.sched[ VARRAY_CHECK (VA, N) ])
#define VARRAY_REG(VA, N) ((VA)->data.reg[ VARRAY_CHECK (VA, N) ])
-#define VARRAY_CONST_EQUIV(VA, N) ((VA)->data.const_equiv[ VARRAY_CHECK (VA, N) ])
+#define VARRAY_CONST_EQUIV(VA, N) ((VA)->data.const_equiv[VARRAY_CHECK (VA, N)])
+#define VARRAY_BB(VA, N) ((VA)->data.bb[ VARRAY_CHECK (VA, N) ])
#endif /* _VARRAY_H_ */