This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Flagging rtx instructions
- From: Dan Towner <dant at picochip dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 20 Jun 2002 17:51:17 +0100
- Subject: Flagging rtx instructions
- Organization: picoChip Designs Ltd.
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