Lines Matching refs:MBFI

156                                 const MachineBlockFrequencyInfo *MBFI) {  in getEdgeAttributes()
158 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes()
197 if (!MBFI) in calculate()
198 MBFI.reset(new ImplType); in calculate()
199 MBFI->calculate(F, MBPI, MLI); in calculate()
207 MBFI->print(dbgs()); in calculate()
219 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); } in releaseMemory()
230 return MBFI ? MBFI->getBlockFreq(MBB) : BlockFrequency(0); in getBlockFreq()
235 if (!MBFI) in getBlockProfileCount()
238 const Function &F = MBFI->getFunction()->getFunction(); in getBlockProfileCount()
239 return MBFI->getBlockProfileCount(F, MBB); in getBlockProfileCount()
244 if (!MBFI) in getProfileCountFromFreq()
247 const Function &F = MBFI->getFunction()->getFunction(); in getProfileCountFromFreq()
248 return MBFI->getProfileCountFromFreq(F, Freq); in getProfileCountFromFreq()
253 assert(MBFI && "Expected analysis to be available"); in isIrrLoopHeader()
254 return MBFI->isIrrLoopHeader(MBB); in isIrrLoopHeader()
261 assert(MBFI && "Expected analysis to be available"); in onEdgeSplit()
262 auto NewSuccFreq = MBFI->getBlockFreq(&NewPredecessor) * in onEdgeSplit()
265 MBFI->setBlockFreq(&NewSuccessor, NewSuccFreq); in onEdgeSplit()
269 return MBFI ? MBFI->getFunction() : nullptr; in getFunction()
273 return MBFI ? &MBFI->getBPI() : nullptr; in getMBPI()
277 return MBFI ? MBFI->getEntryFreq() : BlockFrequency(0); in getEntryFreq()
280 Printable llvm::printBlockFreq(const MachineBlockFrequencyInfo &MBFI, in printBlockFreq() argument
282 return Printable([&MBFI, Freq](raw_ostream &OS) { in printBlockFreq()
283 printBlockFreqImpl(OS, MBFI.getEntryFreq(), Freq); in printBlockFreq()
287 Printable llvm::printBlockFreq(const MachineBlockFrequencyInfo &MBFI, in printBlockFreq() argument
289 return printBlockFreq(MBFI, MBFI.getBlockFreq(&MBB)); in printBlockFreq()