LLVM 19.0.0git
Macros | Variables
SampleProfileMatcher.cpp File Reference
#include "llvm/Transforms/IPO/SampleProfileMatcher.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/Support/CommandLine.h"

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."))
 
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 22 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

◆ 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