/external/llvm/lib/CodeGen/ |
D | MachineBlockFrequencyInfo.cpp | 103 const MachineBlockFrequencyInfo *MBFI) { in getEdgeAttributes() 105 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes() 139 if (!MBFI) in runOnMachineFunction() 140 MBFI.reset(new ImplType); in runOnMachineFunction() 141 MBFI->calculate(F, MBPI, MLI); in runOnMachineFunction() 152 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); } in releaseMemory() 169 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq() 174 const Function *F = MBFI->getFunction()->getFunction(); in getBlockProfileCount() 175 return MBFI ? MBFI->getBlockProfileCount(*F, MBB) : None; in getBlockProfileCount() 179 return MBFI ? MBFI->getFunction() : nullptr; in getFunction() [all …]
|
D | MachineBlockPlacement.cpp | 251 std::unique_ptr<BranchFolder::MBFIWrapper> MBFI; member in __anona6a54cac0311::MachineBlockPlacement 621 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor() 643 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor() 750 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock() 752 MBFI->printBlockFreq(dbgs(), CandidateFreq) << " (freq)\n"); in selectBestCandidateBlock() 921 MBFI->printBlockFreq(dbgs(), Pred) << " freq\n"); in findBestLoopTop() 925 BlockFrequency PredFreq = MBFI->getBlockFreq(Pred); in findBestLoopTop() 1022 BlockFrequency ExitEdgeFreq = MBFI->getBlockFreq(MBB) * SuccProb; in findBestLoopExit() 1025 MBFI->printBlockFreq(dbgs(), ExitEdgeFreq) << ")\n"); in findBestLoopExit() 1147 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, HeaderBB); in rotateLoopWithProfile() [all …]
|
D | ShrinkWrap.cpp | 114 MachineBlockFrequencyInfo *MBFI; member in __anone4a9c7fc0111::ShrinkWrap 166 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init() 168 EntryFreq = MBFI->getEntryFreq(); in init() 488 << MBFI->getBlockFreq(Save).getFrequency() << "\nRestore: " in runOnMachineFunction() 490 << MBFI->getBlockFreq(Restore).getFrequency() << '\n'); in runOnMachineFunction() 493 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save).getFrequency()) && in runOnMachineFunction() 494 EntryFreq >= MBFI->getBlockFreq(Restore).getFrequency()) && in runOnMachineFunction()
|
D | BranchFolding.h | 33 MBFIWrapper &MBFI, 113 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} in MBFIWrapper() 122 const MachineBlockFrequencyInfo &MBFI;
|
D | SpillPlacement.cpp | 201 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction() 202 setThreshold(MBFI->getEntryFreq()); in runOnMachineFunction() 205 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction() 237 nodes[n].BiasN = (MBFI->getEntryFreq() / 16); in activate()
|
D | CalcSpillWeights.cpp | 30 const MachineBlockFrequencyInfo &MBFI, in calculateSpillWeightsAndHints() argument 36 VirtRegAuxInfo VRAI(MF, LIS, VRM, MLI, MBFI, norm); in calculateSpillWeightsAndHints() 173 weight = LiveIntervals::getSpillWeight(writes, reads, &MBFI, *mi); in calculateSpillWeightAndHint()
|
D | MachineSink.cpp | 64 const MachineBlockFrequencyInfo *MBFI; member in __anoncb6f6a1d0111::MachineSinking 271 MBFI = UseBlockFreqInfo ? &getAnalysis<MachineBlockFrequencyInfo>() : nullptr; in runOnMachineFunction() 570 uint64_t LHSFreq = MBFI ? MBFI->getBlockFreq(L).getFrequency() : 0; in GetAllSortedSuccessors() 571 uint64_t RHSFreq = MBFI ? MBFI->getBlockFreq(R).getFrequency() : 0; in GetAllSortedSuccessors()
|
D | RegAllocPBQP.cpp | 414 MachineBlockFrequencyInfo &MBFI = G.getMetadata().MBFI; in apply() local 429 const float Scale = 1.0f / MBFI.getEntryFreq(); in apply() 430 PBQP::PBQPNum CBenefit = MBFI.getBlockFreq(&MBB).getFrequency() * Scale; in apply() 743 MachineBlockFrequencyInfo &MBFI = in runOnMachineFunction() local 749 MBFI, normalizePBQPSpillWeight); in runOnMachineFunction() 793 PBQPRAGraph G(PBQPRAGraph::GraphMetadata(MF, LIS, MBFI)); in runOnMachineFunction()
|
D | InlineSpiller.cpp | 71 const MachineBlockFrequencyInfo &MBFI; member in __anon8fa8dc2d0111::HoistSpillHelper 120 MBFI(pass.getAnalysis<MachineBlockFrequencyInfo>()), in HoistSpillHelper() 142 const MachineBlockFrequencyInfo &MBFI; member in __anon8fa8dc2d0111::InlineSpiller 178 MBFI(pass.getAnalysis<MachineBlockFrequencyInfo>()), in InlineSpiller() 1045 Edit->calculateRegClassAndHint(MF, Loops, MBFI); in spill() 1268 SpillsInSubTreeMap[*RIt].second = MBFI.getBlockFreq(Block); in runHoistSpills() 1312 if (SubTreeCost > MBFI.getBlockFreq(Block) * MarginProb) { in runHoistSpills() 1337 SubTreeCost = MBFI.getBlockFreq(Block); in runHoistSpills()
|
D | StackSlotColoring.cpp | 52 const MachineBlockFrequencyInfo *MBFI; member in __anon0707f7680111::StackSlotColoring 160 li.weight += LiveIntervals::getSpillWeight(false, true, MBFI, MI); in ScanForSpillSlotRefs() 434 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
|
D | SpillPlacement.h | 49 const MachineBlockFrequencyInfo *MBFI; variable
|
D | RegAllocGreedy.cpp | 126 MachineBlockFrequencyInfo *MBFI; member in __anone3efcc7c0111::RAGreedy 1369 MBFI->printBlockFreq(dbgs(), BestCost) << '\n'); in tryRegionSplit() 1426 MBFI->printBlockFreq(dbgs(), Cost)); in calculateRegionSplitCost() 1449 dbgs() << ", total = "; MBFI->printBlockFreq(dbgs(), Cost) in calculateRegionSplitCost() 1806 (1.0f / MBFI->getEntryFreq()); in tryLocalSplit() 2298 uint64_t ActualEntry = MBFI->getEntryFreq(); in initializeCSRCost() 2333 Out.push_back(HintInfo(MBFI->getBlockFreq(Instr.getParent()), OtherReg, in collectHintInfo() 2589 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction() 2600 calculateSpillWeightsAndHints(*LIS, mf, VRM, *Loops, *MBFI); in runOnMachineFunction() 2605 SE.reset(new SplitEditor(*SA, *AA, *LIS, *VRM, *DomTree, *MBFI)); in runOnMachineFunction()
|
D | LiveRangeEdit.cpp | 437 const MachineBlockFrequencyInfo &MBFI) { in calculateRegClassAndHint() argument 438 VirtRegAuxInfo VRAI(MF, LIS, VRM, Loops, MBFI); in calculateRegClassAndHint()
|
D | SplitKit.h | 245 const MachineBlockFrequencyInfo &MBFI; variable
|
D | SplitKit.cpp | 349 MBFI(mbfi), Edit(nullptr), OpenIdx(0), SpillMode(SM_Partition), in SplitEditor() 865 Costs[ParentVNI->id] += MBFI.getBlockFreq(ValMBB); in hoistCopies() 885 MBFI.getBlockFreq(Dom.first) > Costs[ParentVNI->id]) { in hoistCopies() 1215 Edit->calculateRegClassAndHint(VRM.getMachineFunction(), SA.Loops, MBFI); in finish()
|
D | BranchFolding.cpp | 551 return MBFI.getBlockFreq(MBB); in getBlockFreq() 562 return MBFI.printBlockFreq(OS, getBlockFreq(MBB)); in printBlockFreq() 568 return MBFI.printBlockFreq(OS, Freq); in printBlockFreq()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineBlockFrequencyInfo.cpp | 33 MBFI = new BlockFrequencyImpl<MachineBasicBlock, MachineFunction, in MachineBlockFrequencyInfo() 38 delete MBFI; in ~MachineBlockFrequencyInfo() 49 MBFI->doFunction(&F, &MBPI); in runOnMachineFunction() 60 return MBFI->getBlockFreq(MBB); in getBlockFreq()
|
/external/llvm/lib/CodeGen/GlobalISel/ |
D | RegBankSelect.cpp | 49 MBFI(nullptr), MBPI(nullptr), OptMode(RunningMode) { in RegBankSelect() 64 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init() 67 MBFI = nullptr; in init() 349 assert((MBFI || !BestCost) && "Costs comparison require MBFI"); in computeMapping() 352 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping() 411 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping() 725 const MachineBlockFrequencyInfo *MBFI = in frequency() local 727 if (!MBFI) in frequency() 729 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency() 733 const MachineBlockFrequencyInfo *MBFI = in frequency() local [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | CalcSpillWeights.h | 57 const MachineBlockFrequencyInfo &MBFI; variable 66 : MF(mf), LIS(lis), VRM(vrm), Loops(loops), MBFI(mbfi), normalize(norm) {} in MF() 77 const MachineBlockFrequencyInfo &MBFI,
|
D | RegAllocPBQP.h | 148 MachineBlockFrequencyInfo &MBFI) in GraphMetadata() argument 149 : MF(MF), LIS(LIS), MBFI(MBFI) {} in GraphMetadata() 153 MachineBlockFrequencyInfo &MBFI; variable
|
D | MachineBlockFrequencyInfo.h | 32 std::unique_ptr<ImplType> MBFI; variable
|
D | LiveIntervalAnalysis.h | 106 const MachineBlockFrequencyInfo *MBFI,
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRegColoring.cpp | 64 const MachineBlockFrequencyInfo *MBFI, in computeWeight() argument 68 weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI, in computeWeight() 88 const MachineBlockFrequencyInfo *MBFI = in runOnMachineFunction() local 108 LI->weight = computeWeight(MRI, MBFI, VReg); in runOnMachineFunction()
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | MachineBlockFrequencyInfo.h | 31 BlockFrequencyImpl<MachineBasicBlock, MachineFunction, MachineBranchProbabilityInfo> *MBFI; variable
|
/external/llvm/include/llvm/CodeGen/GlobalISel/ |
D | RegBankSelect.h | 467 MachineBlockFrequencyInfo *MBFI; variable
|