| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | SlotIndexes.h | 82 class SlotIndex { 196 static bool isSameInstr(SlotIndex A, SlotIndex B) { 202 static bool isEarlierInstr(SlotIndex A, SlotIndex B) { 208 static bool isEarlierEqualInstr(SlotIndex A, SlotIndex B) { 327 SmallVector<std::pair<SlotIndex, SlotIndex>, 8> MBBRanges; 408 SlotIndex getNextNonNullIndex(SlotIndex Index) { 453 const std::pair<SlotIndex, SlotIndex> & 459 const std::pair<SlotIndex, SlotIndex> & 569 SlotIndex newIndex(&*newItr, SlotIndex::Slot_Block); 624 SlotIndex startIdx(startEntry, SlotIndex::Slot_Block); [all …]
|
| H A D | LiveInterval.h | 61 SlotIndex def; 170 Segment(SlotIndex S, SlotIndex E, VNInfo *V) in Segment() 181 bool containsInterval(SlotIndex S, SlotIndex E) const { in containsInterval() 464 bool overlaps(SlotIndex Start, SlotIndex End) const; 497 SlotIndex StartIdx, SlotIndex Kill); 504 VNInfo *extendInBlock(SlotIndex StartIdx, SlotIndex Kill); 518 bool isLocal(SlotIndex Start, SlotIndex End) const { in isLocal() 525 void removeSegment(SlotIndex Start, SlotIndex End, 607 bool isUndefIn(ArrayRef<SlotIndex> Undefs, SlotIndex Begin, in isUndefIn() 936 SlotIndex LastStart; [all …]
|
| H A D | LiveIntervals.h | 70 SmallVector<SlotIndex, 8> RegMaskSlots; 183 ArrayRef<SlotIndex> Undefs); 196 void pruneValue(LiveRange &LR, SlotIndex Kill, 197 SmallVectorImpl<SlotIndex> *EndPoints); 225 MachineInstr* getInstructionFromIndex(SlotIndex index) const { in getInstructionFromIndex() 230 SlotIndex getMBBStartIdx(const MachineBasicBlock *mbb) const { in getMBBStartIdx() 235 SlotIndex getMBBEndIdx(const MachineBasicBlock *mbb) const { in getMBBEndIdx() 249 MachineBasicBlock* getMBBFromIndex(SlotIndex index) const { in getMBBFromIndex() 260 SlotIndex InsertMachineInstrInMaps(MachineInstr &MI) { in InsertMachineInstrInMaps() 427 void removePhysRegDefAt(MCRegister Reg, SlotIndex Pos); [all …]
|
| H A D | LiveRangeCalc.h | 112 SlotIndex Kill; 117 LiveInBlock(LiveRange &LR, MachineDomTreeNode *node, SlotIndex kill) in LiveInBlock() 129 bool isDefOnEntry(LiveRange &LR, ArrayRef<SlotIndex> Undefs, 149 bool findReachingDefs(LiveRange &LR, MachineBasicBlock &UseMBB, SlotIndex Use, 150 unsigned PhysReg, ArrayRef<SlotIndex> Undefs); 207 void extend(LiveRange &LR, SlotIndex Use, unsigned PhysReg, 208 ArrayRef<SlotIndex> Undefs); 244 SlotIndex Kill = SlotIndex()) { 263 ArrayRef<SlotIndex> Defs,
|
| H A D | LiveIntervalUnion.h | 46 using LiveSegments = IntervalMap<SlotIndex, const LiveInterval *>; 71 SegmentIter find(SlotIndex x) { return Segments.find(x); } in find() 74 ConstSegmentIter find(SlotIndex x) const { return Segments.find(x); } in find() 77 SlotIndex startIndex() const { return Segments.start(); } in startIndex() 78 SlotIndex endIndex() const { return Segments.stop(); } in endIndex()
|
| H A D | RegisterPressure.h | 69 SlotIndex TopIdx; 70 SlotIndex BottomIdx; 74 void openTop(SlotIndex NextTop); 76 void openBottom(SlotIndex PrevBottom); 192 const MachineRegisterInfo &MRI, SlotIndex Pos, 548 SlotIndex getCurrSlot() const; 563 LaneBitmask getLastUsedLanes(Register RegUnit, SlotIndex Pos) const; 564 LaneBitmask getLiveLanesAt(Register RegUnit, SlotIndex Pos) const; 565 LaneBitmask getLiveThroughAt(Register RegUnit, SlotIndex Pos) const;
|
| H A D | CalcSpillWeights.h | 40 return UseDefFreq / (Size + 25*SlotIndex::InstrDist); in normalizeSpillWeight() 96 float weightCalcHelper(LiveInterval &LI, SlotIndex *Start = nullptr, 97 SlotIndex *End = nullptr);
|
| H A D | LiveRangeEdit.h | 202 bool allUsesAvailableAt(const MachineInstr *OrigMI, SlotIndex OrigIdx, 203 SlotIndex UseIdx) const; 208 bool canRematerializeAt(Remat &RM, VNInfo *OrigVNI, SlotIndex UseIdx, 215 SlotIndex rematerializeAt(MachineBasicBlock &MBB,
|
| H A D | LiveRegMatrix.h | 115 bool checkInterference(SlotIndex Start, SlotIndex End, MCRegister PhysReg);
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | SplitKit.h | 59 SmallVector<std::pair<SlotIndex, SlotIndex>, 8> LastInsertPoint; 84 SlotIndex Res = LIS.getMBBStartIdx(&MBB); in getFirstInsertPoint() 148 SmallVector<SlotIndex, 8> UseSlots; 230 SlotIndex getLastSplitPoint(unsigned Num) { in getLastSplitPoint() 242 SlotIndex getFirstSplitPoint(unsigned Num) { in getFirstSplitPoint() 459 SlotIndex enterIntvBefore(SlotIndex Idx); 463 SlotIndex enterIntvAfter(SlotIndex Idx); 474 void useIntv(SlotIndex Start, SlotIndex End); 478 SlotIndex leaveIntvAfter(SlotIndex Idx); 482 SlotIndex leaveIntvBefore(SlotIndex Idx); [all …]
|
| H A D | LiveIntervals.cpp | 363 SlotIndex Def = VNI->def; in createSegmentsForValues() 516 SlotIndex Def = VNI->def; in computeDeadValues() 564 SlotIndex LastIdx; in shrinkToUses() 631 for (SlotIndex Idx : Indices) in extendToIndices() 916 ArrayRef<SlotIndex> Slots; in checkRegMaskInterference() 984 SlotIndex OldIdx; 985 SlotIndex NewIdx; 992 SlotIndex OldIdx, SlotIndex NewIdx, bool UpdateFlags) in HMEditor() 1456 SlotIndex findLastUseBefore(SlotIndex Before, Register Reg, in findLastUseBefore() 1573 SlotIndex lastUseIdx; in repairOldRegInRange() [all …]
|
| H A D | SlotIndexes.cpp | 83 SlotIndex blockStartIndex(&indexList.back(), SlotIndex::Slot_Block); in runOnMachineFunction() 94 &MI, SlotIndex(&indexList.back(), SlotIndex::Slot_Block))); in runOnMachineFunction() 101 MBBRanges[MBB.getNumber()].second = SlotIndex(&indexList.back(), in runOnMachineFunction() 102 SlotIndex::Slot_Block); in runOnMachineFunction() 123 SlotIndex MIIndex = mi2iItr->second; in removeMachineInstrFromMaps() 136 SlotIndex MIIndex = mi2iItr->second; in removeSingleMachineInstrFromMaps() 162 const unsigned Space = SlotIndex::InstrDist/2; in renumberIndexes() 183 SlotIndex startIdx; in repairIndexesInRange() 189 SlotIndex endIdx; in repairIndexesInRange() 259 void SlotIndex::print(raw_ostream &os) const { in print() [all …]
|
| H A D | SplitKit.cpp | 62 SlotIndex 66 std::pair<SlotIndex, SlotIndex> &LIP = LastInsertPoint[Num]; in computeLastInsertPoint() 565 SlotIndex Def; in buildCopy() 585 SlotIndex Def; in defFromParent() 654 SlotIndex SplitEditor::enterIntvBefore(SlotIndex Idx) { in enterIntvBefore() 671 SlotIndex SplitEditor::enterIntvAfter(SlotIndex Idx) { in enterIntvAfter() 730 void SplitEditor::useIntv(SlotIndex Start, SlotIndex End) { in useIntv() 737 SlotIndex SplitEditor::leaveIntvAfter(SlotIndex Idx) { in leaveIntvAfter() 768 SlotIndex SplitEditor::leaveIntvBefore(SlotIndex Idx) { in leaveIntvBefore() 812 void SplitEditor::overlapIntv(SlotIndex Start, SlotIndex End) { in overlapIntv() [all …]
|
| H A D | LiveDebugVariables.cpp | 303 SmallSet<SlotIndex, 2> trimmedDefs; 461 SlotIndex KilledAt, 927 SlotIndex Idx = in collectDebugValues() 960 SlotIndex Start = Idx; in extendDef() 1011 SlotIndex KilledAt, in addDefsFromCopies() 1110 SlotIndex Idx = Defs[i].first; in computeIntervals() 1184 SlotIndex PrevEnd; in computeIntervals() 1203 SlotIndex IStop = I.stop(); in computeIntervals() 1747 SlotIndex Start = I.start(); in emitDebugValues() 1748 SlotIndex Stop = I.stop(); in emitDebugValues() [all …]
|
| H A D | LiveRangeCalc.cpp | 39 static VNInfo UndefVNI(0xbad, SlotIndex()); 69 SlotIndex Start, End; in updateFromLiveIns() 88 ArrayRef<SlotIndex> Undefs) { in extend() 153 SlotIndex Begin, End; in isDefOnEntry() 193 ArrayRef<SlotIndex> Undefs) { in findReachingDefs() 242 SlotIndex Start, End; in findReachingDefs() 264 Use = SlotIndex(); in findReachingDefs() 283 SlotIndex Start, End; in findReachingDefs() 396 SlotIndex Start, End; in updateSSA() 433 ArrayRef<SlotIndex> Defs, in isJointlyDominated() [all …]
|
| H A D | InterferenceCache.cpp | 94 PrevPos = SlotIndex(); in revalidate() 111 PrevPos = SlotIndex(); in reset() 132 SlotIndex Start, Stop; in update() 157 ArrayRef<SlotIndex> RegMaskSlots; in update() 161 BI->First = BI->Last = SlotIndex(); in update() 168 SlotIndex StartI = I.start(); in update() 181 SlotIndex StartI = I->start; in update() 191 SlotIndex Limit = BI->First.isValid() ? BI->First : Stop; in update() 223 SlotIndex StopI = I.stop(); in update() 240 SlotIndex StopI = I->end; in update() [all …]
|
| H A D | LiveInterval.cpp | 120 VNInfo *extendInBlock(SlotIndex StartIdx, SlotIndex Use) { in extendInBlock() 136 SlotIndex StartIdx, SlotIndex Use) { in extendInBlock() 139 SlotIndex BeforeUse = Use.getPrevSlot(); in extendInBlock() 220 SlotIndex Start = S.start, End = S.end; in addSegment() 325 iterator find(SlotIndex Pos) { in find() 473 bool LiveRange::overlaps(SlotIndex Start, SlotIndex End) const { in overlaps() 550 SlotIndex StartIdx, SlotIndex Kill) { in extendInBlock() 558 VNInfo *LiveRange::extendInBlock(SlotIndex StartIdx, SlotIndex Kill) { in extendInBlock() 568 void LiveRange::removeSegment(SlotIndex Start, SlotIndex End, in removeSegment() 597 SlotIndex OldEnd = I->end; in removeSegment() [all …]
|
| H A D | InterferenceCache.h | 37 SlotIndex First; 38 SlotIndex Last; 66 SlotIndex PrevPos; 228 SlotIndex first() { in first() 234 SlotIndex last() { in last()
|
| H A D | RegisterPressure.cpp | 178 TopIdx = BottomIdx = SlotIndex(); in reset() 197 TopIdx = SlotIndex(); in openTop() 213 BottomIdx = SlotIndex(); in openBottom() 799 SlotIndex SlotIdx; in recede() 865 SlotIndex SlotIdx; in recedeSkipDebugValues() 903 SlotIndex SlotIdx; in advance() 953 SlotIndex SlotIdx = getCurrSlot(); in advance() 1046 SlotIndex SlotIdx; in bumpUpwardPressure() 1225 SlotIndex PriorUseIdx, SlotIndex NextUseIdx, in findUseBetween() 1287 SlotIndex SlotIdx; in bumpDownwardPressure() [all …]
|
| H A D | RegisterCoalescer.cpp | 721 SlotIndex BBStart = in adjustCopiesBackFrom() 1201 SlotIndex NewCopyIdx = in removePartialRedundancy() 1466 SlotIndex DefIndex = in reMaterializeTrivialDef() 1494 SlotIndex DefIndex = in reMaterializeTrivialDef() 2582 SlotIndex Def = VNI->def; in followCopyChain() 2993 SlotIndex End = OtherI->end; in taintExtent() 3238 SlotIndex OtherDef; in pruneSubRegValues() 3336 SlotIndex Def = VNI->def; in eraseInstrs() 3353 SlotIndex NewEnd; in eraseInstrs() 3373 SlotIndex ED, LE; in eraseInstrs() [all …]
|
| H A D | RenameIndependentSubregs.cpp | 189 SlotIndex Pos = LIS->getInstructionIndex(*MO.getParent()); in findComponents() 223 SlotIndex Pos = LIS->getInstructionIndex(*MI); in rewriteOperands() 291 static bool subRangeLiveAt(const LiveInterval &LI, SlotIndex Pos) { in subRangeLiveAt() 323 SlotIndex Def = VNI.def; in computeMainRangesFixFlags() 326 SlotIndex PredEnd = Indexes.getMBBEndIdx(PredMBB); in computeMainRangesFixFlags() 335 SlotIndex DefIdx = LIS->InsertMachineInstrInMaps(*ImpDef); in computeMainRangesFixFlags() 336 SlotIndex RegDefIdx = DefIdx.getRegSlot(); in computeMainRangesFixFlags() 355 SlotIndex Pos = LIS->getInstructionIndex(*MO.getParent()); in computeMainRangesFixFlags() 360 SlotIndex Pos = LIS->getInstructionIndex(*MO.getParent()).getDeadSlot(); in computeMainRangesFixFlags()
|
| H A D | LiveRangeEdit.cpp | 106 SlotIndex OrigIdx, in allUsesAvailableAt() 107 SlotIndex UseIdx) const { in allUsesAvailableAt() 130 if (SlotIndex::isSameInstr(OrigIdx, UseIdx)) in allUsesAvailableAt() 156 SlotIndex UseIdx, bool cheapAsAMove) { in canRematerializeAt() 164 SlotIndex DefIdx; in canRematerializeAt() 179 SlotIndex LiveRangeEdit::rematerializeAt(MachineBasicBlock &MBB, in rematerializeAt() 262 SlotIndex Idx = LIS.getInstructionIndex(MI).getRegSlot(); in useIsKill() 278 SlotIndex Idx = LIS.getInstructionIndex(*MI).getRegSlot(); in eliminateDeadDef() 320 isOrigDef = SlotIndex::isSameInstr(OrigVNI->def, Idx); in eliminateDeadDef()
|
| H A D | LiveIntervalCalc.cpp | 31 static VNInfo UndefVNI(0xbad, SlotIndex()); 36 SlotIndex DefIdx = in createDeadDef() 140 SmallVector<SlotIndex, 4> Undefs; in extendToUses() 172 SlotIndex UseIdx; in extendToUses()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIOptimizeExecMaskingPreRA.cpp | 83 static bool isDefBetween(const LiveRange &LR, SlotIndex AndIdx, in isDefBetween() 84 SlotIndex SelIdx) { in isDefBetween() 93 SlotIndex AndIdx = LIS->getInstructionIndex(And).getRegSlot(); in isDefBetween() 94 SlotIndex SelIdx = LIS->getInstructionIndex(Sel).getRegSlot(); in isDefBetween() 189 SlotIndex SelIdx = LIS->getInstructionIndex(*Sel); in optimizeVcndVcmpPair() 212 SlotIndex AndIdx = LIS->ReplaceMachineInstrInMaps(*And, *Andn2); in optimizeVcndVcmpPair() 219 SlotIndex CmpIdx = LIS->getInstructionIndex(*Cmp); in optimizeVcndVcmpPair() 230 SlotIndex Start = I->start < SelIdx.getRegSlot() ? in optimizeVcndVcmpPair() 232 SlotIndex End = I->end < AndIdx.getRegSlot() || I->end.isBlock() ? in optimizeVcndVcmpPair() 350 SlotIndex StartIdx = LIS->getInstructionIndex(SaveExecMI); in optimizeElseBranch() [all …]
|
| H A D | GCNRegPressure.h | 28 class SlotIndex; variable 197 SlotIndex SI, 201 GCNRPTracker::LiveRegSet getLiveRegs(SlotIndex SI, 213 std::vector<SlotIndex> Indexes; in getLiveRegMap() 224 SmallVector<SlotIndex, 32> LiveIdxs, SRLiveIdxs; in getLiveRegMap() 273 void printLivesAt(SlotIndex SI,
|