[LLVMdev] MachineOperand::TargetFlags question

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Oct 18 17:03:32 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.

We create *LOTS* of MachineOperand instances, so it needs to be as small as possible.

> 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.

I think the target gets to decide what all the bits mean.

/jakob





More information about the llvm-dev mailing list