[LLVMdev] [RFC] Extending MachineInstr.Flags

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Jan 3 09:45:12 PST 2012


On Jan 3, 2012, at 7:18 AM, girish gulawani wrote:

> This is purely from a particular VLIW target back-end perspective. There it is possible to schedule an MI on to one of multiple execution pipes. This leads to a different instruction encoding per the pipe it is bound to, and need to percolate this information down.
> Would it be advisable to extend and use the "MachineInstr.Flags" field for this purpose?

No, the MachineInstr objects need to stay as small as possible.

For something like this, I would suggest that you add an immediate operand to the relevant instructions. That gives you 64 bits of flags you can use any way you like.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120103/9721b9f6/attachment.html>


More information about the llvm-dev mailing list