Lines Matching defs:MBFI

156                                 const MachineBlockFrequencyInfo *MBFI) {
158 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent);
177 auto &MBFI = MFAM.getResult<MachineBlockFrequencyAnalysis>(MF);
180 MBFI.print(OS);
234 if (!MBFI)
235 MBFI.reset(new ImplType);
236 MBFI->calculate(F, MBPI, MLI);
243 MBFI->print(dbgs());
252 MBFI.calculate(F, MBPI, MLI);
256 void MachineBlockFrequencyInfo::print(raw_ostream &OS) { MBFI->print(OS); }
258 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); }
269 return MBFI ? MBFI->getBlockFreq(MBB) : BlockFrequency(0);
274 if (!MBFI)
277 const Function &F = MBFI->getFunction()->getFunction();
278 return MBFI->getBlockProfileCount(F, MBB);
283 if (!MBFI)
286 const Function &F = MBFI->getFunction()->getFunction();
287 return MBFI->getProfileCountFromFreq(F, Freq);
292 assert(MBFI && "Expected analysis to be available");
293 return MBFI->isIrrLoopHeader(MBB);
300 assert(MBFI && "Expected analysis to be available");
301 auto NewSuccFreq = MBFI->getBlockFreq(&NewPredecessor) *
304 MBFI->setBlockFreq(&NewSuccessor, NewSuccFreq);
308 return MBFI ? MBFI->getFunction() : nullptr;
312 return MBFI ? &MBFI->getBPI() : nullptr;
316 return MBFI ? MBFI->getEntryFreq() : BlockFrequency(0);
319 Printable llvm::printBlockFreq(const MachineBlockFrequencyInfo &MBFI,
321 return Printable([&MBFI, Freq](raw_ostream &OS) {
322 printRelativeBlockFreq(OS, MBFI.getEntryFreq(), Freq);
326 Printable llvm::printBlockFreq(const MachineBlockFrequencyInfo &MBFI,
328 return printBlockFreq(MBFI, MBFI.getBlockFreq(&MBB));