class ProfileSummaryInfo
Declaration
class ProfileSummaryInfo { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:43
Method Overview
- public ProfileSummaryInfo(llvm::ProfileSummaryInfo && Arg)
- public ProfileSummaryInfo(llvm::Module & M)
- public uint64_t getColdCountThreshold()
- public uint64_t getHotCountThreshold()
- public uint64_t getOrCompColdCountThreshold()
- public uint64_t getOrCompHotCountThreshold()
- public Optional<uint64_t> getProfileCount(const llvm::Instruction * CallInst, llvm::BlockFrequencyInfo * BFI, bool AllowSynthetic = false)
- public bool hasCSInstrumentationProfile()
- public bool hasHugeWorkingSetSize()
- public bool hasInstrumentationProfile()
- public bool hasLargeWorkingSetSize()
- public bool hasProfileSummary()
- public bool hasSampleProfile()
- public bool invalidate(llvm::Module &, const llvm::PreservedAnalyses &, int &)
- public bool isColdBlock(const llvm::BasicBlock * BB, llvm::BlockFrequencyInfo * BFI)
- public bool isColdCallSite(const llvm::CallSite & CS, llvm::BlockFrequencyInfo * BFI)
- public bool isColdCount(uint64_t C)
- public bool isFunctionColdInCallGraph(const llvm::Function * F, llvm::BlockFrequencyInfo & BFI)
- public bool isFunctionEntryCold(const llvm::Function * F)
- public bool isFunctionEntryHot(const llvm::Function * F)
- public bool isFunctionHotInCallGraph(const llvm::Function * F, llvm::BlockFrequencyInfo & BFI)
- public bool isFunctionHotInCallGraphNthPercentile(int PercentileCutoff, const llvm::Function * F, llvm::BlockFrequencyInfo & BFI)
- public bool isHotBlock(const llvm::BasicBlock * BB, llvm::BlockFrequencyInfo * BFI)
- public bool isHotBlockNthPercentile(int PercentileCutoff, const llvm::BasicBlock * BB, llvm::BlockFrequencyInfo * BFI)
- public bool isHotCallSite(const llvm::CallSite & CS, llvm::BlockFrequencyInfo * BFI)
- public bool isHotCount(uint64_t C)
- public bool isHotCountNthPercentile(int PercentileCutoff, uint64_t C)
Methods
¶ProfileSummaryInfo(llvm::ProfileSummaryInfo&& Arg)
ProfileSummaryInfo(llvm::ProfileSummaryInfo&& Arg)
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:67
Parameters
- llvm::ProfileSummaryInfo&& Arg
¶ProfileSummaryInfo(llvm::Module& M)
ProfileSummaryInfo(llvm::Module& M)
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:66
Parameters
- llvm::Module& M
¶uint64_t getColdCountThreshold()
uint64_t getColdCountThreshold()
Description
Returns ColdCountThreshold if set.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:153
¶uint64_t getHotCountThreshold()
uint64_t getHotCountThreshold()
Description
Returns HotCountThreshold if set.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:149
¶uint64_t getOrCompColdCountThreshold()
uint64_t getOrCompColdCountThreshold()
Description
Returns ColdCountThreshold if set. Recompute HotCountThreshold if not set.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:147
¶uint64_t getOrCompHotCountThreshold()
uint64_t getOrCompHotCountThreshold()
Description
Returns HotCountThreshold if set. Recompute HotCountThreshold if not set.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:144
¶Optional<uint64_t> getProfileCount(
const llvm::Instruction* CallInst,
llvm::BlockFrequencyInfo* BFI,
bool AllowSynthetic = false)
Optional<uint64_t> getProfileCount(
const llvm::Instruction* CallInst,
llvm::BlockFrequencyInfo* BFI,
bool AllowSynthetic = false)
Description
Returns the profile count for \p CallInst.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:103
Parameters
- const llvm::Instruction* CallInst
- llvm::BlockFrequencyInfo* BFI
- bool AllowSynthetic = false
¶bool hasCSInstrumentationProfile()
bool hasCSInstrumentationProfile()
Description
Returns true if module \c M has context sensitive instrumentation profile.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:86
¶bool hasHugeWorkingSetSize()
bool hasHugeWorkingSetSize()
Description
Returns true if the working set size of the code is considered huge.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:107
¶bool hasInstrumentationProfile()
bool hasInstrumentationProfile()
Description
Returns true if module \c M has instrumentation profile.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:80
¶bool hasLargeWorkingSetSize()
bool hasLargeWorkingSetSize()
Description
Returns true if the working set size of the code is considered large.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:109
¶bool hasProfileSummary()
bool hasProfileSummary()
Description
Returns true if profile summary is available.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:71
¶bool hasSampleProfile()
bool hasSampleProfile()
Description
Returns true if module \c M has sample profile.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:74
¶bool invalidate(llvm::Module&,
const llvm::PreservedAnalyses&,
int&)
bool invalidate(llvm::Module&,
const llvm::PreservedAnalyses&,
int&)
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:97
Parameters
- llvm::Module&
- const llvm::PreservedAnalyses&
- int&
¶bool isColdBlock(const llvm::BasicBlock* BB,
llvm::BlockFrequencyInfo* BFI)
bool isColdBlock(const llvm::BasicBlock* BB,
llvm::BlockFrequencyInfo* BFI)
Description
Returns true if BasicBlock \p BB is considered cold.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:133
Parameters
- const llvm::BasicBlock* BB
- llvm::BlockFrequencyInfo* BFI
¶bool isColdCallSite(const llvm::CallSite& CS,
llvm::BlockFrequencyInfo* BFI)
bool isColdCallSite(const llvm::CallSite& CS,
llvm::BlockFrequencyInfo* BFI)
Description
Returns true if Callsite \p CS is considered cold.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:141
Parameters
- const llvm::CallSite& CS
- llvm::BlockFrequencyInfo* BFI
¶bool isColdCount(uint64_t C)
bool isColdCount(uint64_t C)
Description
Returns true if count \p C is considered cold.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:126
Parameters
- uint64_t C
¶bool isFunctionColdInCallGraph(
const llvm::Function* F,
llvm::BlockFrequencyInfo& BFI)
bool isFunctionColdInCallGraph(
const llvm::Function* F,
llvm::BlockFrequencyInfo& BFI)
Description
Returns true if \p F contains only cold code.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:117
Parameters
- const llvm::Function* F
- llvm::BlockFrequencyInfo& BFI
¶bool isFunctionEntryCold(const llvm::Function* F)
bool isFunctionEntryCold(const llvm::Function* F)
Description
Returns true if \p F has cold function entry.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:115
Parameters
- const llvm::Function* F
¶bool isFunctionEntryHot(const llvm::Function* F)
bool isFunctionEntryHot(const llvm::Function* F)
Description
Returns true if \p F has hot function entry.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:111
Parameters
- const llvm::Function* F
¶bool isFunctionHotInCallGraph(
const llvm::Function* F,
llvm::BlockFrequencyInfo& BFI)
bool isFunctionHotInCallGraph(
const llvm::Function* F,
llvm::BlockFrequencyInfo& BFI)
Description
Returns true if \p F contains hot code.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:113
Parameters
- const llvm::Function* F
- llvm::BlockFrequencyInfo& BFI
¶bool isFunctionHotInCallGraphNthPercentile(
int PercentileCutoff,
const llvm::Function* F,
llvm::BlockFrequencyInfo& BFI)
bool isFunctionHotInCallGraphNthPercentile(
int PercentileCutoff,
const llvm::Function* F,
llvm::BlockFrequencyInfo& BFI)
Description
Returns true if \p F contains hot code with regard to a given hot percentile cutoff value.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:120
Parameters
- int PercentileCutoff
- const llvm::Function* F
- llvm::BlockFrequencyInfo& BFI
¶bool isHotBlock(const llvm::BasicBlock* BB,
llvm::BlockFrequencyInfo* BFI)
bool isHotBlock(const llvm::BasicBlock* BB,
llvm::BlockFrequencyInfo* BFI)
Description
Returns true if BasicBlock \p BB is considered hot.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:131
Parameters
- const llvm::BasicBlock* BB
- llvm::BlockFrequencyInfo* BFI
¶bool isHotBlockNthPercentile(
int PercentileCutoff,
const llvm::BasicBlock* BB,
llvm::BlockFrequencyInfo* BFI)
bool isHotBlockNthPercentile(
int PercentileCutoff,
const llvm::BasicBlock* BB,
llvm::BlockFrequencyInfo* BFI)
Description
Returns true if BasicBlock \p BB is considered hot with regard to a given hot percentile cutoff value.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:136
Parameters
- int PercentileCutoff
- const llvm::BasicBlock* BB
- llvm::BlockFrequencyInfo* BFI
¶bool isHotCallSite(const llvm::CallSite& CS,
llvm::BlockFrequencyInfo* BFI)
bool isHotCallSite(const llvm::CallSite& CS,
llvm::BlockFrequencyInfo* BFI)
Description
Returns true if CallSite \p CS is considered hot.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:139
Parameters
- const llvm::CallSite& CS
- llvm::BlockFrequencyInfo* BFI
¶bool isHotCount(uint64_t C)
bool isHotCount(uint64_t C)
Description
Returns true if count \p C is considered hot.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:124
Parameters
- uint64_t C
¶bool isHotCountNthPercentile(int PercentileCutoff,
uint64_t C)
bool isHotCountNthPercentile(int PercentileCutoff,
uint64_t C)
Description
Returns true if count \p C is considered hot with regard to a given hot percentile cutoff value.
Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:129
Parameters
- int PercentileCutoff
- uint64_t C