| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| SizeOpts.cpp | 64 BlockFrequencyInfo &BFI) { 65 return PSI->isFunctionColdInCallGraph(F, BFI); 70 BlockFrequencyInfo &BFI) { 71 return PSI->isFunctionHotInCallGraphNthPercentile(CutOff, F, BFI); 76 BlockFrequencyInfo &BFI) { 77 return PSI->isFunctionColdInCallGraphNthPercentile(CutOff, F, BFI); 81 BlockFrequencyInfo *BFI) { 82 return PSI->isColdBlock(BB, BFI); 87 BlockFrequencyInfo *BFI) { 88 return PSI->isHotBlockNthPercentile(CutOff, BB, BFI); [all...] |
| BreakCriticalEdges.cpp | 353 BlockFrequencyInfo *BFI) { 370 bool ShouldUpdateAnalysis = BPI && BFI; 397 // Copy the BFI/BPI from Target to BodyBlock. 399 BFI->setBlockFreq(BodyBlock, BFI->getBlockFreq(Target).getFrequency()); 419 BlockFreqForDirectSucc += BFI->getBlockFreq(Src) * 423 BFI->setBlockFreq(DirectSucc, BlockFreqForDirectSucc.getFrequency()); 425 BFI->getBlockFreq(Target) - BlockFreqForDirectSucc; 426 BFI->setBlockFreq(Target, NewBlockFreqForTarget.getFrequency());
|
| /src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| BlockFrequencyInfo.cpp | 52 ViewBlockFreqFuncName("view-bfi-func-name", cl::Hidden, 77 "-view-bfi-func-name."), 83 "print-bfi", cl::init(false), cl::Hidden, 87 "print-bfi-func-name", cl::Hidden, 146 const BlockFrequencyInfo *BFI) { 147 return BFIDOTGTraitsBase::getEdgeAttributes(Node, EI, BFI, BFI->getBPI(), 163 : BFI(std::move(Arg.BFI)) {} 167 BFI = std::move(RHS.BFI) [all...] |
| OptimizationRemarkEmitter.cpp | 10 // that by using this service passes become dependent on BFI as well. BFI is 27 : F(F), BFI(nullptr) { 42 // Finally compute BFI. 44 BFI = OwnedBFI.get(); 52 BFI = nullptr; 55 // a fresh view of BFI if it was constructed with one. 56 if (BFI && Inv.invalidate<BlockFrequencyAnalysis>(F, PA)) 64 if (!BFI) 67 return BFI->getBlockProfileCount(cast<BasicBlock>(V)) [all...] |
| CFGPrinter.cpp | 58 static void writeCFGToDotFile(Function &F, BlockFrequencyInfo *BFI, 68 DOTFuncInfo CFGInfo(&F, BFI, BPI, MaxFreq); 80 static void viewCFG(Function &F, const BlockFrequencyInfo *BFI, 83 DOTFuncInfo CFGInfo(&F, BFI, BPI, MaxFreq); 100 auto *BFI = &getAnalysis<BlockFrequencyInfoWrapperPass>().getBFI(); 101 viewCFG(F, BFI, BPI, getMaxFreq(F, BFI)); 121 auto *BFI = &AM.getResult<BlockFrequencyAnalysis>(F); 123 viewCFG(F, BFI, BPI, getMaxFreq(F, BFI)); [all...] |
| ProfileSummaryInfo.cpp | 78 const CallBase &Call, BlockFrequencyInfo *BFI, bool AllowSynthetic) const { 91 if (BFI) 92 return BFI->getBlockProfileCount(Call.getParent(), AllowSynthetic); 115 const Function *F, BlockFrequencyInfo &BFI) const { 133 if (isHotBlock(&BB, &BFI)) 144 const Function *F, BlockFrequencyInfo &BFI) const { 162 if (!isColdBlock(&BB, &BFI)) 174 int PercentileCutoff, const Function *F, BlockFrequencyInfo &BFI) const { 198 if (isHot && isHotBlockNthPercentile(PercentileCutoff, &BB, &BFI)) 200 if (!isHot && !isColdBlockNthPercentile(PercentileCutoff, &BB, &BFI)) [all...] |
| HeatUtils.cpp | 52 uint64_t getMaxFreq(const Function &F, const BlockFrequencyInfo *BFI) { 55 uint64_t freqVal = BFI->getBlockFreq(&BB).getFrequency();
|
| BlockFrequencyInfoImpl.cpp | 45 "check-bfi-unknown-block-queries", 48 "for debugging missed BFI updates")); 290 static void cleanup(BlockFrequencyInfoImplBase &BFI) { 291 std::vector<FrequencyData> SavedFreqs(std::move(BFI.Freqs)); 292 SparseBitVector<> SavedIsIrrLoopHeader(std::move(BFI.IsIrrLoopHeader)); 293 BFI.clear(); 294 BFI.Freqs = std::move(SavedFreqs); 295 BFI.IsIrrLoopHeader = std::move(SavedIsIrrLoopHeader); 421 static void debugAssign(const BlockFrequencyInfoImplBase &BFI, 428 dbgs() << " to " << BFI.getBlockName(T) [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
| SizeOpts.h | 53 BFIT *BFI, PGSOQueryType QueryType) { 55 if (!PSI || !BFI || !PSI->hasProfileSummary()) 62 return AdapterT::isFunctionColdInCallGraph(F, PSI, *BFI); 67 PgsoCutoffSampleProf, F, PSI, *BFI); 69 F, PSI, *BFI); 74 BFIT *BFI, PGSOQueryType QueryType) { 75 if (!PSI || !BFI || !PSI->hasProfileSummary()) 82 return AdapterT::isColdBlock(BBOrBlockFreq, PSI, BFI); 87 BBOrBlockFreq, PSI, BFI); 89 PSI, BFI); [all...] |
| CodeExtractor.h | 91 BlockFrequencyInfo *BFI; 120 bool AggregateArgs = false, BlockFrequencyInfo *BFI = nullptr, 131 BlockFrequencyInfo *BFI = nullptr,
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
| ProfileSummaryInfo.h | 38 // units. This would require making this depend on BFI. 101 BlockFrequencyInfo *BFI, 113 BlockFrequencyInfo &BFI) const; 118 BlockFrequencyInfo &BFI) const; 125 BlockFrequencyInfo &BFI) const; 130 BlockFrequencyInfo &BFI) const; 142 bool isHotBlock(const BasicBlock *BB, BlockFrequencyInfo *BFI) const; 144 bool isColdBlock(const BasicBlock *BB, BlockFrequencyInfo *BFI) const; 148 BlockFrequencyInfo *BFI) const; 152 BlockFrequencyInfo *BFI) const [all...] |
| OptimizationRemarkEmitter.h | 10 // that by using this service passes become dependent on BFI as well. BFI is 35 OptimizationRemarkEmitter(const Function *F, BlockFrequencyInfo *BFI) 36 : F(F), BFI(BFI) {} 46 /// operation since BFI and all its required analyses are computed. This is 52 : F(Arg.F), BFI(Arg.BFI) {} 56 BFI = RHS.BFI; [all...] |
| HeatUtils.h | 30 uint64_t getMaxFreq(const Function &F, const BlockFrequencyInfo *BFI);
|
| LazyBlockFrequencyInfo.h | 11 // the analysis pass is executed but rather when the BFI result is explicitly 29 /// Wraps a BFI to allow lazy computation of the block frequencies. 31 /// A pass that only conditionally uses BFI can uncondtionally require the 32 /// analysis without paying for the overhead if BFI doesn't end up being used. 48 /// Retrieve the BFI with the block frequencies computed. 52 BFI.calculate( 56 return BFI; 64 BFI.releaseMemory(); 70 BlockFrequencyInfoT BFI; 80 /// rather when the BFI result is explicitly requested by the analysis client [all...] |
| BlockFrequencyInfo.h | 40 std::unique_ptr<ImplType> BFI; 107 // Compare to the other BFI and verify they match. 122 /// Run the analysis pass over a function and produce BFI. 139 BlockFrequencyInfo BFI; 147 BlockFrequencyInfo &getBFI() { return BFI; } 148 const BlockFrequencyInfo &getBFI() const { return BFI; }
|
| CFGPrinter.h | 57 const BlockFrequencyInfo *BFI; 67 DOTFuncInfo(const Function *F, const BlockFrequencyInfo *BFI, 69 : F(F), BFI(BFI), BPI(BPI), MaxFreq(MaxFreq) { 72 RawWeights = !!BFI; // Print RawWeights when BFI is available. 75 const BlockFrequencyInfo *getBFI() { return BFI; } 84 return BFI->getBlockFreq(BB).getFrequency();
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| LoopSink.cpp | 95 BlockFrequencyInfo &BFI) { 98 T += BFI.getBlockFreq(B); 134 DominatorTree &DT, BlockFrequencyInfo &BFI) { 157 if (adjustedSumFreq(BBsDominatedByColdestBB, BFI) > 158 BFI.getBlockFreq(ColdestBB)) { 176 if (adjustedSumFreq(BBsToSinkInto, BFI) > 177 BFI.getBlockFreq(L.getLoopPreheader())) 189 DominatorTree &DT, BlockFrequencyInfo &BFI, MemorySSAUpdater *MSSAU) { 211 findBBsToSinkInto(L, BBs, ColdLoopBBs, DT, BFI); 281 BlockFrequencyInfo &BFI, [all...] |
| LoopLoadElimination.cpp | 167 DominatorTree *DT, BlockFrequencyInfo *BFI, 169 : L(L), LI(LI), LAI(LAI), DT(DT), BFI(BFI), PSI(PSI), PSE(LAI.getPSE()) {} 554 llvm::shouldOptimizeForSize(HeaderBB, PSI, BFI, 603 BlockFrequencyInfo *BFI; 612 BlockFrequencyInfo *BFI, ProfileSummaryInfo *PSI, 638 LoadEliminationForLoop LEL(L, &LI, GetLAI(*L), &DT, BFI, PSI); 664 auto *BFI = (PSI && PSI->hasProfileSummary()) ? 671 F, LI, DT, BFI, PSI, SE, /*AC*/ nullptr, 720 auto *BFI = (PSI && PSI->hasProfileSummary()) [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
| MachineSizeOpts.h | 29 const MachineBlockFrequencyInfo *BFI,
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| SyntheticCountsPropagation.cpp | 115 auto &BFI = FAM.getResult<BlockFrequencyAnalysis>(*Caller); 120 Scaled64 EntryFreq(BFI.getEntryFreq(), 0); 121 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0);
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/ |
| InstructionSelect.h | 56 BlockFrequencyInfo *BFI = nullptr;
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| CFGMST.h | 104 uint64_t EntryWeight = (BFI != nullptr ? BFI->getEntryFreq() : 2); 128 (BFI != nullptr ? BFI->getBlockFreq(&BB).getFrequency() : 2); 279 BlockFrequencyInfo *BFI; 288 : F(Func), BPI(BPI_), BFI(BFI_),
|
| PGOMemOPSizeOpt.cpp | 223 MemOPSizeOpt(Function &Func, BlockFrequencyInfo &BFI, 226 : Func(Func), BFI(BFI), ORE(ORE), DT(DT), TLI(TLI), Changed(false) { 265 BlockFrequencyInfo &BFI; 310 auto BBEdgeCount = BFI.getBlockProfileCount(MO.I->getParent()); 422 auto OrigBBFreq = BFI.getBlockFreq(BB); 430 BFI.setBlockFreq(MergeBB, OrigBBFreq.getFrequency()); 507 static bool PGOMemOPSizeOptImpl(Function &F, BlockFrequencyInfo &BFI, 515 MemOPSizeOpt MemOPSizeOpt(F, BFI, ORE, DT, TLI); 521 BlockFrequencyInfo &BFI [all...] |
| CGProfile.cpp | 65 // Avoid extra cost of running passes for BFI when the function doesn't have 71 auto &BFI = GetBFI(F); 72 if (BFI.getEntryFreq() == 0) 76 Optional<uint64_t> BBCount = BFI.getBlockProfileCount(&BB);
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Scalar/ |
| JumpThreading.h | 84 std::unique_ptr<BlockFrequencyInfo> BFI; 104 std::unique_ptr<BlockFrequencyInfo> BFI, 110 BFI.reset();
|