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()
201 return BFI ? BFI->getBlockFreq(BB) : BlockFrequency(0); in getBlockFreq()
207 if (!BFI) in getBlockProfileCount()
210 return BFI->getBlockProfileCount(*getFunction(), BB, AllowSynthetic); in getBlockProfileCount()
215 if (!BFI) in getProfileCountFromFreq()
217 return BFI->getProfileCountFromFreq(*getFunction(), Freq); in getProfileCountFromFreq()
221 assert(BFI && "Expected analysis to be available"); in isIrrLoopHeader()
222 return BFI->isIrrLoopHeader(BB); in isIrrLoopHeader()
227 assert(BFI && "Expected analysis to be available"); in setBlockFreq()
228 BFI->setBlockFreq(BB, Freq); in setBlockFreq()
234 assert(BFI && "Expected analysis to be available"); in setBlockFreqAndScale()
237 APInt OldFreq(128, BFI->getBlockFreq(ReferenceBB).getFrequency()); in setBlockFreqAndScale()
240 BBFreq = BFI->getBlockFreq(BB).getFrequency(); in setBlockFreqAndScale()
248 BFI->setBlockFreq(BB, BlockFrequency(BBFreq.getLimitedValue())); in setBlockFreqAndScale()
250 BFI->setBlockFreq(ReferenceBB, Freq); in setBlockFreqAndScale()
260 return BFI ? BFI->getFunction() : nullptr; in getFunction()
264 return BFI ? &BFI->getBPI() : nullptr; in getBPI()
268 return BFI ? BFI->getEntryFreq() : BlockFrequency(0); in getEntryFreq()
271 void BlockFrequencyInfo::releaseMemory() { BFI.reset(); } in releaseMemory()
274 if (BFI) in print()
275 BFI->print(OS); in print()
279 if (BFI) in verifyMatch()
280 BFI->verifyMatch(*Other.BFI); in verifyMatch()
283 Printable llvm::printBlockFreq(const BlockFrequencyInfo &BFI, in printBlockFreq() argument
285 return Printable([&BFI, Freq](raw_ostream &OS) { in printBlockFreq()
286 printRelativeBlockFreq(OS, BFI.getEntryFreq(), Freq); in printBlockFreq()
290 Printable llvm::printBlockFreq(const BlockFrequencyInfo &BFI, in printBlockFreq() argument
292 return printBlockFreq(BFI, BFI.getBlockFreq(&BB)); in printBlockFreq()
313 BFI.print(OS); in print()
322 void BlockFrequencyInfoWrapperPass::releaseMemory() { BFI.releaseMemory(); } in releaseMemory()
328 BFI.calculate(F, BPI, LI); in runOnFunction()
337 BlockFrequencyInfo BFI; in run() local
338 BFI.calculate(F, BP, LI); in run()
339 return BFI; in run()