Lines Matching refs:BFI
144 const BlockFrequencyInfo *BFI) { in getEdgeAttributes()
145 return BFIDOTGTraitsBase::getEdgeAttributes(Node, EI, BFI, BFI->getBPI(), in getEdgeAttributes()
161 : BFI(std::move(Arg.BFI)) {} in BlockFrequencyInfo()
165 BFI = std::move(RHS.BFI); in operator =()
187 if (!BFI) in calculate()
188 BFI.reset(new ImplType); in calculate()
189 BFI->calculate(F, BPI, LI); in calculate()
203 return BFI ? BFI->getBlockFreq(BB) : 0; in getBlockFreq()
209 if (!BFI) in getBlockProfileCount()
212 return BFI->getBlockProfileCount(*getFunction(), BB, AllowSynthetic); in getBlockProfileCount()
217 if (!BFI) in getProfileCountFromFreq()
219 return BFI->getProfileCountFromFreq(*getFunction(), Freq); in getProfileCountFromFreq()
223 assert(BFI && "Expected analysis to be available"); in isIrrLoopHeader()
224 return BFI->isIrrLoopHeader(BB); in isIrrLoopHeader()
228 assert(BFI && "Expected analysis to be available"); in setBlockFreq()
229 BFI->setBlockFreq(BB, Freq); in setBlockFreq()
235 assert(BFI && "Expected analysis to be available"); in setBlockFreqAndScale()
238 APInt OldFreq(128, BFI->getBlockFreq(ReferenceBB).getFrequency()); in setBlockFreqAndScale()
241 BBFreq = BFI->getBlockFreq(BB).getFrequency(); in setBlockFreqAndScale()
249 BFI->setBlockFreq(BB, BBFreq.getLimitedValue()); in setBlockFreqAndScale()
251 BFI->setBlockFreq(ReferenceBB, Freq); in setBlockFreqAndScale()
261 return BFI ? BFI->getFunction() : nullptr; in getFunction()
265 return BFI ? &BFI->getBPI() : nullptr; in getBPI()
270 return BFI ? BFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
276 return BFI ? BFI->printBlockFreq(OS, BB) : OS; in printBlockFreq()
280 return BFI ? BFI->getEntryFreq() : 0; in getEntryFreq()
283 void BlockFrequencyInfo::releaseMemory() { BFI.reset(); } in releaseMemory()
286 if (BFI) in print()
287 BFI->print(OS); in print()
291 if (BFI) in verifyMatch()
292 BFI->verifyMatch(*Other.BFI); in verifyMatch()
313 BFI.print(OS); in print()
322 void BlockFrequencyInfoWrapperPass::releaseMemory() { BFI.releaseMemory(); } in releaseMemory()
328 BFI.calculate(F, BPI, LI); in runOnFunction()
335 BlockFrequencyInfo BFI; in run() local
336 BFI.calculate(F, AM.getResult<BranchProbabilityAnalysis>(F), in run()
338 return BFI; in run()