LLVM 22.0.0git
LowerAllowCheckPass.cpp File Reference

Go to the source code of this file.

Classes

struct  RemarkInfo

Macros

#define DEBUG_TYPE   "lower-allow-check"

Functions

 STATISTIC (NumChecksTotal, "Number of checks")
 STATISTIC (NumChecksRemoved, "Number of removed checks")
static void emitRemark (IntrinsicInst *II, OptimizationRemarkEmitter &ORE, bool Removed)
static bool lowerAllowChecks (Function &F, const BlockFrequencyInfo &BFI, const ProfileSummaryInfo *PSI, OptimizationRemarkEmitter &ORE, const LowerAllowCheckPass::Options &Opts)

Variables

static cl::opt< int > HotPercentileCutoff ("lower-allow-check-percentile-cutoff-hot", cl::desc("Hot percentile cutoff."))
static cl::opt< float > RandomRate ("lower-allow-check-random-rate", cl::desc("Probability value in the range [0.0, 1.0] of " "unconditional pseudo-random checks."))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "lower-allow-check"

Definition at line 32 of file LowerAllowCheckPass.cpp.

Function Documentation

◆ emitRemark()

void emitRemark ( IntrinsicInst * II,
OptimizationRemarkEmitter & ORE,
bool Removed )
static

Definition at line 56 of file LowerAllowCheckPass.cpp.

References DEBUG_TYPE, llvm::OptimizationRemarkEmitter::emit(), II, and Info.

Referenced by lowerAllowChecks().

◆ lowerAllowChecks()

◆ STATISTIC() [1/2]

STATISTIC ( NumChecksRemoved ,
"Number of removed checks"  )

◆ STATISTIC() [2/2]

STATISTIC ( NumChecksTotal ,
"Number of checks"  )

Variable Documentation

◆ HotPercentileCutoff

cl::opt< int > HotPercentileCutoff("lower-allow-check-percentile-cutoff-hot", cl::desc("Hot percentile cutoff.")) ( "lower-allow-check-percentile-cutoff-hot" ,
cl::desc("Hot percentile cutoff.")  )
static

◆ RandomRate

cl::opt< float > RandomRate("lower-allow-check-random-rate", cl::desc("Probability value in the range [0.0, 1.0] of " "unconditional pseudo-random checks.")) ( "lower-allow-check-random-rate" ,
cl::desc("Probability value in the range [0.0, 1.0] of " "unconditional pseudo-random checks.")  )
static