github.com/llir/llvm@v0.3.6/asm/testdata/inst_memory.ll (about)

     1  @s = constant [4 x i8] c"foo\00"
     2  
     3  define void @f() {
     4  0:
     5  	%ptr = alloca i32
     6  	%1 = load i32, i32* %ptr
     7  	store i32 42, i32* %ptr
     8  	fence acquire
     9  	%2 = cmpxchg i32* %ptr, i32 10, i32 20 acquire monotonic
    10  	%3 = atomicrmw add i32* %ptr, i32 30 acq_rel
    11  	%4 = getelementptr [4 x i8], [4 x i8]* @s, i64 0, i64 0
    12  	ret void
    13  }