LLVM 22.0.0git
SampleProfileLoaderBaseUtil.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::sampleprofutil

Functions

cl::opt< unsignedllvm::SampleProfileMaxPropagateIterations ("sample-profile-max-propagate-iterations", cl::init(100), cl::desc("Maximum number of iterations to go through when propagating " "sample block/edge weights through the CFG."))
cl::opt< unsignedllvm::SampleProfileRecordCoverage ("sample-profile-check-record-coverage", cl::init(0), cl::value_desc("N"), cl::desc("Emit a warning if less than N% of records in the input profile " "are matched to the IR."))
cl::opt< unsignedllvm::SampleProfileSampleCoverage ("sample-profile-check-sample-coverage", cl::init(0), cl::value_desc("N"), cl::desc("Emit a warning if less than N% of samples in the input profile " "are matched to the IR."))
cl::opt< boolllvm::NoWarnSampleUnused ("no-warn-sample-unused", cl::init(false), cl::Hidden, cl::desc("Use this option to turn off/on warnings about function with " "samples but without debug information to use those samples. "))
cl::opt< boolllvm::SampleProfileUseProfi ("sample-profile-use-profi", cl::Hidden, cl::desc("Use profi to infer block and edge counts."))
bool llvm::sampleprofutil::callsiteIsHot (const FunctionSamples *CallsiteFS, ProfileSummaryInfo *PSI, bool ProfAccForSymsInList)
 Return true if the given callsite is hot wrt to hot cutoff threshold.
void llvm::sampleprofutil::createFSDiscriminatorVariable (Module *M)
 Create a global variable to flag FSDiscriminators are used.