LLVM 22.0.0git
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.

References I.

Member Function Documentation

◆ getBlockFreq()

BlockFrequency MBFIWrapper::getBlockFreq ( const MachineBasicBlock * MBB) const

Definition at line 20 of file MBFIWrapper.cpp.

References I, and MBB.

Referenced by llvm::shouldOptimizeForSize().

◆ getBlockProfileCount()

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

Definition at line 35 of file MBFIWrapper.cpp.

References I, and MBB.

◆ getEntryFreq()

BlockFrequency MBFIWrapper::getEntryFreq ( ) const

Definition at line 50 of file MBFIWrapper.cpp.

◆ getMBFI()

◆ 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().


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