LLVM 22.0.0git
SampleProfileMatcher.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "sample-profile-matcher"

Variables

static cl::opt< unsignedFuncProfileSimilarityThreshold ("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< unsignedMinFuncCountForCGMatching ("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< unsignedMinCallCountForCGMatching ("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< boolLoadFuncProfileforCGMatching ("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)"))
cl::opt< boolSalvageStaleProfile
cl::opt< boolSalvageUnusedProfile
cl::opt< boolPersistProfileStaleness
cl::opt< boolReportProfileStaleness
static cl::opt< unsignedSalvageStaleProfileMaxCallsites ("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 24 of file SampleProfileMatcher.cpp.

Variable Documentation

◆ FuncProfileSimilarityThreshold

cl::opt< unsigned > 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.")) ( "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

◆ LoadFuncProfileforCGMatching

cl::opt< bool > 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)")) ( "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

◆ MinCallCountForCGMatching

cl::opt< unsigned > 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.")) ( "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

◆ MinFuncCountForCGMatching

cl::opt< unsigned > 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.")) ( "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

◆ PersistProfileStaleness

cl::opt<bool> PersistProfileStaleness
extern

◆ ReportProfileStaleness

cl::opt<bool> ReportProfileStaleness
extern

◆ SalvageStaleProfile

cl::opt<bool> SalvageStaleProfile
extern

◆ SalvageStaleProfileMaxCallsites

cl::opt< unsigned > 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.")) ( "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.")  )
static

◆ SalvageUnusedProfile

cl::opt<bool> SalvageUnusedProfile
extern