LLVM
8.0.1
|
This class keeps track of branch frequencies of newly created blocks and tail-merged blocks. More...
#include "CodeGen/BranchFolding.h"
Public Member Functions | |
MBFIWrapper (const MachineBlockFrequencyInfo &I) | |
BlockFrequency | getBlockFreq (const MachineBasicBlock *MBB) const |
void | setBlockFreq (const MachineBasicBlock *MBB, BlockFrequency F) |
raw_ostream & | printBlockFreq (raw_ostream &OS, const MachineBasicBlock *MBB) const |
raw_ostream & | printBlockFreq (raw_ostream &OS, const BlockFrequency Freq) const |
void | view (const Twine &Name, bool isSimple=true) |
uint64_t | getEntryFreq () const |
This class keeps track of branch frequencies of newly created blocks and tail-merged blocks.
Definition at line 137 of file BranchFolding.h.
|
inline |
Definition at line 139 of file BranchFolding.h.
References F(), isSimple(), and Name.
BlockFrequency BranchFolder::MBFIWrapper::getBlockFreq | ( | const MachineBasicBlock * | MBB | ) | const |
Definition at line 551 of file BranchFolding.cpp.
References I.
Referenced by ComputeCommonTailLength(), and mergeOperations().
uint64_t BranchFolder::MBFIWrapper::getEntryFreq | ( | ) | const |
Definition at line 582 of file BranchFolding.cpp.
raw_ostream & BranchFolder::MBFIWrapper::printBlockFreq | ( | raw_ostream & | OS, |
const MachineBasicBlock * | MBB | ||
) | const |
Definition at line 566 of file BranchFolding.cpp.
raw_ostream & BranchFolder::MBFIWrapper::printBlockFreq | ( | raw_ostream & | OS, |
const BlockFrequency | Freq | ||
) | const |
Definition at line 572 of file BranchFolding.cpp.
void BranchFolder::MBFIWrapper::setBlockFreq | ( | const MachineBasicBlock * | MBB, |
BlockFrequency | F | ||
) |
Definition at line 560 of file BranchFolding.cpp.
References F().
Referenced by ComputeCommonTailLength(), and mergeOperations().
Definition at line 577 of file BranchFolding.cpp.