Lines Matching refs:BFI
106 const BlockFrequencyInfo *BFI) { in getEdgeAttributes()
107 return BFIDOTGTraitsBase::getEdgeAttributes(Node, EI, BFI, BFI->getBPI(), in getEdgeAttributes()
124 : BFI(std::move(Arg.BFI)) {} in BlockFrequencyInfo()
128 BFI = std::move(RHS.BFI); in operator =()
141 if (!BFI) in calculate()
142 BFI.reset(new ImplType); in calculate()
143 BFI->calculate(F, BPI, LI); in calculate()
154 return BFI ? BFI->getBlockFreq(BB) : 0; in getBlockFreq()
159 if (!BFI) in getBlockProfileCount()
162 return BFI->getBlockProfileCount(*getFunction(), BB); in getBlockProfileCount()
166 assert(BFI && "Expected analysis to be available"); in setBlockFreq()
167 BFI->setBlockFreq(BB, Freq); in setBlockFreq()
183 return BFI ? BFI->getFunction() : nullptr; in getFunction()
187 return BFI ? &BFI->getBPI() : nullptr; in getBPI()
192 return BFI ? BFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
198 return BFI ? BFI->printBlockFreq(OS, BB) : OS; in printBlockFreq()
202 return BFI ? BFI->getEntryFreq() : 0; in getEntryFreq()
205 void BlockFrequencyInfo::releaseMemory() { BFI.reset(); } in releaseMemory()
208 if (BFI) in print()
209 BFI->print(OS); in print()
232 BFI.print(OS); in print()
241 void BlockFrequencyInfoWrapperPass::releaseMemory() { BFI.releaseMemory(); } in releaseMemory()
247 BFI.calculate(F, BPI, LI); in runOnFunction()
254 BlockFrequencyInfo BFI; in run() local
255 BFI.calculate(F, AM.getResult<BranchProbabilityAnalysis>(F), in run()
257 return BFI; in run()