|
LLVM
10.0.0
|
#include "llvm/Transforms/Scalar/LowerConstantIntrinsics.h"#include "llvm/ADT/PostOrderIterator.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/InstructionSimplify.h"#include "llvm/Analysis/MemoryBuiltins.h"#include "llvm/Analysis/TargetLibraryInfo.h"#include "llvm/IR/BasicBlock.h"#include "llvm/IR/Constants.h"#include "llvm/IR/Function.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/PatternMatch.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Support/Debug.h"#include "llvm/Transforms/Scalar.h"#include "llvm/Transforms/Utils/Local.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "lower-is-constant-intrinsic" |
Functions | |
| 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) |
| static bool | lowerConstantIntrinsics (Function &F, const TargetLibraryInfo *TLI) |
| INITIALIZE_PASS (LowerConstantIntrinsics, "lower-constant-intrinsics", "Lower constant intrinsics", false, false) FunctionPass *llvm | |
| #define DEBUG_TYPE "lower-is-constant-intrinsic" |
Definition at line 36 of file LowerConstantIntrinsics.cpp.
| INITIALIZE_PASS | ( | LowerConstantIntrinsics | , |
| "lower-constant-intrinsics" | , | ||
| "Lower constant intrinsics" | , | ||
| false | , | ||
| false | |||
| ) |
Definition at line 166 of file LowerConstantIntrinsics.cpp.
|
static |
Definition at line 86 of file LowerConstantIntrinsics.cpp.
References llvm::dyn_cast(), llvm::Module::getDataLayout(), llvm::IntrinsicInst::getIntrinsicID(), llvm::GlobalValue::getParent(), I, lowerIsConstantIntrinsic(), llvm::lowerObjectSizeCall(), llvm::SmallVectorTemplateBase< T >::push_back(), llvm::removeUnreachableBlocks(), and replaceConditionalBranchesOnConstant().
Referenced by llvm::LowerConstantIntrinsicsPass::run().
|
static |
Definition at line 43 of file LowerConstantIntrinsics.cpp.
References llvm::ConstantInt::getFalse(), llvm::User::getOperand(), llvm::ConstantInt::getTrue(), and llvm::Value::getType().
Referenced by lowerConstantIntrinsics().
|
static |
Definition at line 50 of file LowerConstantIntrinsics.cpp.
References llvm::BranchInst::Create(), llvm::dyn_cast(), llvm::Instruction::eraseFromParent(), llvm::User::getOperand(), llvm::Instruction::getParent(), llvm::BranchInst::getSuccessor(), I, llvm::BranchInst::isUnconditional(), llvm::PatternMatch::m_One(), llvm::PatternMatch::m_Zero(), llvm::PatternMatch::match(), Other, llvm::pred_begin(), llvm::pred_end(), llvm::BasicBlock::removePredecessor(), llvm::replaceAndRecursivelySimplify(), and llvm::Sched::Source.
Referenced by lowerConstantIntrinsics().
| STATISTIC | ( | IsConstantIntrinsicsHandled | , |
| "Number of 'is.constant' intrinsic calls handled" | |||
| ) |
| STATISTIC | ( | ObjectSizeIntrinsicsHandled | , |
| "Number of 'objectsize' intrinsic calls handled" | |||
| ) |
1.8.13