LLVM  4.0.0
Functions | Variables
LowerGuardIntrinsic.cpp File Reference
#include "llvm/Transforms/Scalar/LowerGuardIntrinsic.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
Include dependency graph for LowerGuardIntrinsic.cpp:

Go to the source code of this file.

Functions

static void MakeGuardControlFlowExplicit (Function *DeoptIntrinsic, CallInst *CI)
 
static bool lowerGuardIntrinsic (Function &F)
 
 INITIALIZE_PASS (LowerGuardIntrinsicLegacyPass,"lower-guard-intrinsic","Lower the guard intrinsic to normal control flow", false, false) Pass *llvm
 

Variables

static cl::opt< uint32_tPredicatePassBranchWeight ("guards-predicate-pass-branch-weight", cl::Hidden, cl::init(1<< 20), cl::desc("The probability of a guard failing is assumed to be the ""reciprocal of this value (default = 1 << 20)"))
 

Function Documentation

INITIALIZE_PASS ( LowerGuardIntrinsicLegacyPass  ,
"lower-guard-intrinsic"  ,
"Lower the guard intrinsic to normal control flow"  ,
false  ,
false   
)

Definition at line 123 of file LowerGuardIntrinsic.cpp.

static bool lowerGuardIntrinsic ( Function F)
static
static void MakeGuardControlFlowExplicit ( Function DeoptIntrinsic,
CallInst CI 
)
static

Variable Documentation

cl::opt<uint32_t> PredicatePassBranchWeight("guards-predicate-pass-branch-weight", cl::Hidden, cl::init(1<< 20), cl::desc("The probability of a guard failing is assumed to be the ""reciprocal of this value (default = 1 << 20)"))
static