llvm::createAtomicExpandLegacyPass

Create a pass that expands atomic IR for the target.

Synopsis

Declared in <llvm/CodeGen/Passes.h>

FunctionPass*
createAtomicExpandLegacyPass();

Description

At IR level this pass replaces atomic instructions with __atomic_* library calls, or target-specific instructions which implement the same semantics in a way which better fits the target backend.

Return Value

The newly created FunctionPass.