From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Booth To: Zack Weinberg Cc: gcc-patches@gcc.gnu.org Subject: Re: target hooks for the scheduler Date: Thu, 16 Aug 2001 10:24:00 -0000 Message-id: <20010816182439.A8854@daikokuya.demon.co.uk> References: <20010816020315.A15039@panix.com> X-SW-Source: 2001-08/msg00976.html 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.