/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LiveIntervalCalc.cpp | 32 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, 36 Indexes.getInstructionIndex(MI).getRegSlot(MO.isEarlyClobber()); in createDeadDef() 44 SlotIndexes *Indexes = getIndexes(); in calculate() 47 assert(MRI && Indexes && "call reset() first"); in calculate() 71 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { in calculate() 73 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate() 75 *Indexes, TRI); in calculate() 81 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate() 95 SubLIC.reset(MF, Indexes, DomTree, Alloc); in calculate() 125 SlotIndexes *Indexes in createDeadDefs() 33 createDeadDef(SlotIndexes & Indexes,VNInfo::Allocator & Alloc,LiveRange & LR,const MachineOperand & MO) createDeadDef() argument 45 SlotIndexes *Indexes = getIndexes(); calculate() local 126 SlotIndexes *Indexes = getIndexes(); createDeadDefs() local 139 SlotIndexes *Indexes = getIndexes(); extendToUses() local [all...] |
H A D | LiveRangeCalc.cpp | 55 Indexes = SI; in reset() 70 std::tie(Start, End) = Indexes->getMBBRange(MBB); in updateFromLiveIns() 90 assert(Indexes && "Missing SlotIndexes"); in extend() 93 MachineBasicBlock *UseMBB = Indexes->getMBBFromIndex(Use.getPrevSlot()); in extend() 97 auto EP = LR.extendInBlock(Undefs, Indexes->getMBBStartIdx(UseMBB), Use); in extend() 116 assert(Indexes && "Missing SlotIndexes"); in calculateValues() 154 std::tie(Begin, End) = Indexes->getMBBRange(&B); in isDefOnEntry() 214 const MachineInstr *MI = Indexes->getInstructionFromIndex(Use); in findReachingDefs() 248 std::tie(Start, End) = Indexes->getMBBRange(Pred); in findReachingDefs() 289 std::tie(Start, End) = Indexes in findReachingDefs() 434 isJointlyDominated(const MachineBasicBlock * MBB,ArrayRef<SlotIndex> Defs,const SlotIndexes & Indexes) isJointlyDominated() argument [all...] |
H A D | RegAllocPriorityAdvisor.h | 35 SlotIndexes *const Indexes); 44 SlotIndexes *const Indexes; variable 52 SlotIndexes *const Indexes) in DefaultPriorityAdvisor() argument 53 : RegAllocPriorityAdvisor(MF, RA, Indexes) {} in DefaultPriorityAdvisor()
|
H A D | LiveIntervals.cpp | 87 LIS.Indexes = &getAnalysis<SlotIndexesWrapperPass>().getSI(); in INITIALIZE_PASS_DEPENDENCY() 194 MF->print(OS, Indexes); in printInstrs() 245 RegMaskSlots.push_back(Indexes->getMBBStartIdx(&MBB)); in computeRegMasks() 254 RegMaskSlots.push_back(Indexes->getMBBStartIdx(&MBB)); in computeRegMasks() 262 RegMaskSlots.push_back(Indexes->getInstructionIndex(MI).getRegSlot()); in computeRegMasks() 273 Indexes->getInstructionIndex(MBB.back()).getRegSlot()); in computeRegMasks() 354 SlotIndex Begin = Indexes->getMBBStartIdx(&MBB); in computeLiveInRegUnits() 417 const MachineBasicBlock *MBB = Indexes->getMBBFromIndex(Idx.getPrevSlot()); in extendSegmentsToUses() 418 SlotIndex BlockStart = Indexes->getMBBStartIdx(MBB); in extendSegmentsToUses() 432 SlotIndex Stop = Indexes->getMBBEndIdx(Pred); in extendSegmentsToUses() [all …]
|
H A D | VirtRegMap.cpp | 188 SlotIndexes *Indexes = nullptr; member in __anonbe45f4950111::VirtRegRewriter 261 Indexes = &getAnalysis<SlotIndexesWrapperPass>().getSI(); in runOnMachineFunction() 315 for (SlotIndexes::MBBIndexIterator MBBI = Indexes->getMBBLowerBound(First); in addLiveInsForSubRanges() 316 MBBI != Indexes->MBBIndexEnd() && MBBI->first <= Last; ++MBBI) { in addLiveInsForSubRanges() 364 SlotIndexes::MBBIndexIterator I = Indexes->MBBIndexBegin(); in addMBBLiveIns() 366 I = Indexes->getMBBLowerBound(I, Seg.start); in addMBBLiveIns() 367 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in addMBBLiveIns() 434 if (Indexes) in handleIdentityCopy() 435 Indexes->removeSingleMachineInstrFromMaps(MI); in handleIdentityCopy() 503 if (Indexes && BundledMI != FirstMI) in expandCopyBundle() [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 | MLRegallocPriorityAdvisor.cpp |
|
H A D | MLRegAllocPriorityAdvisor.cpp | 95 SlotIndexes *const Indexes, MLModelRunner *Runner); 180 SlotIndexes *const Indexes, in DevelopmentModePriorityAdvisor() argument 182 : MLPriorityAdvisor(MF, RA, Indexes, Runner), Log(Log) {} in DevelopmentModePriorityAdvisor() 289 SlotIndexes *const Indexes, in MLPriorityAdvisor() argument 291 : RegAllocPriorityAdvisor(MF, RA, Indexes), DefaultAdvisor(MF, RA, Indexes), in MLPriorityAdvisor()
|
H A D | RegAllocPriorityAdvisor.cpp | 106 SlotIndexes *const Indexes) in RegAllocPriorityAdvisor() argument 109 RegClassInfo(RA.getRegClassInfo()), Indexes(Indexes), in RegAllocPriorityAdvisor()
|
H A D | StackColoring.cpp | 421 SlotIndexes *Indexes = nullptr; member in __anon570007070111::StackColoring 751 LLVM_DEBUG(Indexes->getInstructionIndex(MI).print(dbgs())); in collectMarkers() 845 Starts[pos] = Indexes->getMBBStartIdx(&MBB); in calculateLiveIntervals() 854 SlotIndex ThisIndex = Indexes->getInstructionIndex(MI); in calculateLiveIntervals() 883 SlotIndex EndIdx = Indexes->getMBBEndIdx(&MBB); in calculateLiveIntervals() 1034 SlotIndex Index = Indexes->getInstructionIndex(I); in remapInstructions() 1155 SlotIndex Index = Indexes->getInstructionIndex(I); in removeInvalidSlotRanges() 1186 Indexes = &getAnalysis<SlotIndexesWrapperPass>().getSI(); in runOnMachineFunction() 1231 LI->getNextValue(Indexes->getZeroIndex(), VNInfoAllocator); in runOnMachineFunction()
|
H A D | MachineVerifier.cpp | 104 SlotIndexes *Indexes) in MachineVerifier() 106 Indexes(Indexes) {} in MachineVerifier() 229 SlotIndexes *Indexes = nullptr; member 391 bool MachineFunction::verify(LiveIntervals *LiveInts, SlotIndexes *Indexes, in verify() argument 395 MachineVerifier(Banner, nullptr, LiveInts, nullptr, Indexes).verify(MF); in verify() 402 if (Indexes == nullptr) in verifySlotIndexes() 407 for (SlotIndexes::MBBIndexIterator I = Indexes->MBBIndexBegin(), in verifySlotIndexes() 408 E = Indexes->MBBIndexEnd(); I != E; ++I) { in verifySlotIndexes() 459 Indexes = SIWrapper ? &SIWrapper->getSI() : nullptr; in verify() 467 Indexes = MFAM->getCachedResult<SlotIndexesAnalysis>(Func); in verify() [all …]
|
H A D | InterferenceCache.h | 60 SlotIndexes *Indexes = nullptr; variable 107 Indexes = indexes; in clear()
|
H A D | StackSlotColoring.cpp | 68 SlotIndexes *Indexes = nullptr; member in __anonb7b65c290111::StackSlotColoring 507 if (Indexes) in RemoveDeadStores() 508 Indexes->removeMachineInstrFromMaps(*MI); in RemoveDeadStores() 528 Indexes = &getAnalysis<SlotIndexesWrapperPass>().getSI(); in runOnMachineFunction()
|
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() 890 const MachineInstr *MI = Indexes.getInstructionFromIndex(VNI->def); in stripValuesNotDefiningMask() 922 const SlotIndexes &Indexes, const TargetRegisterInfo &TRI, in refineSubRanges() 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() 871 stripValuesNotDefiningMask(unsigned Reg,LiveInterval::SubRange & SR,LaneBitmask LaneMask,const SlotIndexes & Indexes,const TargetRegisterInfo & TRI,unsigned ComposeSubRegIdx) stripValuesNotDefiningMask() argument 919 refineSubRanges(BumpPtrAllocator & Allocator,LaneBitmask LaneMask,std::function<void (LiveInterval::SubRange &)> Apply,const SlotIndexes & Indexes,const TargetRegisterInfo & TRI,unsigned ComposeSubRegIdx) refineSubRanges() argument
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/ |
H A D | LVSupport.cpp | 75 LexicalIndexes Indexes; in getAllLexicalIndexes() local 79 LexicalEntry Entry = Indexes.back(); in getAllLexicalIndexes() 105 Indexes.push_back(LexicalEntry(Current, Index - 2)); in getAllLexicalIndexes() 115 Indexes.push_back(LexicalEntry(Current, Length - 1)); in getAllLexicalIndexes() 117 return Indexes; in getAllLexicalIndexes() 124 LexicalIndexes Indexes = getAllLexicalIndexes(Name); in getInnerComponent() local 125 if (Indexes.size() == 1) in getInnerComponent() 128 LexicalEntry BeginEntry = Indexes.front(); in getInnerComponent() 129 LexicalEntry EndEntry = Indexes[Indexes.size() - 2]; in getInnerComponent() 133 LexicalEntry LastEntry = Indexes.back(); in getInnerComponent() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | LiveIntervals.h | 62 SlotIndexes *Indexes = nullptr; variable 103 : Indexes(&SI), DomTree(&DT) { in LiveIntervals() 228 SlotIndexes *getSlotIndexes() const { return Indexes; } in getSlotIndexes() 233 return !Indexes->hasIndex(Instr); in isNotInMIMap() 238 return Indexes->getInstructionIndex(Instr); in getInstructionIndex() 243 return Indexes->getInstructionFromIndex(index); in getInstructionFromIndex() 248 return Indexes->getMBBStartIdx(mbb); in getMBBStartIdx() 253 return Indexes->getMBBEndIdx(mbb); in getMBBEndIdx() 265 return Indexes->getMBBFromIndex(index); in getMBBFromIndex() 269 Indexes->insertMBBInMaps(MBB); in insertMBBInMaps() [all …]
|
H A D | LiveRangeCalc.h | 48 SlotIndexes *Indexes = nullptr; variable 168 SlotIndexes *getIndexes() { return Indexes; } in getIndexes() 264 const SlotIndexes &Indexes);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTfrCleanup.cpp | 76 bool rewriteIfImm(MachineInstr *MI, ImmediateMap &IMap, SlotIndexes *Indexes); 77 bool eraseIfRedundant(MachineInstr *MI, SlotIndexes *Indexes); 191 SlotIndexes *Indexes) { in rewriteIfImm() argument 234 if (Indexes) in rewriteIfImm() 235 Indexes->replaceMachineInstrInMaps(*MI, *NewMI); in rewriteIfImm() 242 SlotIndexes *Indexes) { in eraseIfRedundant() argument 274 if (Indexes) in eraseIfRedundant() 275 Indexes->removeMachineInstrFromMaps(*MI); in eraseIfRedundant() 286 SlotIndexes *Indexes = SIWrapper ? &SIWrapper->getSI() : nullptr; in runOnMachineFunction() local 299 bool E = eraseIfRedundant(MI, Indexes); in runOnMachineFunction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SILowerSGPRSpills.cpp | 40 SlotIndexes *Indexes = nullptr; member in __anoneec5f4eb0111::SILowerSGPRSpills 87 ArrayRef<CalleeSavedInfo> CSI, SlotIndexes *Indexes, in insertCSRSaves() argument 116 if (Indexes) { in insertCSRSaves() 119 Indexes->insertMachineInstrInMaps(Inst); in insertCSRSaves() 131 SlotIndexes *Indexes, LiveIntervals *LIS) { in insertCSRRestores() argument 156 if (Indexes) { in insertCSRRestores() 158 Indexes->insertMachineInstrInMaps(Inst); in insertCSRRestores() 247 insertCSRSaves(*SaveBlock, CSI, Indexes, LIS); in spillCalleeSavedRegs() 254 insertCSRRestores(*RestoreBlock, CSI, Indexes, LIS); in spillCalleeSavedRegs() 317 Indexes = SIWrapper ? &SIWrapper->getSI() : nullptr; in runOnMachineFunction() [all …]
|
H A D | SILowerWWMCopies.cpp | 55 SlotIndexes *Indexes; member in __anon72eb24b60111::SILowerWWMCopies 108 Indexes = SIWrapper ? &SIWrapper->getSI() : nullptr; in runOnMachineFunction() 131 isSCCLiveAtMI(MI), Indexes); in runOnMachineFunction() 132 TII->restoreExec(MF, MBB, ++InsertPt, DL, RegForExecCopy, Indexes); in runOnMachineFunction()
|
H A D | GCNRegPressure.h | 281 std::vector<SlotIndex> Indexes; in getLiveRegMap() local 282 Indexes.reserve(std::distance(R.begin(), R.end())); in getLiveRegMap() 286 Indexes.push_back(After ? SI.getDeadSlot() : SI.getBaseIndex()); in getLiveRegMap() 288 llvm::sort(Indexes); in getLiveRegMap() 299 if (!LI.findIndexesLiveAt(Indexes, std::back_inserter(LiveIdxs))) in getLiveRegMap()
|
H A D | SIRegisterInfo.h | 155 SlotIndexes *Indexes = nullptr, LiveIntervals *LIS = nullptr, 160 SlotIndexes *Indexes = nullptr, LiveIntervals *LIS = nullptr, in supportsBackwardScavenger() 174 SlotIndexes *Indexes = nullptr, LiveIntervals *LIS = nullptr, in getHWRegIndex()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CloneDetection.cpp | 482 std::vector<char> Indexes; in splitCloneGroups() local 483 Indexes.resize(HashGroup.size()); in splitCloneGroups() 487 if (Indexes[i]) in splitCloneGroups() 496 ++Indexes[i]; in splitCloneGroups() 501 if (Indexes[j]) in splitCloneGroups() 512 ++Indexes[j]; in splitCloneGroups() 520 assert(llvm::all_of(Indexes, [](char c) { return c == 1; })); in splitCloneGroups()
|
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | MemProf.cpp | 456 assert(CommonLen <= Indexes.size()); in encodeCallStack() 457 Indexes.resize(CommonLen); in encodeCallStack() 462 uint32_t ParentIndex = Indexes.back(); in encodeCallStack() 473 Indexes.push_back(RadixArray.size()); in encodeCallStack() 476 assert(CallStack->size() == Indexes.size()); in encodeCallStack() 559 Indexes.clear(); in build() 560 Indexes.reserve(512); in build()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | SampleProfileProbe.cpp | 271 std::vector<uint8_t> Indexes; in computeCFGHash() local 285 Indexes.push_back((uint8_t)(Index >> (J * 8))); in computeCFGHash() 289 JC.update(Indexes); in computeCFGHash() 292 (uint64_t)Indexes.size() << 32 | JC.getCRC(); in computeCFGHash() 299 << Indexes.size() << ", ICSites = " << CallProbeIds.size() in computeCFGHash()
|