LLVM 22.0.0git
LowerAtomicPass.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "lower-atomic"

Functions

static bool LowerFenceInst (FenceInst *FI)
static bool LowerLoadInst (LoadInst *LI)
static bool LowerStoreInst (StoreInst *SI)
static bool runOnBasicBlock (BasicBlock &BB)
static bool lowerAtomics (Function &F)
 INITIALIZE_PASS (LowerAtomicLegacyPass, "loweratomic", "Lower atomic intrinsics to non-atomic form", false, false) Pass *llvm

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "lower-atomic"

Definition at line 22 of file LowerAtomicPass.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( LowerAtomicLegacyPass ,
"loweratomic" ,
"Lower atomic intrinsics to non-atomic form" ,
false ,
false  )

Definition at line 95 of file LowerAtomicPass.cpp.

References llvm::createLowerAtomicPass().

◆ lowerAtomics()

bool lowerAtomics ( Function & F)
static

Definition at line 59 of file LowerAtomicPass.cpp.

References Changed, F, and runOnBasicBlock().

Referenced by llvm::LowerAtomicPass::run().

◆ LowerFenceInst()

bool LowerFenceInst ( FenceInst * FI)
static

Definition at line 24 of file LowerAtomicPass.cpp.

References llvm::Instruction::eraseFromParent().

Referenced by runOnBasicBlock().

◆ LowerLoadInst()

bool LowerLoadInst ( LoadInst * LI)
static

Definition at line 29 of file LowerAtomicPass.cpp.

References llvm::NotAtomic, and llvm::LoadInst::setAtomic().

Referenced by runOnBasicBlock().

◆ LowerStoreInst()

bool LowerStoreInst ( StoreInst * SI)
static

Definition at line 34 of file LowerAtomicPass.cpp.

References llvm::NotAtomic.

Referenced by runOnBasicBlock().

◆ runOnBasicBlock()