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

Name

Description

RequiredPassInfoMixin<AtomicExpandPass>

A CRTP mix‐in for passes that should not be skipped.

Member Functions

Name

Description

AtomicExpandPass [constructor]

Construct a pass using target information from TM.

run

Expand atomic instructions in F for the configured target.

Static Member Functions

Name

Description

isRequired

Return true; required passes cannot be skipped.

Created with MrDocs