enum AtomicRMWInst::BinOp

Description

This enumeration lists the possible modifications atomicrmw can make. In the descriptions, 'p' is the pointer to the instruction's memory location, 'old' is the initial value of *p, and 'v' is the other value passed to the instruction. These instructions always return 'old'.

Declared at: llvm/include/llvm/IR/Instructions.h:722

Enumerators

NameValueComment
Xchg0*p = v
Add1*p = old + v
Sub2*p = old - v
And3*p = old & v
Nand4*p = ~(old & v)
Or5*p = old | v
Xor6*p = old ^ v
Max7*p = old >signed v ? old : v
Min8*p = old <signed v ? old : v
UMax9*p = old >unsigned v ? old : v
UMin10*p = old <unsigned v ? old : v
FAdd11*p = old + v
FSub12*p = old - v
FIRST_BINOP0*p = old - v
LAST_BINOP12*p = old - v
BAD_BINOP13*p = old - v