From 58565a33ed8ca46cd1d3745f96786f3b4b0ebda3 Mon Sep 17 00:00:00 2001 From: Sanjiv Kumar Gupta Date: Tue, 24 Feb 2004 17:28:33 +0000 Subject: target-def.h (TARGET_SCHED_INIT_GLOBAL, [...]): New macros. 2003-02-24 Sanjiv Kumar Gupta * target-def.h (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_FINISH_GLOBAL): New macros. * target.h (md_init_global, md_finish_global): Function declarations corresponding to new target macros. * haifa-sched.c (sched_init, sched_finish): Allow target to call the new schedular hooks. * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in call to update_life_info. * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable flag_schedule_insns for SH4. * config/sh/sh.c (sh_md_init_global, sh_md_finish_global, find_set_regmode_weight, find_insn_regmode_weight, find_regmode_weight), sh_md_init, sh_dfa_new_cycle, sh_variable_issue, high_pressure, ready_reorder, rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New functions used to throttle the insn movement in first scheduling pass for SH. * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and TARGET_SCHED_FINISH_GLOBAL. From-SVN: r78374 --- gcc/doc/tm.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gcc/doc') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index e618c8e..1ffa5ee 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5571,6 +5571,19 @@ to. @var{verbose} is the verbose level provided by @option{-fsched-verbose-@var{n}}. @end deftypefn +@deftypefn {Target Hook} void TARGET_SCHED_INIT_GLOBAL (FILE *@var{file}, int @var{verbose}, int @var{old_max_uid}) +This hook is executed by the scheduler after function level initializations. +@var{file} is either a null pointer, or a stdio stream to write any debug output to. +@var{verbose} is the verbose level provided by @option{-fsched-verbose-@var{n}}. +@var{old_max_uid} is the maximum insn uid when scheduling begins. +@end deftypefn + +@deftypefn {Target Hook} void TARGET_SCHED_FINISH_GLOBAL (FILE *@var{file}, int @var{verbose}) +This is the cleanup hook corresponding to TARGET_SCHED_INIT_GLOBAL. +@var{file} is either a null pointer, or a stdio stream to write any debug output to. +@var{verbose} is the verbose level provided by @option{-fsched-verbose-@var{n}}. +@end deftypefn + @deftypefn {Target Hook} int TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE (void) This hook is called many times during insn scheduling. If the hook returns nonzero, the automaton based pipeline description is used for -- cgit v1.1