[LLVMdev] MachineOperand::TargetFlags question

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Oct 18 17:26:57 PDT 2010


On Oct 18, 2010, at 11:59 AM, Villmow, Micah wrote:

> I’m looking at utilizing the MachineOperand::TargetFlags and I’m wondering if there is a specific reason on limiting the size of the flags to 8 bits. Also are there any assumptions on what can be validly used here that I should keep in mind? Ideally I need 28 bits but I can code the major cases using all 8 bits, but I don’t want to clobber anything that might be used internally in LLVM.

In fact, it looks like we are losing 8 bytes to padding on hosts that align pointers to 8 bytes. MachineOperand ought to fit in 32 bytes on 64-bit hosts.

Someone should take a look at that.






More information about the llvm-dev mailing list