This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
A question regarding emitting additional info to an insn
- From: Revital1 Eres <ERES at il dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Cc: meissner at linux dot vnet dot ibm dot com, Trevor_Smigiel at playstation dot sony dot com
- Date: Thu, 13 Nov 2008 18:01:27 +0200
- Subject: 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