class ProfileSummaryInfo

Declaration

class ProfileSummaryInfo { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:43

Method Overview

Methods

ProfileSummaryInfo(llvm::ProfileSummaryInfo&& Arg)

Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:67

Parameters

llvm::ProfileSummaryInfo&& Arg

ProfileSummaryInfo(llvm::Module& M)

Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:66

Parameters

llvm::Module& M

uint64_t getColdCountThreshold()

Description

Returns ColdCountThreshold if set.

Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:153

uint64_t getHotCountThreshold()

Description

Returns HotCountThreshold if set.

Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:149

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()

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)

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()

Description

Returns true if module \c M has context sensitive instrumentation profile.

Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:86

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()

Description

Returns true if module \c M has instrumentation profile.

Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:80

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()

Description

Returns true if profile summary is available.

Declared at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:71

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&)

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)

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)

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)

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)

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)

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)

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)

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)

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)

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)

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)

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)

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)

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