Home
last modified time | relevance | path

Searched refs:LiveInterval (Results 1 – 25 of 76) sorted by relevance

1234

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DRegAllocGreedy.h88 LiveRangeStage getStage(const LiveInterval &VirtReg) const { in getStage()
97 void setStage(const LiveInterval &VirtReg, LiveRangeStage Stage) { in setStage()
161 using SmallLISet = SmallSetVector<const LiveInterval *, 4>;
166 SmallVector<std::pair<const LiveInterval *, MCRegister>, 8>;
273 SmallSetVector<const LiveInterval *, 8> SetOfBrokenHints;
295 void enqueueImpl(const LiveInterval *LI) override;
296 const LiveInterval *dequeue() override;
297 MCRegister selectOrSplit(const LiveInterval &,
299 void aboutToRemoveInterval(const LiveInterval &) override;
317 MCRegister selectOrSplitImpl(const LiveInterval &,
[all …]
H A DRenameIndependentSubregs.cpp69 LiveInterval::SubRange *SR;
72 SubRangeInfo(LiveIntervals &LIS, LiveInterval::SubRange &SR, in SubRangeInfo()
78 bool renameComponents(LiveInterval &LI) const;
85 LiveInterval &LI) const;
91 const SmallVectorImpl<LiveInterval*> &Intervals) const;
96 const SmallVectorImpl<LiveInterval*> &Intervals) const;
101 const SmallVectorImpl<LiveInterval*> &Intervals) const;
122 bool RenameIndependentSubregs::renameComponents(LiveInterval &LI) const { in INITIALIZE_PASS_DEPENDENCY()
135 SmallVector<LiveInterval*, 4> Intervals; in INITIALIZE_PASS_DEPENDENCY()
143 LiveInterval &NewLI = LIS->createEmptyInterval(NewVReg); in INITIALIZE_PASS_DEPENDENCY()
[all …]
H A DRegAllocBasic.cpp45 bool operator()(const LiveInterval *A, const LiveInterval *B) const { in operator ()()
65 std::priority_queue<const LiveInterval *, std::vector<const LiveInterval *>,
89 void enqueueImpl(const LiveInterval *LI) override { Queue.push(LI); } in enqueueImpl()
91 const LiveInterval *dequeue() override { in dequeue()
94 const LiveInterval *LI = Queue.top(); in dequeue()
99 MCRegister selectOrSplit(const LiveInterval &VirtReg,
118 bool spillInterferences(const LiveInterval &VirtReg, MCRegister PhysReg,
147 LiveInterval &LI = LIS->getInterval(VirtReg); in INITIALIZE_PASS_DEPENDENCY()
166 LiveInterval &LI = LIS->getInterval(VirtReg); in LRE_WillShrinkVirtReg()
208 bool RABasic::spillInterferences(const LiveInterval &VirtReg, in spillInterferences()
[all …]
H A DRegAllocEvictionAdvisor.h22 class LiveInterval; variable
108 const LiveInterval &VirtReg, const AllocationOrder &Order,
114 canEvictHintInterference(const LiveInterval &VirtReg, MCRegister PhysReg,
124 Register canReassign(const LiveInterval &VirtReg, Register PrevReg) const;
128 std::optional<unsigned> getOrderLimit(const LiveInterval &VirtReg,
210 MCRegister tryFindEvictionCandidate(const LiveInterval &,
213 bool canEvictHintInterference(const LiveInterval &, MCRegister,
215 bool canEvictInterferenceBasedOnCost(const LiveInterval &, MCRegister, bool,
218 bool shouldEvict(const LiveInterval &A, bool, const LiveInterval &B,
H A DRegAllocBase.h45 class LiveInterval; variable
99 virtual void enqueueImpl(const LiveInterval *LI) = 0;
102 void enqueue(const LiveInterval *LI);
105 virtual const LiveInterval *dequeue() = 0;
111 virtual MCRegister selectOrSplit(const LiveInterval &VirtReg,
119 virtual void aboutToRemoveInterval(const LiveInterval &LI) {} in aboutToRemoveInterval()
H A DLiveRangeEdit.cpp34 LiveInterval &LiveRangeEdit::createEmptyIntervalFrom(Register OldReg, in createEmptyIntervalFrom()
40 LiveInterval &LI = LIS.createEmptyInterval(VReg); in createEmptyIntervalFrom()
47 LiveInterval &OldLI = LIS.getInterval(OldReg); in createEmptyIntervalFrom()
49 for (LiveInterval::SubRange &S : OldLI.subranges()) in createEmptyIntervalFrom()
86 LiveInterval &OrigLI = LIS.getInterval(Original); in scanRemattable()
123 LiveInterval &li = LIS.getInterval(MO.getReg()); in allUsesAvailableAt()
143 for (LiveInterval::SubRange &SR : li.subranges()) { in allUsesAvailableAt()
209 bool LiveRangeEdit::foldAsLoad(LiveInterval *LI, in foldAsLoad()
268 bool LiveRangeEdit::useIsKill(const LiveInterval &LI, in useIsKill()
277 for (const LiveInterval::SubRange &S : LI.subranges()) { in useIsKill()
[all …]
H A DStackSlotColoring.cpp67 std::vector<LiveInterval*> SSIntervals;
94 SmallVector<SmallVector<LiveInterval*,4>, 16> Assignments;
119 bool OverlapWithAssignments(LiveInterval *li, int Color) const;
120 int ColorSlot(LiveInterval *li);
146 bool operator()(LiveInterval* LHS, LiveInterval* RHS) const { in operator ()()
169 LiveInterval &li = LS->getInterval(FI); in ScanForSpillSlotRefs()
218 LiveInterval &li = I->second; in InitializeSlots()
253 StackSlotColoring::OverlapWithAssignments(LiveInterval *li, int Color) const { in OverlapWithAssignments()
254 const SmallVectorImpl<LiveInterval *> &OtherLIs = Assignments[Color]; in OverlapWithAssignments()
256 LiveInterval *OtherLI = OtherLIs[i]; in OverlapWithAssignments()
[all …]
H A DSplitKit.h35 class LiveInterval; variable
60 SlotIndex computeLastInsertPoint(const LiveInterval &CurLI,
67 SlotIndex getLastInsertPoint(const LiveInterval &CurLI, in getLastInsertPoint()
78 MachineBasicBlock::iterator getLastInsertPointIter(const LiveInterval &CurLI,
141 const LiveInterval *CurLI = nullptr;
174 void analyze(const LiveInterval *li);
181 const LiveInterval &getParent() const { return *CurLI; } in getParent()
215 unsigned countLiveBlocks(const LiveInterval *li) const;
353 void addDeadDef(LiveInterval &LI, VNInfo *VNI, bool Original);
432 unsigned SubIdx, LiveInterval &DestLI, bool Late, SlotIndex Def);
H A DSplitKit.cpp62 InsertPointAnalysis::computeLastInsertPoint(const LiveInterval &CurLI, in computeLastInsertPoint()
139 InsertPointAnalysis::getLastInsertPointIter(const LiveInterval &CurLI, in getLastInsertPointIter()
203 LiveInterval::const_iterator LVI = CurLI->begin(); in calcLiveBlockInfo()
204 LiveInterval::const_iterator LVE = CurLI->end(); in calcLiveBlockInfo()
300 unsigned SplitAnalysis::countLiveBlocks(const LiveInterval *cli) const { in countLiveBlocks()
303 LiveInterval *li = const_cast<LiveInterval*>(cli); in countLiveBlocks()
304 LiveInterval::iterator LVI = li->begin(); in countLiveBlocks()
305 LiveInterval::iterator LVE = li->end(); in countLiveBlocks()
326 const LiveInterval &Orig = LIS.getInterval(OrigReg); in isOriginalEndpoint()
328 LiveInterval::const_iterator I = Orig.find(Idx); in isOriginalEndpoint()
[all …]
H A DLiveRegMatrix.cpp81 const LiveInterval &VRegInterval, MCRegister PhysReg, in foreachUnit()
87 for (const LiveInterval::SubRange &S : VRegInterval.subranges()) { in foreachUnit()
104 void LiveRegMatrix::assign(const LiveInterval &VirtReg, MCRegister PhysReg) { in assign()
121 void LiveRegMatrix::unassign(const LiveInterval &VirtReg) { in unassign()
146 bool LiveRegMatrix::checkRegMaskInterference(const LiveInterval &VirtReg, in checkRegMaskInterference()
164 bool LiveRegMatrix::checkRegUnitInterference(const LiveInterval &VirtReg, in checkRegUnitInterference()
186 LiveRegMatrix::checkInterference(const LiveInterval &VirtReg, in checkInterference()
241 const LiveInterval *VRegInterval = nullptr; in getOneVReg()
H A DRegisterCoalescer.cpp237 void setUndefOnPrunedSubRegUses(LiveInterval &LI, Register Reg,
258 bool isHighCostLiveInterval(LiveInterval &LI);
268 void mergeSubRangeInto(LiveInterval &LI, const LiveRange &ToMerge,
285 bool hasOtherReachingDefs(LiveInterval &IntA, LiveInterval &IntB,
323 void addUndefFlag(const LiveInterval &Int, SlotIndex UseIdx,
349 void shrinkToUses(LiveInterval *LI, in shrinkToUses()
355 SmallVector<LiveInterval*, 8> SplitLIs; in shrinkToUses()
620 LiveInterval &IntA = in adjustCopiesBackFrom()
622 LiveInterval &IntB = in adjustCopiesBackFrom()
642 LiveInterval::iterator BS = IntB.FindSegmentContaining(CopyIdx); in adjustCopiesBackFrom()
[all …]
H A DLiveIntervalUnion.cpp29 void LiveIntervalUnion::unify(const LiveInterval &VirtReg, in unify()
57 void LiveIntervalUnion::extract(const LiveInterval &VirtReg, in extract()
104 const LiveInterval *LiveIntervalUnion::getOneVReg() const { in getOneVReg()
117 const LiveInterval *VirtReg) const { in isSeenInterference()
153 const LiveInterval *RecentReg = nullptr; in collectInterferingVRegs()
160 const LiveInterval *VReg = LiveUnionI.value(); in collectInterferingVRegs()
H A DInlineSpiller.cpp102 DenseMap<int, std::unique_ptr<LiveInterval>> StackSlotToOrigLI;
116 bool isSpillCandBB(LiveInterval &OrigLI, VNInfo &OrigVNI,
131 void runHoistSpills(LiveInterval &OrigLI, VNInfo &OrigVNI,
169 LiveInterval *StackInt;
210 bool isSnippet(const LiveInterval &SnipLI);
216 bool hoistSpillInsideBB(LiveInterval &SpillLI, MachineInstr &CopyMI);
217 void eliminateRedundantSpills(LiveInterval &LI, VNInfo *VNI);
219 void markValueUsed(LiveInterval*, VNInfo*);
221 bool reMaterializeFor(LiveInterval &, MachineInstr &MI);
279 bool InlineSpiller::isSnippet(const LiveInterval &SnipLI) { in isSnippet()
[all …]
H A DLiveIntervalCalc.cpp43 void LiveIntervalCalc::calculate(LiveInterval &LI, bool TrackSubRegs) { in calculate()
72 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { in calculate()
94 for (LiveInterval::SubRange &S : LI.subranges()) { in calculate()
107 void LiveIntervalCalc::constructMainRangeFromSubranges(LiveInterval &LI) { in constructMainRangeFromSubranges()
114 for (const LiveInterval::SubRange &SR : LI.subranges()) { in constructMainRangeFromSubranges()
137 LaneBitmask Mask, LiveInterval *LI) { in extendToUses()
H A DRegAllocGreedy.cpp232 LiveInterval &LI = LIS->getInterval(VirtReg); in LRE_CanEraseVirtReg()
251 LiveInterval &LI = LIS->getInterval(VirtReg); in LRE_WillShrinkVirtReg()
279 void RAGreedy::enqueueImpl(const LiveInterval *LI) { enqueue(Queue, LI); } in enqueueImpl()
281 void RAGreedy::enqueue(PQueue &CurQueue, const LiveInterval *LI) { in enqueue()
300 unsigned DefaultPriorityAdvisor::getPriority(const LiveInterval &LI) const { in getPriority()
379 const LiveInterval *RAGreedy::dequeue() { return dequeue(Queue); } in dequeue()
381 const LiveInterval *RAGreedy::dequeue(PQueue &CurQueue) { in dequeue()
384 LiveInterval *LI = &LIS->getInterval(~CurQueue.top().second); in dequeue()
394 MCRegister RAGreedy::tryAssign(const LiveInterval &VirtReg, in tryAssign()
447 Register RegAllocEvictionAdvisor::canReassign(const LiveInterval &VirtReg, in canReassign()
[all …]
H A DLiveIntervals.cpp182 LiveInterval *LiveIntervals::createInterval(Register reg) { in createInterval()
184 return new LiveInterval(reg, Weight); in createInterval()
188 bool LiveIntervals::computeVirtRegInterval(LiveInterval &LI) { in computeVirtRegInterval()
201 LiveInterval &LI = createEmptyInterval(Reg); in computeVirtRegs()
204 SmallVector<LiveInterval*, 8> SplitLIs; in computeVirtRegs()
359 iterator_range<LiveInterval::vni_iterator> VNIs) { in createSegmentsForValues()
376 auto getSubRange = [](const LiveInterval &I, LaneBitmask M) in extendSegmentsToUses()
380 for (const LiveInterval::SubRange &SR : I.subranges()) { in extendSegmentsToUses()
389 const LiveInterval &LI = getInterval(Reg); in extendSegmentsToUses()
449 bool LiveIntervals::shrinkToUses(LiveInterval *li, in shrinkToUses()
[all …]
H A DRegAllocEvictionAdvisor.cpp148 bool DefaultEvictionAdvisor::shouldEvict(const LiveInterval &A, bool IsHint, in shouldEvict()
149 const LiveInterval &B, in shouldEvict()
168 const LiveInterval &VirtReg, MCRegister PhysReg, in canEvictHintInterference()
186 const LiveInterval &VirtReg, MCRegister PhysReg, bool IsHint, in canEvictInterferenceBasedOnCost()
212 for (const LiveInterval *Intf : reverse(Interferences)) { in canEvictInterferenceBasedOnCost()
276 const LiveInterval &VirtReg, const AllocationOrder &Order, in tryFindEvictionCandidate()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DLiveIntervals.h66 IndexedMap<LiveInterval*, VirtReg2IndexFunctor> VirtRegIntervals;
112 LiveInterval &getInterval(Register Reg) { in getInterval()
119 const LiveInterval &getInterval(Register Reg) const { in getInterval()
129 LiveInterval &createEmptyInterval(Register Reg) { in createEmptyInterval()
136 LiveInterval &createAndComputeVirtRegInterval(Register Reg) { in createAndComputeVirtRegInterval()
137 LiveInterval &LI = createEmptyInterval(Reg); in createAndComputeVirtRegInterval()
150 LiveInterval::Segment addSegmentToEndOfBlock(Register Reg,
159 bool shrinkToUses(LiveInterval *li,
168 void shrinkToUses(LiveInterval::SubRange &SR, Register Reg);
203 LLVM_ATTRIBUTE_UNUSED void pruneValue(LiveInterval &, SlotIndex, in pruneValue() argument
[all …]
H A DLiveRangeEdit.h67 const LiveInterval *const Parent;
98 bool foldAsLoad(LiveInterval *LI, SmallVectorImpl<MachineInstr *> &Dead);
100 using ToShrinkSet = SetVector<LiveInterval *, SmallVector<LiveInterval *, 8>,
101 SmallPtrSet<LiveInterval *, 8>>;
112 bool useIsKill(const LiveInterval &LI, const MachineOperand &MO) const;
115 LiveInterval &createEmptyIntervalFrom(Register OldReg, bool createSubRanges);
129 LiveRangeEdit(const LiveInterval *parent, SmallVectorImpl<Register> &newRegs,
141 const LiveInterval &getParent() const { in getParent()
173 LiveInterval &createEmptyInterval() { in createEmptyInterval()
H A DLiveRegMatrix.h34 class LiveInterval; variable
107 InterferenceKind checkInterference(const LiveInterval &VirtReg,
120 void assign(const LiveInterval &VirtReg, MCRegister PhysReg);
125 void unassign(const LiveInterval &VirtReg);
140 bool checkRegMaskInterference(const LiveInterval &VirtReg,
146 bool checkRegUnitInterference(const LiveInterval &VirtReg,
H A DCalcSpillWeights.h16 class LiveInterval; variable
54 bool isLiveAtStatepointVarArg(LiveInterval &LI);
65 void calculateSpillWeightAndHint(LiveInterval &LI);
78 static bool isRematerializable(const LiveInterval &LI,
96 float weightCalcHelper(LiveInterval &LI, SlotIndex *Start = nullptr,
H A DLiveIntervalUnion.h46 using LiveSegments = IntervalMap<SlotIndex, const LiveInterval *>;
91 void unify(const LiveInterval &VirtReg, const LiveRange &Range);
94 void extract(const LiveInterval &VirtReg, const LiveRange &Range);
108 const LiveInterval *getOneVReg() const;
117 SmallVector<const LiveInterval *, 4> InterferingVRegs;
128 bool isSeenInterference(const LiveInterval *VirtReg) const;
162 const SmallVectorImpl<const LiveInterval *> &interferingVRegs(
H A DLiveIntervalCalc.h40 LiveInterval *LI = nullptr);
61 void calculate(LiveInterval &LI, bool TrackSubRegs);
66 void constructMainRangeFromSubranges(LiveInterval &LI);
H A DLiveStacks.h43 using SS2IntervalMap = std::unordered_map<int, LiveInterval>;
66 LiveInterval &getOrCreateInterval(int Slot, const TargetRegisterClass *RC);
68 LiveInterval &getInterval(int Slot) { in getInterval()
75 const LiveInterval &getInterval(int Slot) const { in getInterval()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegColoring.cpp96 SmallVector<LiveInterval *, 0> SortedIntervals; in runOnMachineFunction()
108 LiveInterval *LI = &Liveness->getInterval(VReg); in runOnMachineFunction()
120 llvm::sort(SortedIntervals, [MRI](LiveInterval *LHS, LiveInterval *RHS) { in runOnMachineFunction()
132 SmallVector<SmallVector<LiveInterval *, 4>, 16> Assignments( in runOnMachineFunction()
137 LiveInterval *LI = SortedIntervals[I]; in runOnMachineFunction()
147 for (LiveInterval *OtherLI : Assignments[C]) in runOnMachineFunction()

1234