LLVM: llvm::MachineBlockFrequencyInfo Class Reference (original) (raw)
MachineBlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate machine basic block frequencies. More...
#include "[llvm/CodeGen/MachineBlockFrequencyInfo.h](MachineBlockFrequencyInfo%5F8h%5Fsource.html)"
| Public Member Functions |
|
| LLVM_ABI |
MachineBlockFrequencyInfo () |
| LLVM_ABI |
MachineBlockFrequencyInfo (const MachineFunction &F, const MachineBranchProbabilityInfo &MBPI, const MachineLoopInfo &MLI) |
| LLVM_ABI |
MachineBlockFrequencyInfo (MachineBlockFrequencyInfo &&) |
| LLVM_ABI |
~MachineBlockFrequencyInfo () |
| LLVM_ABI bool |
invalidate (MachineFunction &F, const PreservedAnalyses &PA, MachineFunctionAnalysisManager::Invalidator &) |
|
Handle invalidation explicitly. |
| LLVM_ABI void |
calculate (const MachineFunction &F, const MachineBranchProbabilityInfo &MBPI, const MachineLoopInfo &MLI) |
|
calculate - compute block frequency info for the given function. |
| LLVM_ABI void |
print (raw_ostream &OS) |
| LLVM_ABI void |
releaseMemory () |
| LLVM_ABI BlockFrequency |
getBlockFreq (const MachineBasicBlock *MBB) const |
|
getblockFreq - Return block frequency. |
| double |
getBlockFreqRelativeToEntryBlock (const MachineBasicBlock *MBB) const |
|
Compute the frequency of the block, relative to the entry block. |
| LLVM_ABI std::optional< uint64_t > |
getBlockProfileCount (const MachineBasicBlock *MBB) const |
| LLVM_ABI std::optional< uint64_t > |
getProfileCountFromFreq (BlockFrequency Freq) const |
| LLVM_ABI bool |
isIrrLoopHeader (const MachineBasicBlock *MBB) const |
| LLVM_ABI void |
onEdgeSplit (const MachineBasicBlock &NewPredecessor, const MachineBasicBlock &NewSuccessor, const MachineBranchProbabilityInfo &MBPI) |
|
incrementally calculate block frequencies when we split edges, to avoid full CFG traversal. |
| LLVM_ABI const MachineFunction * |
getFunction () const |
| LLVM_ABI const MachineBranchProbabilityInfo * |
getMBPI () const |
| LLVM_ABI void |
view (const Twine &Name, bool isSimple=true) const |
|
Pop up a ghostview window with the current block frequency propagation rendered using dot. |
| LLVM_ABI BlockFrequency |
getEntryFreq () const |
|
Divide a block's BlockFrequency::getFrequency() value by this value to obtain the entry block - relative frequency of said block. |
MachineBlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate machine basic block frequencies.
Definition at line 35 of file MachineBlockFrequencyInfo.h.
| MachineBlockFrequencyInfo::MachineBlockFrequencyInfo ( ) |
default |
◆ MachineBlockFrequencyInfo() [2/3]
◆ MachineBlockFrequencyInfo() [3/3]
◆ ~MachineBlockFrequencyInfo()
| MachineBlockFrequencyInfo::~MachineBlockFrequencyInfo ( ) |
default |
◆ calculate()
◆ getBlockFreq()
◆ getBlockFreqRelativeToEntryBlock()
| double llvm::MachineBlockFrequencyInfo::getBlockFreqRelativeToEntryBlock ( const MachineBasicBlock * MBB) const |
inline |
◆ getBlockProfileCount()
◆ getEntryFreq()
◆ getFunction()
◆ getMBPI()
◆ getProfileCountFromFreq()
◆ invalidate()
◆ onEdgeSplit()
◆ print()
| void MachineBlockFrequencyInfo::print |
( |
raw_ostream & |
OS |
) |
◆ releaseMemory()
| void MachineBlockFrequencyInfo::releaseMemory |
( |
) |
◆ view()
| void MachineBlockFrequencyInfo::view |
( |
const Twine & |
Name, |
| bool |
isSimple = true ) const |
|
|
The documentation for this class was generated from the following files: