Go to the source code of this file.
|
| STATISTIC (IsConstantIntrinsicsHandled, "Number of 'is.constant' intrinsic calls handled") |
|
| STATISTIC (ObjectSizeIntrinsicsHandled, "Number of 'objectsize' intrinsic calls handled") |
|
static Value * | lowerIsConstantIntrinsic (IntrinsicInst *II) |
|
static bool | replaceConditionalBranchesOnConstant (Instruction *II, Value *NewValue, DomTreeUpdater *DTU) |
|
static bool | lowerConstantIntrinsics (Function &F, const TargetLibraryInfo &TLI, DominatorTree *DT) |
|
| INITIALIZE_PASS_BEGIN (LowerConstantIntrinsics, "lower-constant-intrinsics", "Lower constant intrinsics", false, false) INITIALIZE_PASS_END(LowerConstantIntrinsics |
|
◆ DEBUG_TYPE
#define DEBUG_TYPE "lower-is-constant-intrinsic" |
◆ INITIALIZE_PASS_BEGIN()
INITIALIZE_PASS_BEGIN |
( |
LowerConstantIntrinsics |
, |
|
|
"lower-constant-intrinsics" |
, |
|
|
"Lower constant intrinsics" |
, |
|
|
false |
, |
|
|
false |
|
|
) |
| |
◆ lowerConstantIntrinsics()
Definition at line 99 of file LowerConstantIntrinsics.cpp.
References llvm::dbgs(), DL, llvm::SmallVectorBase< Size_T >::empty(), F, llvm::IntrinsicInst::getIntrinsicID(), I, LLVM_DEBUG, lowerIsConstantIntrinsic(), llvm::lowerObjectSizeCall(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::removeUnreachableBlocks(), and replaceConditionalBranchesOnConstant().
Referenced by llvm::LowerConstantIntrinsicsPass::run().
◆ lowerIsConstantIntrinsic()
◆ replaceConditionalBranchesOnConstant()
Definition at line 54 of file LowerConstantIntrinsics.cpp.
References llvm::DomTreeUpdater::applyUpdates(), llvm::SetVector< T, Vector, Set >::begin(), llvm::BranchInst::Create(), llvm::SetVector< T, Vector, Set >::end(), llvm::Instruction::eraseFromParent(), llvm::User::getOperand(), llvm::Instruction::getParent(), llvm::BranchInst::getSuccessor(), llvm::BranchInst::isUnconditional(), llvm::PatternMatch::m_One(), llvm::PatternMatch::m_Zero(), llvm::PatternMatch::match(), Other, llvm::pred_empty(), and llvm::replaceAndRecursivelySimplify().
Referenced by lowerConstantIntrinsics().
◆ STATISTIC() [1/2]
STATISTIC |
( |
IsConstantIntrinsicsHandled |
, |
|
|
"Number of 'is.constant' intrinsic calls handled" |
|
|
) |
| |
◆ STATISTIC() [2/2]
STATISTIC |
( |
ObjectSizeIntrinsicsHandled |
, |
|
|
"Number of 'objectsize' intrinsic calls handled" |
|
|
) |
| |
◆ false
lower constant Lower constant false |
◆ intrinsics
lower constant Lower constant intrinsics |