Tracks block frequencies for newly created and tail‐merged blocks.

Synopsis

Declared in <llvm/CodeGen/MBFIWrapper.h>

class MBFIWrapper;

Description

Wraps a MachineBlockFrequencyInfo and overlays frequencies for blocks that do not yet appear in the underlying analysis. Used by TailDuplication and MachineBlockPlacement.

Member Functions

Name

Description

MBFIWrapper [constructor]

Construct a wrapper around the given MachineBlockFrequencyInfo.

getBlockFreq

Return the frequency of machine basic block MBB.

getBlockProfileCount

Return the estimated profile count of MBB.

getEntryFreq

Return the frequency of the function entry block.

getMBFI

Return the underlying MachineBlockFrequencyInfo.

setBlockFreq

Set an overridden frequency for machine basic block MBB.

view

Pop up a ghostview window with the current block frequency propagation rendered using dot.

Created with MrDocs