From 07317795975eed83667457de5626ac56625cc59d Mon Sep 17 00:00:00 2001 From: mkuvyrkov Date: Wed, 22 Aug 2007 15:07:10 +0000 Subject: * 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 --- gcc/genattr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/genattr.c') diff --git a/gcc/genattr.c b/gcc/genattr.c index 9206abec655..8ff3cd38324 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -244,6 +244,9 @@ main (int argc, char **argv) printf (" DFA state. */\n"); printf ("extern int cpu_unit_reservation_p (state_t, int);\n"); printf ("#endif\n\n"); + printf ("/* The following function returns true if insn\n"); + printf (" has a dfa reservation. */\n"); + printf ("extern bool insn_has_dfa_reservation_p (rtx);\n\n"); printf ("/* Clean insn code cache. It should be called if there\n"); printf (" is a chance that condition value in a\n"); printf (" define_insn_reservation will be changed after\n"); -- cgit v1.2.1