14#ifndef LLVM_TRANSFORMS_UTILS_LOWERATOMIC_H
15#define LLVM_TRANSFORMS_UTILS_LOWERATOMIC_H
29 Value *
Ptr, Value *Cmp,
30 Value *Val,
Align Alignment);
40 Value *Loaded, Value *Val);
BinOp
This enumeration lists the possible modifications atomicrmw can make.
This is an optimization pass for GlobalISel generic memory operations.
std::pair< Value *, Value * > buildCmpXchgValue(IRBuilderBase &Builder, Value *Ptr, Value *Cmp, Value *Val, Align Alignment)
Emit IR to implement the given cmpxchg operation on values in registers, returning the new value.
Value * buildAtomicRMWValue(AtomicRMWInst::BinOp Op, IRBuilderBase &Builder, Value *Loaded, Value *Val)
Emit IR to implement the given atomicrmw operation on values in registers, returning the new value.
DWARFExpression::Operation Op
bool lowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI)
Convert the given Cmpxchg into primitive load and compare.
bool lowerAtomicRMWInst(AtomicRMWInst *RMWI)
Convert the given RMWI into primitive load and stores, assuming that doing so is legal.