This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Extracting destination register from an instruction


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

>     I have  a question about finding register names from the instruction.
> I am porting GCC for a propriatery architecture and the thing is that,
> I want to group instructions whose destination registers are between
> 0-15 into one cluster and 16-31 in another. Firstly, I was under the
> impression that the only way I can do this is in the machine_dependent
> reorganization phase? Is there another way to do this?

Yes, in general you can only do VLIW instruction grouping in the
machine dependent reorganization phase, or in
TARGET_ASM_FUNCTION_PROLOGUE just before the final pass.

> Also, how can I extract destination register information from the
> instruction?

One way is to call note_stores and look for registers being changed.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]