LLVM 20.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)
 
std::optional< uint64_tgetBlockProfileCount (const MachineBasicBlock *MBB) const
 
void view (const Twine &Name, bool isSimple=true)
 
BlockFrequency getEntryFreq () const
 
const MachineBlockFrequencyInfogetMBFI () const
 

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

Definition at line 20 of file MBFIWrapper.cpp.

References llvm::MachineBlockFrequencyInfo::getBlockFreq(), I, and MBB.

Referenced by llvm::shouldOptimizeForSize().

◆ getBlockProfileCount()

std::optional< uint64_t > MBFIWrapper::getBlockProfileCount ( const MachineBasicBlock MBB) const

◆ getEntryFreq()

BlockFrequency MBFIWrapper::getEntryFreq ( ) const

Definition at line 50 of file MBFIWrapper.cpp.

References llvm::MachineBlockFrequencyInfo::getEntryFreq().

◆ getMBFI()

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

◆ 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 46 of file MBFIWrapper.cpp.

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


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