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