LLVM  10.0.0svn
Macros | Functions
LowerConstantIntrinsics.cpp File Reference
#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/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"
Include dependency graph for LowerConstantIntrinsics.cpp:

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 ValuelowerIsConstantIntrinsic (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
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "lower-is-constant-intrinsic"

Definition at line 35 of file LowerConstantIntrinsics.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( LowerConstantIntrinsics  ,
"lower-constant-intrinsics ,
"Lower constant intrinsics ,
false  ,
false   
)

Definition at line 165 of file LowerConstantIntrinsics.cpp.

◆ lowerConstantIntrinsics()

static bool lowerConstantIntrinsics ( Function F,
const TargetLibraryInfo TLI 
)
static

◆ lowerIsConstantIntrinsic()

static Value* lowerIsConstantIntrinsic ( IntrinsicInst II)
static

◆ replaceConditionalBranchesOnConstant()

static bool replaceConditionalBranchesOnConstant ( Instruction II,
Value NewValue 
)
static

◆ STATISTIC() [1/2]

STATISTIC ( IsConstantIntrinsicsHandled  ,
"Number of 'is.constant' intrinsic calls handled"   
)

◆ STATISTIC() [2/2]

STATISTIC ( ObjectSizeIntrinsicsHandled  ,
"Number of 'objectsize' intrinsic calls handled"   
)