LLVM: lib/Transforms/Instrumentation/LowerAllowCheckPass.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "lower-allow-check"
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."))

DEBUG_TYPE

#define DEBUG_TYPE "lower-allow-check"

emitRemark()

lowerAllowChecks()

Definition at line 75 of file LowerAllowCheckPass.cpp.

References llvm::cast(), llvm::LowerAllowCheckPass::Options::cutoffs, llvm::dyn_cast(), emitRemark(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), F, llvm::BlockFrequencyInfo::getBlockProfileCount(), llvm::ConstantInt::getBool(), HotPercentileCutoff, I, II, instructions, llvm::ProfileSummaryInfo::isHotCountNthPercentile(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), RandomRate, llvm::LowerAllowCheckPass::Options::runtime_check, and ToRemove.

Referenced by llvm::LowerAllowCheckPass::run().

STATISTIC() [1/2]

STATISTIC ( NumChecksRemoved ,
"Number of removed checks" )

STATISTIC() [2/2]

STATISTIC ( NumChecksTotal ,
"Number of checks" )

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