diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-13 21:13:47 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-13 21:13:47 +0000 |
commit | a3426c4cd1aa33f95043869f8b3b23357b929c3e (patch) | |
tree | 0572802e1e05e433b41457699177ccc9b910db73 /gcc/rtl.def | |
parent | d70eda17cf5bc22395d4332ced2b13b2606d66e2 (diff) | |
download | gcc-a3426c4cd1aa33f95043869f8b3b23357b929c3e.tar.gz |
* Makefile.in (HOST_RTL): Add $(HOST_PREFIX)bitmap.o.
(rtl.o, emit-rtl.o): Add dependency on bitmap.h.
($(HOST_PREFIX_1)rtl.o): Likewise.
($(HOST_PREFIX_1)bitmap.o): New host object.
* emit-rtl.c (toplevel): Include bitmap.h.
(gen_rtx): Handle 't' and 'b' nodes.
* print-rtl.c (print_rtx): Handle printing NOTE_INSN_LIVE notes.
Print block number for block begin/end notes. Print 't' type
nodes as a pointer. Know that the 3rd argument of live range
start/stop notes is really a range_info rtx. If type is 'b', print
out argument as a bitmap.
* rtl.c: Include bitmap.c.
(copy_rtx): Copy tree nodes as is. Copy bitmaps if type is 'b'.
(note_insn_name): Add NOTE_INSN_RANGE_{START,END}, NOTE_INSN_LIVE.
* rtl.def (RANGE_LIVE): New node to hold live information while we
recalculate the basic blocks.
(RANGE_REG, RANGE_INFO): New rtl types for live range splitting.
(RANGE_VAR): New node, to hold information saved in symbol node for New
communicating live range information to the debug output functions.
* rtl.h (rtunion_def): Add rttree and rtbit fields.
(XBITMAP, XTREE): New accessor macros.
(NOTE_LIVE_INFO): Overload NOTE_SOURCE_FILE for NOTE_INSN_LIVE notes.
(NOTE_RANGE_INFO): Similarly for NOTE_INSN_RANGE_{START,END} notes.
(NOTE_BLOCK_LIVE_RANGE_BLOCK): Define.
(NOTE_INSN_RANGE_START, NOTE_INSN_RANGE_END, NOTE_INSN_LIVE): New notes.
(RANGE_LIVE_{BITMAP,ORIG_BLOCK}): New accessor macros.
(RANGE_REG_{SYMBOL,BLOCK}_NODE, RANGE_VAR_*): New accessor macros.
(RANGE_INFO_*): Likewise.
* sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* haifa-sched.c (sched_analyze): Keep live range start/stop notes.
(unlink_other_notes): Likewise.
* tree.h (BLOCK_LIVE_RANGE_{START,END,VAR_FLAG}): New accessor macros.
(BLOCK_LIVE_RANGE_FLAG): Likewise.
(DECL_LIVE_RANGE_RTL): Likewise.
(struct tree_block): Add live_range_flag, live_range_var_flag,
live_range_start and live_range_end.
(struct tree_decl): Add live_range_rtl field.
* gengenrtl.c (type_from_format): Handle 'b' and 't'.
(accessor_from_format): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19727 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.def')
-rw-r--r-- | gcc/rtl.def | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gcc/rtl.def b/gcc/rtl.def index 8eef0bab122..6d02c61e29e 100644 --- a/gcc/rtl.def +++ b/gcc/rtl.def @@ -796,6 +796,44 @@ DEF_RTL_EXPR(HIGH, "high", "e", 'o') of a constant expression. */ DEF_RTL_EXPR(LO_SUM, "lo_sum", "ee", 'o') +/* Header for range information. Operand 0 is the NOTE_INSN_RANGE_START insn. + Operand 1 is the NOTE_INSN_RANGE_END insn. Operand 2 is a vector of all of + the registers that can be substituted within this range. Operand 3 is the + number of calls in the range. Operand 4 is the number of insns in the + range. Operand 5 is the unique range number for this range. Operand 6 is + the basic block # of the start of the live range. Operand 7 is the basic + block # of the end of the live range. Operand 8 is the loop depth. Operand + 9 is a bitmap of the registers live at the start of the range. Operand 10 + is a bitmap of the registers live at the end of the range. Operand 11 is + marker number for the start of the range. Operand 12 is the marker number + for the end of the range. */ +DEF_RTL_EXPR(RANGE_INFO, "range_info", "uuEiiiiiibbii", 'x') + +/* Registers that can be substituted within the range. Operand 0 is the + original pseudo register number. Operand 1 will be filled in with the + pseudo register the value is copied for the duration of the range. Operand + 2 is the number of references within the range to the register. Operand 3 + is the number of sets or clobbers of the register in the range. Operand 4 + is the number of deaths the register has. Operand 5 is the copy flags that + give the status of whether a copy is needed from the original register to + the new register at the beginning of the range, or whether a copy from the + new register back to the original at the end of the range. Operand 6 is the + live length. Operand 7 is the number of calls that this register is live + across. Operand 8 is the symbol node of the variable if the register is a + user variable. Operand 9 is the block node that the variable is declared + in if the register is a user variable. */ +DEF_RTL_EXPR(RANGE_REG, "range_reg", "iiiiiiiitt", 'x') + +/* Information about a local variable's ranges. Operand 0 is an EXPR_LIST of + the different ranges a variable is in where it is copied to a different + pseudo register. Operand 1 is the block that the variable is declared in. + Operand 2 is the number of distinct ranges. */ +DEF_RTL_EXPR(RANGE_VAR, "range_var", "eti", 'x') + +/* Information about the registers that are live at the current point. Operand + 0 is the live bitmap. Operand 1 is the original block number. */ +DEF_RTL_EXPR(RANGE_LIVE, "range_live", "bi", 'x') + /* Local variables: mode:c |