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]

A question regarding emitting additional info to an insn


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


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