LLVM 22.0.0git
ImplicitNullChecks.cpp File Reference

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, Register Reg)
 INITIALIZE_PASS_BEGIN (ImplicitNullChecks, DEBUG_TYPE, "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), cl::Hidden)
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::Hidden, cl::init(8))
 DEBUG_TYPE
Implicit null checks
Implicit null false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "implicit-null-checks"

Definition at line 72 of file ImplicitNullChecks.cpp.

Function Documentation

◆ AnyAliasLiveIn()

bool AnyAliasLiveIn ( const TargetRegisterInfo * TRI,
MachineBasicBlock * MBB,
Register Reg )
static

Definition at line 318 of file ImplicitNullChecks.cpp.

References llvm::MCRegAliasIterator::isValid(), MBB, Reg, and TRI.

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( ImplicitNullChecks ,
DEBUG_TYPE ,
"Implicit null checks" ,
false ,
false  )

◆ STATISTIC()

STATISTIC ( NumImplicitNullChecks ,
"Number of explicit null checks made implicit"  )

References A(), B(), and MI.

Variable Documentation

◆ checks

Implicit null checks

Definition at line 814 of file ImplicitNullChecks.cpp.

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 813 of file ImplicitNullChecks.cpp.

◆ false

Implicit null false

Definition at line 814 of file ImplicitNullChecks.cpp.

◆ MaxInstsToConsider

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::Hidden, cl::init(8)) ( "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::Hidden ,
cl::init(8)  )
static

◆ PageSize