[LLVMdev] Adding xadd instruction to X86

Misha Brukman brukman at uiuc.edu
Fri Dec 3 10:38:46 PST 2004

On Fri, Dec 03, 2004 at 10:02:18AM -0600, John Criswell wrote:
> >Another problem though, is that (without looking at manual) I think
> >xadd modifies the register value.  If this is the case, you will want
> >to define it as a "two-operand" instruction.  Making the above change
> >should get the assertion to go away though.
> How do we define an instruction as a two-operand instruction?

let isTwoAddress = 1 in
  // instruction def

See X86InstrInfo.def for examples.

Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu

More information about the llvm-dev mailing list