LLVM 20.0.0git
|
#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_t > | getBlockProfileCount (const MachineBasicBlock *MBB) const |
void | view (const Twine &Name, bool isSimple=true) |
BlockFrequency | getEntryFreq () const |
const MachineBlockFrequencyInfo & | getMBFI () const |
Definition at line 26 of file MBFIWrapper.h.
|
inline |
Definition at line 28 of file MBFIWrapper.h.
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().
std::optional< uint64_t > MBFIWrapper::getBlockProfileCount | ( | const MachineBasicBlock * | MBB | ) | const |
Definition at line 35 of file MBFIWrapper.cpp.
References llvm::MachineBlockFrequencyInfo::getBlockProfileCount(), llvm::MachineBlockFrequencyInfo::getProfileCountFromFreq(), I, and MBB.
BlockFrequency MBFIWrapper::getEntryFreq | ( | ) | const |
Definition at line 50 of file MBFIWrapper.cpp.
References llvm::MachineBlockFrequencyInfo::getEntryFreq().
|
inline |
Definition at line 37 of file MBFIWrapper.h.
Referenced by llvm::RegBankSelect::InstrInsertPoint::frequency(), llvm::RegBankSelect::MBBInsertPoint::frequency(), llvm::RegBankSelect::EdgeInsertPoint::frequency(), and llvm::shouldOptimizeForSize().
void MBFIWrapper::setBlockFreq | ( | const MachineBasicBlock * | MBB, |
BlockFrequency | F | ||
) |
Definition at line 29 of file MBFIWrapper.cpp.
Definition at line 46 of file MBFIWrapper.cpp.
References isSimple(), Name, and llvm::MachineBlockFrequencyInfo::view().