Home | History | Annotate | Download | only in Analysis

Lines Matching defs:BFI

46     ViewBlockFreqFuncName("view-bfi-func-name", cl::Hidden,
106 const BlockFrequencyInfo *BFI) {
107 return BFIDOTGTraitsBase::getEdgeAttributes(Node, EI, BFI, BFI->getBPI(),
124 : BFI(std::move(Arg.BFI)) {}
128 BFI = std::move(RHS.BFI);
133 // defined at the first ODR-use which is the BFI member in the
141 if (!BFI)
142 BFI.reset(new ImplType);
143 BFI->calculate(F, BPI, LI);
154 return BFI ? BFI->getBlockFreq(BB) : 0;
159 if (!BFI)
162 return BFI->getBlockProfileCount(*getFunction(), BB);
166 assert(BFI && "Expected analysis to be available");
167 BFI->setBlockFreq(BB, Freq);
183 return BFI ? BFI->getFunction() : nullptr;
187 return BFI ? &BFI->getBPI() : nullptr;
192 return BFI ? BFI->printBlockFreq(OS, Freq) : OS;
198 return BFI ? BFI->printBlockFreq(OS, BB) : OS;
202 return BFI ? BFI->getEntryFreq() : 0;
205 void BlockFrequencyInfo::releaseMemory() { BFI.reset(); }
208 if (BFI)
209 BFI->print(OS);
232 BFI.print(OS);
241 void BlockFrequencyInfoWrapperPass::releaseMemory() { BFI.releaseMemory(); }
247 BFI.calculate(F, BPI, LI);
254 BlockFrequencyInfo BFI;
255 BFI.calculate(F, AM.getResult<BranchProbabilityAnalysis>(F),
257 return BFI;
262 OS << "Printing analysis results of BFI for function "