LLVM  12.0.0git
Public Member Functions | List of all members
llvm::MBFIWrapper Class Reference

#include "llvm/CodeGen/MBFIWrapper.h"

Public Member Functions

 MBFIWrapper (const MachineBlockFrequencyInfo &I)
 
BlockFrequency getBlockFreq (const MachineBasicBlock *MBB) const
 
void setBlockFreq (const MachineBasicBlock *MBB, BlockFrequency F)
 
raw_ostreamprintBlockFreq (raw_ostream &OS, const MachineBasicBlock *MBB) const
 
raw_ostreamprintBlockFreq (raw_ostream &OS, const BlockFrequency Freq) const
 
void view (const Twine &Name, bool isSimple=true)
 
uint64_t getEntryFreq () const
 
const MachineBlockFrequencyInfogetMBFI ()
 

Detailed Description

Definition at line 25 of file MBFIWrapper.h.

Constructor & Destructor Documentation

◆ MBFIWrapper()

llvm::MBFIWrapper::MBFIWrapper ( const MachineBlockFrequencyInfo I)
inline

Member Function Documentation

◆ getBlockFreq()

BlockFrequency MBFIWrapper::getBlockFreq ( const MachineBasicBlock MBB) const

◆ getEntryFreq()

uint64_t MBFIWrapper::getEntryFreq ( ) const

Definition at line 47 of file MBFIWrapper.cpp.

References llvm::MachineBlockFrequencyInfo::getEntryFreq().

Referenced by MBFIWrapper().

◆ getMBFI()

const MachineBlockFrequencyInfo& llvm::MBFIWrapper::getMBFI ( )
inline

Definition at line 37 of file MBFIWrapper.h.

Referenced by llvm::shouldOptimizeForSize().

◆ printBlockFreq() [1/2]

raw_ostream & MBFIWrapper::printBlockFreq ( raw_ostream OS,
const MachineBasicBlock MBB 
) const

Definition at line 33 of file MBFIWrapper.cpp.

References getBlockFreq(), and llvm::MachineBlockFrequencyInfo::printBlockFreq().

Referenced by MBFIWrapper().

◆ printBlockFreq() [2/2]

raw_ostream & MBFIWrapper::printBlockFreq ( raw_ostream OS,
const BlockFrequency  Freq 
) const

Definition at line 38 of file MBFIWrapper.cpp.

References llvm::MachineBlockFrequencyInfo::printBlockFreq().

◆ setBlockFreq()

void MBFIWrapper::setBlockFreq ( const MachineBasicBlock MBB,
BlockFrequency  F 
)

Definition at line 28 of file MBFIWrapper.cpp.

References F(), and MBB.

Referenced by ComputeCommonTailLength(), MBFIWrapper(), and mergeOperations().

◆ view()

void MBFIWrapper::view ( const Twine Name,
bool  isSimple = true 
)

Definition at line 43 of file MBFIWrapper.cpp.

References llvm::MachineBlockFrequencyInfo::view().

Referenced by MBFIWrapper().


The documentation for this class was generated from the following files: