LLVM  14.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)
 
Optional< uint64_tgetBlockProfileCount (const MachineBasicBlock *MBB) const
 
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 26 of file MBFIWrapper.h.

Constructor & Destructor Documentation

◆ MBFIWrapper()

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

Definition at line 28 of file MBFIWrapper.h.

Member Function Documentation

◆ getBlockFreq()

BlockFrequency MBFIWrapper::getBlockFreq ( const MachineBasicBlock MBB) const

◆ getBlockProfileCount()

Optional< uint64_t > MBFIWrapper::getBlockProfileCount ( const MachineBasicBlock MBB) const

◆ getEntryFreq()

uint64_t MBFIWrapper::getEntryFreq ( ) const

Definition at line 60 of file MBFIWrapper.cpp.

References llvm::MachineBlockFrequencyInfo::getEntryFreq().

◆ getMBFI()

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

Definition at line 40 of file MBFIWrapper.h.

Referenced by llvm::shouldOptimizeForSize().

◆ printBlockFreq() [1/2]

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

Definition at line 51 of file MBFIWrapper.cpp.

References llvm::MachineBlockFrequencyInfo::printBlockFreq().

◆ printBlockFreq() [2/2]

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

◆ setBlockFreq()

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

Definition at line 29 of file MBFIWrapper.cpp.

References F, and MBB.

◆ view()

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

Definition at line 56 of file MBFIWrapper.cpp.

References isSimple(), and llvm::MachineBlockFrequencyInfo::view().


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