target hooks for the scheduler

Neil Booth neil@daikokuya.demon.co.uk
Thu Aug 16 10:24:00 GMT 2001


Zachary Weinberg wrote:-

> +#define TARGET_SCHED	{TARGET_ADJUST_COST,		\
> +			 TARGET_ADJUST_PRIORITY,	\
> +			 TARGET_SCHED_INIT,		\
> +			 TARGET_SCHED_FINISH,		\
> +			 TARGET_SCHED_REORDER,		\
> +			 TARGET_SCHED_REORDER2,		\
> +			 TARGET_VARIABLE_ISSUE,		\
> +			 TARGET_ISSUE_RATE,		\
> +			 TARGET_CYCLE_DISPLAY}

Zack,

Could you have all these macros begin with TARGET_SCHED
(e.g. TARGET_SCHED_ADJUST_COST)?  The namespacing of the target macros
has been good so far; it would be nice to maintain this and follow the
TARGET_ASM example.

I kept the struct non-const as I could envisage it being useful to
replace target hooks at run time, maybe even just temporarily.

Thanks,

Neil.



More information about the Gcc-patches mailing list