"Balaji V. Iyer" <bvi...@ncsu.edu> writes:

> This is what I want to do: I want the scheduling phase to say an RTX X
> must be allocated registers from Register CLASS A. So how can I tell
> register allocator to do this?

Not in any convenient way, no.  The closest you could come would be to
have several different copies of the insn, which used different
register classes, and have some machine-dependent part of your
scheduler generate that insn.  That would be quite awkward.  You might
be better off extending the compiler to somehow permit register
classes to examine the insn attributes, and also extending the
compiler to permit the scheduler to somehow set attributes for an
insn.  In general gcc's support for VLIW machines is weak.

Ian

Reply via email to