diff options
author | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-22 15:07:10 +0000 |
---|---|---|
committer | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-22 15:07:10 +0000 |
commit | 07317795975eed83667457de5626ac56625cc59d (patch) | |
tree | 04fd8eda25f1831c163b4516b1d3c64f6b57fc22 /gcc/target-def.h | |
parent | 66b33c405eb8182375edb4bbd7a4470912a8f3ae (diff) | |
download | gcc-07317795975eed83667457de5626ac56625cc59d.tar.gz |
* target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
dfa_post_advance_cycle): New scheduler hooks.
* target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
new hooks.
(TARGET_SCHED): Use them.
* doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
* haifa-sched.c (advance_one_cycle): Invoke new hooks.
* genautomata.c (insn_has_dfa_reservation_p): New DFA interface
function to facilitate debugging.
(INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
(output_insn_has_dfa_reservation_p): New static function to output
insn_has_dfa_reservation_p ().
(write_automata): Use it.
* genattr.c (main): Output declaration for
insn_has_dfa_reservation_p ().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127707 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target-def.h')
-rw-r--r-- | gcc/target-def.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h index 12b329704bf..bdaf9f475a8 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -310,6 +310,8 @@ #define TARGET_SCHED_DFA_PRE_CYCLE_INSN 0 #define TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN 0 #define TARGET_SCHED_DFA_POST_CYCLE_INSN 0 +#define TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE 0 +#define TARGET_SCHED_DFA_POST_ADVANCE_CYCLE 0 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD 0 #define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD 0 #define TARGET_SCHED_DFA_NEW_CYCLE 0 @@ -337,7 +339,9 @@ TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN, \ TARGET_SCHED_DFA_PRE_CYCLE_INSN, \ TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN, \ - TARGET_SCHED_DFA_POST_CYCLE_INSN, \ + TARGET_SCHED_DFA_POST_CYCLE_INSN, \ + TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE, \ + TARGET_SCHED_DFA_POST_ADVANCE_CYCLE, \ TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD, \ TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD, \ TARGET_SCHED_DFA_NEW_CYCLE, \ |