This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Extracting destination register from an instruction
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Balaji V. Iyer" <bviyer at ncsu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: 16 Nov 2005 07:01:37 -0800
- Subject: Re: Extracting destination register from an instruction
- References: <57491.24.163.112.200.1132119165.squirrel@webmail.ncsu.edu>
"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