Lines Matching refs:MachineBlockFrequencyInfo
1 //===- MachineBlockFrequencyInfo.cpp - MBB Frequency Analysis -------------===//
14 #include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
88 template <> struct GraphTraits<MachineBlockFrequencyInfo *> {
93 static NodeRef getEntryNode(const MachineBlockFrequencyInfo *G) {
103 static nodes_iterator nodes_begin(const MachineBlockFrequencyInfo *G) {
107 static nodes_iterator nodes_end(const MachineBlockFrequencyInfo *G) {
113 BFIDOTGraphTraitsBase<MachineBlockFrequencyInfo,
117 struct DOTGraphTraits<MachineBlockFrequencyInfo *>
126 const MachineBlockFrequencyInfo *Graph) {
148 const MachineBlockFrequencyInfo *Graph) {
154 const MachineBlockFrequencyInfo *MBFI) {
162 INITIALIZE_PASS_BEGIN(MachineBlockFrequencyInfo, DEBUG_TYPE,
166 INITIALIZE_PASS_END(MachineBlockFrequencyInfo, DEBUG_TYPE,
169 char MachineBlockFrequencyInfo::ID = 0;
171 MachineBlockFrequencyInfo::MachineBlockFrequencyInfo()
176 MachineBlockFrequencyInfo::~MachineBlockFrequencyInfo() = default;
178 void MachineBlockFrequencyInfo::getAnalysisUsage(AnalysisUsage &AU) const {
185 void MachineBlockFrequencyInfo::calculate(
203 bool MachineBlockFrequencyInfo::runOnMachineFunction(MachineFunction &F) {
211 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); }
215 void MachineBlockFrequencyInfo::view(const Twine &Name, bool isSimple) const {
217 ViewGraph(const_cast<MachineBlockFrequencyInfo *>(this), Name, isSimple);
221 MachineBlockFrequencyInfo::getBlockFreq(const MachineBasicBlock *MBB) const {
225 Optional<uint64_t> MachineBlockFrequencyInfo::getBlockProfileCount(
232 MachineBlockFrequencyInfo::getProfileCountFromFreq(uint64_t Freq) const {
238 MachineBlockFrequencyInfo::isIrrLoopHeader(const MachineBasicBlock *MBB) {
243 const MachineFunction *MachineBlockFrequencyInfo::getFunction() const {
247 const MachineBranchProbabilityInfo *MachineBlockFrequencyInfo::getMBPI() const {
252 MachineBlockFrequencyInfo::printBlockFreq(raw_ostream &OS,
258 MachineBlockFrequencyInfo::printBlockFreq(raw_ostream &OS,
263 uint64_t MachineBlockFrequencyInfo::getEntryFreq() const {