[LLVMdev] x86 lock prefix
Chris Lattner
sabre at nondot.org
Mon May 9 14:08:28 PDT 2005
On Mon, 9 May 2005, Brent Monroe wrote:
> 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.
ok.
> I can't figure out how to get the "lock" prefix to actually
> print when the asm code is printed.
Just add it to the asm string for the instruction:
"lock; add ... "
-Chris
More information about the llvm-dev
mailing list