[LLVMdev] x86 lock prefix

Brent Monroe bmmonroe at uiuc.edu
Mon May 9 14:02:45 PDT 2005


Hi,

I need the x86 backend to emit a "lock" prefix before a couple
of instructions.  I've added it as a prefix class to
X86InstrInfo.td:

class LOCK   { bits<4> Prefix = 11; }

and added it as a prefix to the relevant instructions.

I can't figure out how to get the "lock" prefix to actually
print when the asm code is printed.

Thanks,
Brent




More information about the llvm-dev mailing list