BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequencies.

Synopsis

Declared in <llvm/Analysis/BlockFrequencyInfo.h>

class BlockFrequencyInfo;

Member Functions

Name

Description

BlockFrequencyInfo [constructor]

Constructors

~BlockFrequencyInfo [destructor]

Destroy this BlockFrequencyInfo and release owned implementation state.

operator=

Assignment operators

calculate

Compute block frequency info for the given function.

getBPI

Return the branch probability info used to compute these frequencies.

getBlockFreq

Return the frequency of basic block BB.

getBlockProfileCount

Return the estimated profile count of BB.

getEntryFreq

Return the frequency of the function entry block.

getFunction

Return the function this analysis was computed for, or null if empty.

getProfileCountFromFreq

Return the estimated profile count of frequency Freq.

invalidate

Handle invalidation explicitly.

isIrrLoopHeader

Returns true if BB is an irreducible loop header block. Otherwise false.

print

Print block frequencies for the current function to OS.

releaseMemory

Release owned frequency data and reset to an empty state.

setBlockFreq

Set the frequency of BB to Freq.

setBlockFreqAndScale

Set ReferenceBB's frequency and scale related blocks proportionally.

verifyMatch

Assert that this analysis matches Other block‐for‐block.

view

Pop up a Graphviz window showing block frequency propagation.

Non-Member Functions

Name

Description

printBlockFreq

Print the block frequency Freq relative to the current functions entry frequency. Returns a Printable object that can be piped via << to a raw_ostream.

printBlockFreq

Convenience function equivalent to calling printBlockFreq(BFI, BFI.getBlocakFreq(&BB)).

Created with MrDocs