14#ifndef LLVM_TRANSFORMS_UTILS_LOWERATOMIC_H
15#define LLVM_TRANSFORMS_UTILS_LOWERATOMIC_H
34 Value *Loaded, Value *Val);
BinOp
This enumeration lists the possible modifications atomicrmw can make.
This is an optimization pass for GlobalISel generic memory operations.
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.