| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | LiveIntervalCalc.cpp | 31 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument 35 Indexes.getInstructionIndex(MI).getRegSlot(MO.isEarlyClobber()); in createDeadDef() 43 SlotIndexes *Indexes = getIndexes(); in calculate() local 46 assert(MRI && Indexes && "call reset() first"); in calculate() 70 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { in calculate() 72 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate() 74 *Indexes, TRI); in calculate() 80 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate() 94 SubLIC.reset(MF, Indexes, DomTree, Alloc); in calculate() 124 SlotIndexes *Indexes = getIndexes(); in createDeadDefs() local [all …]
|
| H A D | LiveRangeCalc.cpp | 54 Indexes = SI; in reset() 69 std::tie(Start, End) = Indexes->getMBBRange(MBB); in updateFromLiveIns() 89 assert(Indexes && "Missing SlotIndexes"); in extend() 92 MachineBasicBlock *UseMBB = Indexes->getMBBFromIndex(Use.getPrevSlot()); in extend() 96 auto EP = LR.extendInBlock(Undefs, Indexes->getMBBStartIdx(UseMBB), Use); in extend() 115 assert(Indexes && "Missing SlotIndexes"); in calculateValues() 153 std::tie(Begin, End) = Indexes->getMBBRange(&B); in isDefOnEntry() 213 const MachineInstr *MI = Indexes->getInstructionFromIndex(Use); in findReachingDefs() 247 std::tie(Start, End) = Indexes->getMBBRange(Pred); in findReachingDefs() 288 std::tie(Start, End) = Indexes->getMBBRange(BN); in findReachingDefs() [all …]
|
| H A D | VirtRegMap.cpp | 205 SlotIndexes *Indexes = nullptr; member in __anonbe45f4950111::VirtRegRewriter 225 VirtRegRewriter(bool ClearVirtRegs, SlotIndexes *Indexes, LiveIntervals *LIS, in VirtRegRewriter() argument 228 : Indexes(Indexes), LIS(LIS), LRM(LRM), VRM(VRM), DebugVars(DebugVars), in VirtRegRewriter() 293 SlotIndexes &Indexes = getAnalysis<SlotIndexesWrapperPass>().getSI(); in runOnMachineFunction() local 297 VirtRegRewriter R(ClearVirtRegs, &Indexes, &LIS, &LRM, &VRM, &DebugVars); in runOnMachineFunction() 309 SlotIndexes &Indexes = MFAM.getResult<SlotIndexesAnalysis>(MF); in run() local 313 VirtRegRewriter R(ClearVirtRegs, &Indexes, &LIS, &LRM, &VRM, &DebugVars); in run() 385 for (SlotIndexes::MBBIndexIterator MBBI = Indexes->getMBBLowerBound(First); in addLiveInsForSubRanges() 386 MBBI != Indexes->MBBIndexEnd() && MBBI->first <= Last; ++MBBI) { in addLiveInsForSubRanges() 434 SlotIndexes::MBBIndexIterator I = Indexes->MBBIndexBegin(); in addMBBLiveIns() [all …]
|
| H A D | LiveIntervals.cpp | 89 LIS.Indexes = &getAnalysis<SlotIndexesWrapperPass>().getSI(); in INITIALIZE_PASS_DEPENDENCY() 210 MF->print(OS, Indexes); in printInstrs() 261 RegMaskSlots.push_back(Indexes->getMBBStartIdx(&MBB)); in computeRegMasks() 270 RegMaskSlots.push_back(Indexes->getMBBStartIdx(&MBB)); in computeRegMasks() 278 RegMaskSlots.push_back(Indexes->getInstructionIndex(MI).getRegSlot()); in computeRegMasks() 289 Indexes->getInstructionIndex(MBB.back()).getRegSlot()); in computeRegMasks() 370 SlotIndex Begin = Indexes->getMBBStartIdx(&MBB); in computeLiveInRegUnits() 433 const MachineBasicBlock *MBB = Indexes->getMBBFromIndex(Idx.getPrevSlot()); in extendSegmentsToUses() 434 SlotIndex BlockStart = Indexes->getMBBStartIdx(MBB); in extendSegmentsToUses() 448 SlotIndex Stop = Indexes->getMBBEndIdx(Pred); in extendSegmentsToUses() [all …]
|
| H A D | MachineBasicBlock.cpp | 343 void MachineBasicBlock::print(raw_ostream &OS, const SlotIndexes *Indexes, in print() argument 355 print(OS, MST, Indexes, IsStandalone); in print() 359 const SlotIndexes *Indexes, in print() argument 368 if (Indexes && PrintSlotIndexes) in print() 369 OS << Indexes->getMBBStartIdx(this) << '\t'; in print() 381 if (Indexes) OS << '\t'; in print() 392 if (Indexes) OS << '\t'; in print() 423 if (Indexes) OS << '\t'; in print() 440 if (Indexes && PrintSlotIndexes) { in print() 441 if (Indexes->hasIndex(MI)) in print() [all …]
|
| H A D | StackSlotColoring.cpp | 69 SlotIndexes *Indexes = nullptr; member in __anonb7b65c290111::StackSlotColoring 145 MachineBlockFrequencyInfo *MBFI, SlotIndexes *Indexes) in StackSlotColoring() argument 147 MBFI(MBFI), Indexes(Indexes) {} in StackSlotColoring() 519 if (Indexes) in RemoveDeadStores() 520 Indexes->removeMachineInstrFromMaps(*MI); in RemoveDeadStores() 574 SlotIndexes *Indexes = &getAnalysis<SlotIndexesWrapperPass>().getSI(); in runOnMachineFunction() local 575 StackSlotColoring Impl(MF, LS, MBFI, Indexes); in runOnMachineFunction() 585 SlotIndexes *Indexes = &MFAM.getResult<SlotIndexesAnalysis>(MF); in run() local 586 StackSlotColoring Impl(MF, LS, MBFI, Indexes); in run()
|
| H A D | MLRegallocPriorityAdvisor.cpp | |
| H A D | MLRegAllocPriorityAdvisor.cpp | 95 SlotIndexes *const Indexes, MLModelRunner *Runner); 193 SlotIndexes *const Indexes, in DevelopmentModePriorityAdvisor() argument 195 : MLPriorityAdvisor(MF, RA, Indexes, Runner), Log(Log) {} in DevelopmentModePriorityAdvisor() 320 SlotIndexes *const Indexes, in MLPriorityAdvisor() argument 322 : RegAllocPriorityAdvisor(MF, RA, Indexes), DefaultAdvisor(MF, RA, Indexes), in MLPriorityAdvisor()
|
| H A D | StackColoring.cpp | 422 SlotIndexes *Indexes = nullptr; member in __anon570007070111::StackColoring 440 StackColoring(SlotIndexes *Indexes) : Indexes(Indexes) {} in StackColoring() argument 756 LLVM_DEBUG(Indexes->getInstructionIndex(MI).print(dbgs())); in collectMarkers() 850 Starts[pos] = Indexes->getMBBStartIdx(&MBB); in calculateLiveIntervals() 859 SlotIndex ThisIndex = Indexes->getInstructionIndex(MI); in calculateLiveIntervals() 888 SlotIndex EndIdx = Indexes->getMBBEndIdx(&MBB); in calculateLiveIntervals() 1041 SlotIndex Index = Indexes->getInstructionIndex(I); in remapInstructions() 1163 SlotIndex Index = Indexes->getInstructionIndex(I); in removeInvalidSlotRanges() 1256 LI->getNextValue(Indexes->getZeroIndex(), VNInfoAllocator); in run()
|
| H A D | RegAllocPriorityAdvisor.cpp | 212 SlotIndexes *const Indexes) in RegAllocPriorityAdvisor() argument 215 RegClassInfo(RA.getRegClassInfo()), Indexes(Indexes), in RegAllocPriorityAdvisor()
|
| H A D | InterferenceCache.h | 60 SlotIndexes *Indexes = nullptr; variable 107 Indexes = indexes; in clear()
|
| H A D | MachineVerifier.cpp | 115 SlotIndexes *Indexes, raw_ostream *OS, in MachineVerifier() 118 LiveInts(LiveInts), LiveStks(LiveStks), Indexes(Indexes), in MachineVerifier() 242 SlotIndexes *Indexes = nullptr; member 438 bool MachineFunction::verify(LiveIntervals *LiveInts, SlotIndexes *Indexes, in verify() argument 442 /*LiveStks=*/nullptr, Indexes, OS, AbortOnError) in verify() 447 if (Indexes == nullptr) in verifySlotIndexes() 452 for (SlotIndexes::MBBIndexIterator I = Indexes->MBBIndexBegin(), in verifySlotIndexes() 453 E = Indexes->MBBIndexEnd(); I != E; ++I) { in verifySlotIndexes() 498 Indexes = SIWrapper ? &SIWrapper->getSI() : nullptr; in verify() 506 Indexes = MFAM->getCachedResult<SlotIndexesAnalysis>(Func); in verify() [all …]
|
| H A D | RegAllocGreedy.cpp | 180 SlotIndexes *Indexes = nullptr; member 205 Indexes = Analyses.Indexes; in RAGreedy() 230 Indexes = &MFAM.getResult<SlotIndexesAnalysis>(MF); in RequiredAnalyses() 271 Indexes = &P.getAnalysis<SlotIndexesWrapperPass>().getSI(); in RequiredAnalyses() 464 Prio = LI.beginIndex().getApproxInstrDistance(Indexes->getLastIndex()); in getPriority() 469 Prio = Indexes->getZeroIndex().getApproxInstrDistance(LI.endIndex()); in getPriority() 763 if (Intf.first() <= Indexes->getMBBStartIdx(BC.Number)) { in addSplitConstraints() 839 if (Intf.first() <= Indexes->getMBBStartIdx(Number)) in addThroughConstraints() 1191 MF->verify(LIS, Indexes, "After splitting live range around region", in splitAroundRegion() 1461 MF->verify(LIS, Indexes, "After splitting live range around basic blocks", in tryBlockSplit() [all …]
|
| H A D | LiveInterval.cpp | 431 const SlotIndexes &Indexes) const { in overlaps() 455 !CP.isCoalescable(Indexes.getInstructionFromIndex(Def))) in overlaps() 874 const SlotIndexes &Indexes, in stripValuesNotDefiningMask() argument 890 const MachineInstr *MI = Indexes.getInstructionFromIndex(VNI->def); in stripValuesNotDefiningMask() 922 const SlotIndexes &Indexes, const TargetRegisterInfo &TRI, in refineSubRanges() argument 943 stripValuesNotDefiningMask(reg(), *MatchingRange, Matching, Indexes, TRI, in refineSubRanges() 945 stripValuesNotDefiningMask(reg(), SR, SR.LaneMask, Indexes, TRI, in refineSubRanges() 968 const SlotIndexes &Indexes) const { in computeSubRangeUndefs() 983 SlotIndex Pos = Indexes.getInstructionIndex(MI).getRegSlot(EarlyClobber); in computeSubRangeUndefs()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/ |
| H A D | LVSupport.cpp | 73 LexicalIndexes Indexes; in getAllLexicalIndexes() local 77 LexicalEntry Entry = Indexes.back(); in getAllLexicalIndexes() 103 Indexes.push_back(LexicalEntry(Current, Index - 2)); in getAllLexicalIndexes() 113 Indexes.push_back(LexicalEntry(Current, Length - 1)); in getAllLexicalIndexes() 115 return Indexes; in getAllLexicalIndexes() 122 LexicalIndexes Indexes = getAllLexicalIndexes(Name); in getInnerComponent() local 123 if (Indexes.size() == 1) in getInnerComponent() 126 LexicalEntry BeginEntry = Indexes.front(); in getInnerComponent() 127 LexicalEntry EndEntry = Indexes[Indexes.size() - 2]; in getInnerComponent() 131 LexicalEntry LastEntry = Indexes.back(); in getInnerComponent() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SILowerSGPRSpills.cpp | 46 SlotIndexes *Indexes = nullptr; member in __anoneec5f4eb0111::SILowerSGPRSpills 55 SILowerSGPRSpills(LiveIntervals *LIS, SlotIndexes *Indexes, in SILowerSGPRSpills() argument 57 : LIS(LIS), Indexes(Indexes), MDT(MDT) {} in SILowerSGPRSpills() 114 ArrayRef<CalleeSavedInfo> CSI, SlotIndexes *Indexes, in insertCSRSaves() argument 141 if (Indexes) { in insertCSRSaves() 144 Indexes->insertMachineInstrInMaps(Inst); in insertCSRSaves() 152 if (Indexes) in insertCSRSaves() 153 Indexes->repairIndexesInRange(&SaveBlock, SaveBlock.begin(), I); in insertCSRSaves() 164 SlotIndexes *Indexes, LiveIntervals *LIS) { in insertCSRRestores() argument 182 if (Indexes) { in insertCSRRestores() [all …]
|
| H A D | SILowerWWMCopies.cpp | 37 : LIS(LIS), Indexes(SI), VRM(VRM) {} in SILowerWWMCopies() 45 SlotIndexes *Indexes; member in __anon72eb24b60111::SILowerWWMCopies 116 auto *Indexes = SIWrapper ? &SIWrapper->getSI() : nullptr; in runOnMachineFunction() local 121 SILowerWWMCopies Impl(LIS, Indexes, VRM); in runOnMachineFunction() 129 auto *Indexes = MFAM.getCachedResult<SlotIndexesAnalysis>(MF); in run() local 132 SILowerWWMCopies Impl(LIS, Indexes, VRM); in run() 163 isSCCLiveAtMI(MI), Indexes); in run() 164 TII->restoreExec(MF, MBB, ++InsertPt, DL, RegForExecCopy, Indexes); in run()
|
| H A D | GCNRegPressure.h | 445 std::vector<SlotIndex> Indexes; in getLiveRegMap() local 446 Indexes.reserve(std::distance(R.begin(), R.end())); in getLiveRegMap() 450 Indexes.push_back(After ? SI.getDeadSlot() : SI.getBaseIndex()); in getLiveRegMap() 452 llvm::sort(Indexes); in getLiveRegMap() 463 if (!LI.findIndexesLiveAt(Indexes, std::back_inserter(LiveIdxs))) in getLiveRegMap()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTfrCleanup.cpp | 64 bool rewriteIfImm(MachineInstr *MI, ImmediateMap &IMap, SlotIndexes *Indexes); 65 bool eraseIfRedundant(MachineInstr *MI, SlotIndexes *Indexes); 172 SlotIndexes *Indexes) { in rewriteIfImm() argument 215 if (Indexes) in rewriteIfImm() 216 Indexes->replaceMachineInstrInMaps(*MI, *NewMI); in rewriteIfImm() 223 SlotIndexes *Indexes) { in eraseIfRedundant() argument 255 if (Indexes) in eraseIfRedundant() 256 Indexes->removeMachineInstrFromMaps(*MI); in eraseIfRedundant() 267 SlotIndexes *Indexes = SIWrapper ? &SIWrapper->getSI() : nullptr; in runOnMachineFunction() local 280 bool E = eraseIfRedundant(MI, Indexes); in runOnMachineFunction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | LiveIntervals.h | 63 SlotIndexes *Indexes = nullptr; variable 104 : Indexes(&SI), DomTree(&DT) { in LiveIntervals() 238 SlotIndexes *getSlotIndexes() const { return Indexes; } in getSlotIndexes() 243 return !Indexes->hasIndex(Instr); in isNotInMIMap() 248 return Indexes->getInstructionIndex(Instr); in getInstructionIndex() 253 return Indexes->getInstructionFromIndex(index); in getInstructionFromIndex() 258 return Indexes->getMBBStartIdx(mbb); in getMBBStartIdx() 263 return Indexes->getMBBEndIdx(mbb); in getMBBEndIdx() 275 return Indexes->getMBBFromIndex(index); in getMBBFromIndex() 279 Indexes->insertMBBInMaps(MBB); in insertMBBInMaps() [all …]
|
| H A D | RegAllocPriorityAdvisor.h | 37 SlotIndexes *const Indexes); 46 SlotIndexes *const Indexes; variable 54 SlotIndexes *const Indexes) in DefaultPriorityAdvisor() argument 55 : RegAllocPriorityAdvisor(MF, RA, Indexes) {} in DefaultPriorityAdvisor() 66 SlotIndexes *const Indexes) in DummyPriorityAdvisor() argument 67 : RegAllocPriorityAdvisor(MF, RA, Indexes) {} in DummyPriorityAdvisor()
|
| H A D | LiveRangeCalc.h | 49 SlotIndexes *Indexes = nullptr; variable 169 SlotIndexes *getIndexes() { return Indexes; } in getIndexes() 264 const SlotIndexes &Indexes);
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | MemProfRadixTree.cpp | 61 assert(CommonLen <= Indexes.size()); in encodeCallStack() 62 Indexes.resize(CommonLen); in encodeCallStack() 67 uint32_t ParentIndex = Indexes.back(); in encodeCallStack() 78 Indexes.push_back(RadixArray.size()); in encodeCallStack() 82 assert(CallStack->size() == Indexes.size()); in encodeCallStack() 166 Indexes.clear(); in build() 167 Indexes.reserve(512); in build()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CloneDetection.cpp | 481 std::vector<char> Indexes; in splitCloneGroups() local 482 Indexes.resize(HashGroup.size()); in splitCloneGroups() 486 if (Indexes[i]) in splitCloneGroups() 495 ++Indexes[i]; in splitCloneGroups() 500 if (Indexes[j]) in splitCloneGroups() 511 ++Indexes[j]; in splitCloneGroups() 519 assert(llvm::all_of(Indexes, [](char c) { return c == 1; })); in splitCloneGroups()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | SampleProfileProbe.cpp | 268 std::vector<uint8_t> Indexes; in computeCFGHash() local 282 Indexes.push_back((uint8_t)(Index >> (J * 8))); in computeCFGHash() 286 JC.update(Indexes); in computeCFGHash() 289 (uint64_t)Indexes.size() << 32 | JC.getCRC(); in computeCFGHash() 296 << Indexes.size() << ", ICSites = " << CallProbeIds.size() in computeCFGHash()
|