LLVM  4.0.0
Macros | Functions | Variables
ImplicitNullChecks.cpp File Reference
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineMemOperand.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetSubtargetInfo.h"
#include "llvm/Target/TargetInstrInfo.h"
Include dependency graph for ImplicitNullChecks.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "implicit-null-checks"
 

Functions

 STATISTIC (NumImplicitNullChecks,"Number of explicit null checks made implicit")
 
static bool AnyAliasLiveIn (const TargetRegisterInfo *TRI, MachineBasicBlock *MBB, unsigned Reg)
 
 INITIALIZE_PASS_BEGIN (ImplicitNullChecks,"implicit-null-checks","Implicit null checks", false, false) INITIALIZE_PASS_END(ImplicitNullChecks
 

Variables

static cl::opt< int > PageSize ("imp-null-check-page-size", cl::desc("The page size of the target in bytes"), cl::init(4096))
 
static cl::opt< unsignedMaxInstsToConsider ("imp-null-max-insts-to-consider", cl::desc("The max number of instructions to consider hoisting loads over ""(the algorithm is quadratic over this number)"), cl::init(8))
 
implicit null checks
 
implicit null Implicit null false
 

Macro Definition Documentation

#define DEBUG_TYPE   "implicit-null-checks"

Definition at line 60 of file ImplicitNullChecks.cpp.

Function Documentation

static bool AnyAliasLiveIn ( const TargetRegisterInfo TRI,
MachineBasicBlock MBB,
unsigned  Reg 
)
static
INITIALIZE_PASS_BEGIN ( ImplicitNullChecks  ,
"implicit-null-checks ,
"Implicit null checks ,
false  ,
false   
)
STATISTIC ( NumImplicitNullChecks  ,
"Number of explicit null checks made implicit"   
)

Variable Documentation

implicit null Implicit null checks

Definition at line 594 of file ImplicitNullChecks.cpp.

implicit null Implicit null false

Definition at line 594 of file ImplicitNullChecks.cpp.

cl::opt<unsigned> MaxInstsToConsider("imp-null-max-insts-to-consider", cl::desc("The max number of instructions to consider hoisting loads over ""(the algorithm is quadratic over this number)"), cl::init(8))
static
cl::opt<int> PageSize("imp-null-check-page-size", cl::desc("The page size of the target in bytes"), cl::init(4096))
static