Lines Matching refs:MachineBlockFrequencyInfo
1 //===- MachineBlockFrequencyInfo.cpp - MBB Frequency Analysis -------------===//
14 #include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
54 template <> struct GraphTraits<MachineBlockFrequencyInfo *> {
60 getEntryNode(const MachineBlockFrequencyInfo *G) {
72 static nodes_iterator nodes_begin(const MachineBlockFrequencyInfo *G) {
76 static nodes_iterator nodes_end(const MachineBlockFrequencyInfo *G) {
81 typedef BFIDOTGraphTraitsBase<MachineBlockFrequencyInfo,
85 struct DOTGraphTraits<MachineBlockFrequencyInfo *>
91 const MachineBlockFrequencyInfo *Graph) {
97 const MachineBlockFrequencyInfo *Graph) {
103 const MachineBlockFrequencyInfo *MBFI) {
112 INITIALIZE_PASS_BEGIN(MachineBlockFrequencyInfo, "machine-block-freq",
116 INITIALIZE_PASS_END(MachineBlockFrequencyInfo, "machine-block-freq",
119 char MachineBlockFrequencyInfo::ID = 0;
121 MachineBlockFrequencyInfo::MachineBlockFrequencyInfo()
126 MachineBlockFrequencyInfo::~MachineBlockFrequencyInfo() {}
128 void MachineBlockFrequencyInfo::getAnalysisUsage(AnalysisUsage &AU) const {
135 bool MachineBlockFrequencyInfo::runOnMachineFunction(MachineFunction &F) {
152 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); }
156 void MachineBlockFrequencyInfo::view() const {
159 ViewGraph(const_cast<MachineBlockFrequencyInfo *>(this),
162 errs() << "MachineBlockFrequencyInfo::view is only available in debug builds "
168 MachineBlockFrequencyInfo::getBlockFreq(const MachineBasicBlock *MBB) const {
172 Optional<uint64_t> MachineBlockFrequencyInfo::getBlockProfileCount(
178 const MachineFunction *MachineBlockFrequencyInfo::getFunction() const {
182 const MachineBranchProbabilityInfo *MachineBlockFrequencyInfo::getMBPI() const {
187 MachineBlockFrequencyInfo::printBlockFreq(raw_ostream &OS,
193 MachineBlockFrequencyInfo::printBlockFreq(raw_ostream &OS,
198 uint64_t MachineBlockFrequencyInfo::getEntryFreq() const {