A question regarding emitting additional info to an insn

Revital1 Eres ERES@il.ibm.com
Thu Nov 13 20:30:00 GMT 2008


Hello,

I want print additional information for each branch insn which will be
used by the linker (for the SPU software i-cache), for example:

brsl $lr,foo@info

and I wonder what is the best way to implement it in GCC.

I defined a new note (in reg-notes.def) which can be attached to each
branch (using add_reg_note ()) and holds that info.  I now want to print
the information of that note when emitting the branch, but I am not
sure exactly how to do that.  Should I change the instruction template
to use the reg-notes?

Thanks,
Revital



More information about the Gcc mailing list