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]

Flagging rtx instructions


Hi all,

I am writing a port to a VLIW processor. I've got the compiler to
schedule the instructions using the new DFA scheduler, but now I want to
output the assembly for the instructions. To do this, I want to flag
whether a particular instruction is the last in its VLIW group. What is
the easiest way to `tag' an instruction with a true/false value in one
part of the compiler, and check that tag in another part? For example:

in the scheduler

  tagInstruction(insn, true);

in the assembler output (e.g., final_prescan).

  if (hasTag(insn)) doSomething;
  else doOtherTHing;



Thanks,

 Dan.

=============================================================================
Daniel Towner
picoChip Designs Ltd., Riverside Buildings, 108, Walcot Street, BATH,
BA1 5BG
dant@picochip.com
07786 702589


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