[LLVMdev] atomicrmw
Eli Friedman
eli.friedman at gmail.com
Sun Oct 30 01:02:02 PDT 2011
On Sat, Oct 29, 2011 at 9:53 AM, Роман <humbug at deeptown.org> wrote:
> Hi!
> It is said in http://llvm.org/docs/LangRef.html#i_atomicrmw there is an
> atomicrmw opcode.
> But:
> store i8 %2, i8* %tape1.sub
> %3 = atomicrmw add i8* %tape1.sub, i8 1 acquire
> fails with:
> llc: test.bc:13:9: error: expected instruction opcode
What version of LLVM are you using? The documentation you're pointing
at reflects trunk (and the current 3.0 release candidate); the 2.9
docs for the equivalent construct are at
http://llvm.org/releases/2.9/docs/LangRef.html#int_atomic_load_add ,
-Eli
More information about the llvm-dev
mailing list