LLVM 23.0.0git
SampleProfileMatcher.cpp File Reference

Go to the source code of this file.

Namespaces

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

Macros

#define DEBUG_TYPE   "sample-profile-matcher"

Functions

 STATISTIC (NumDirectProfileMatch, "Number of functions matched by demangled basename")
static std::string getDemangledBaseName (ItaniumPartialDemangler &Demangler, StringRef FName)

Variables

static cl::opt< unsignedllvm::FuncProfileSimilarityThreshold ("func-profile-similarity-threshold", cl::Hidden, cl::init(80), cl::desc("Consider a profile matches a function if the similarity of their " "callee sequences is above the specified percentile."))
static cl::opt< unsignedllvm::MinFuncCountForCGMatching ("min-func-count-for-cg-matching", cl::Hidden, cl::init(5), cl::desc("The minimum number of basic blocks required for a function to " "run stale profile call graph matching."))
static cl::opt< unsignedllvm::MinCallCountForCGMatching ("min-call-count-for-cg-matching", cl::Hidden, cl::init(3), cl::desc("The minimum number of call anchors required for a function to " "run stale profile call graph matching."))
static cl::opt< boolllvm::LoadFuncProfileforCGMatching ("load-func-profile-for-cg-matching", cl::Hidden, cl::init(true), cl::desc("Load top-level profiles that the sample reader initially skipped for " "the call-graph matching (only meaningful for extended binary " "format)"))
static cl::opt< unsignedllvm::SalvageStaleProfileMaxCallsites ("salvage-stale-profile-max-callsites", cl::Hidden, cl::init(UINT_MAX), cl::desc("The maximum number of callsites in a function, above which stale " "profile matching will be skipped."))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "sample-profile-matcher"

Definition at line 27 of file SampleProfileMatcher.cpp.

Function Documentation

◆ getDemangledBaseName()

std::string getDemangledBaseName ( ItaniumPartialDemangler & Demangler,
StringRef FName )
static

Definition at line 738 of file SampleProfileMatcher.cpp.

References llvm::StringRef::str().

◆ STATISTIC()

STATISTIC ( NumDirectProfileMatch ,
"Number of functions matched by demangled basename"  )