LLVM API Documentation
#include "llvm/Transforms/Scalar.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/Pass.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "loweratomic" |
Functions | |
static bool | LowerAtomicCmpXchgInst (AtomicCmpXchgInst *CXI) |
static bool | LowerAtomicRMWInst (AtomicRMWInst *RMWI) |
static bool | LowerFenceInst (FenceInst *FI) |
static bool | LowerLoadInst (LoadInst *LI) |
static bool | LowerStoreInst (StoreInst *SI) |
INITIALIZE_PASS (LowerAtomic,"loweratomic","Lower atomic intrinsics to non-atomic form", false, false) Pass *llvm | |
#define DEBUG_TYPE "loweratomic" |
Definition at line 15 of file LowerAtomic.cpp.
INITIALIZE_PASS | ( | LowerAtomic | , |
"loweratomic" | , | ||
"Lower atomic intrinsics to non-atomic form" | , | ||
false | , | ||
false | |||
) |
Definition at line 138 of file LowerAtomic.cpp.
|
static |
Definition at line 23 of file LowerAtomic.cpp.
References llvm::Instruction::eraseFromParent(), llvm::AtomicCmpXchgInst::getCompareOperand(), llvm::AtomicCmpXchgInst::getNewValOperand(), llvm::Instruction::getParent(), llvm::AtomicCmpXchgInst::getPointerOperand(), and llvm::Value::replaceAllUsesWith().
|
static |
Definition at line 39 of file LowerAtomic.cpp.
References llvm::AtomicRMWInst::Add, llvm::AtomicRMWInst::And, llvm::Instruction::eraseFromParent(), llvm::AtomicRMWInst::getOperation(), llvm::Instruction::getParent(), llvm::AtomicRMWInst::getPointerOperand(), llvm::AtomicRMWInst::getValOperand(), llvm_unreachable, llvm::AtomicRMWInst::Max, llvm::AtomicRMWInst::Min, llvm::AtomicRMWInst::Nand, llvm::AtomicRMWInst::Or, llvm::Value::replaceAllUsesWith(), llvm::AtomicRMWInst::Sub, llvm::AtomicRMWInst::UMax, llvm::AtomicRMWInst::UMin, llvm::AtomicRMWInst::Xchg, and llvm::AtomicRMWInst::Xor.
Definition at line 93 of file LowerAtomic.cpp.
References llvm::Instruction::eraseFromParent().
Definition at line 98 of file LowerAtomic.cpp.
References llvm::NotAtomic, and llvm::LoadInst::setAtomic().
Definition at line 103 of file LowerAtomic.cpp.
References llvm::NotAtomic, and llvm::StoreInst::setAtomic().