llvm::AtomicExpandPass

New PM pass that expands atomic instructions for the target.

Synopsis

Declared in <llvm/CodeGen/AtomicExpand.h>

class AtomicExpandPass
    : public RequiredPassInfoMixin<AtomicExpandPass>

Description

Replaces atomic IR with __atomic_* library calls or target-specific forms (such as LL/SC loops, cmpxchg, or type coercions) that better fit the backend.

Base Classes

NameDescription
RequiredPassInfoMixin<AtomicExpandPass>A CRTP mix-in for passes that should not be skipped.

Member Functions

NameDescription
AtomicExpandPass [constructor]Construct a pass using target information from TM.
run Expand atomic instructions in F for the configured target.

Static Member Functions

NameDescription
isRequired Return true; required passes cannot be skipped.