Home
last modified time | relevance | path

Searched refs:LiveRange (Results 1 – 25 of 41) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveInterval.cpp67 LiveRange *LR;
350 LiveRange::iterator LiveRange::find(SlotIndex Pos) { in find()
389 bool LiveRange::overlapsFrom(const LiveRange& other, in overlapsFrom()
430 bool LiveRange::overlaps(const LiveRange &Other, const CoalescerPair &CP, in overlaps()
479 bool LiveRange::covers(const LiveRange &Other) const { in covers()
533 LiveRange::iterator LiveRange::addSegment(Segment S) { in addSegment()
606 LiveRange::iterator LiveRange::removeSegment(iterator I, bool RemoveDeadValNo) { in removeSegment()
629 void LiveRange::join(LiveRange &Other, in join()
713 void LiveRange::MergeSegmentsInAsValue(const LiveRange &RHS, in MergeSegmentsInAsValue()
725 void LiveRange::MergeValueInAsValue(const LiveRange &RHS, in MergeValueInAsValue()
[all …]
H A DLiveIntervals.cpp112 for (LiveRange *LR : RegUnitRanges) in releaseMemory()
372 -> const LiveRange& { in extendSegmentsToUses()
489 LiveRange NewLR; in shrinkToUses()
588 LiveRange NewLR; in shrinkToUses()
688 SmallVector<std::pair<const LiveRange*, LiveRange::const_iterator>, 8> RU; in addKillFlags()
863 LiveRange::Segment
974 SmallPtrSet<LiveRange*, 8> Updated;
1089 LiveRange::iterator E = LR.end(); in handleMoveDown()
1097 LiveRange::iterator OldIdxOut; in handleMoveDown()
1166 LiveRange::iterator AfterNewIdx in handleMoveDown()
[all …]
H A DLiveIntervalUnion.cpp29 const LiveRange &Range) { in unify()
35 LiveRange::const_iterator RegPos = Range.begin(); in unify()
36 LiveRange::const_iterator RegEnd = Range.end(); in unify()
57 const LiveRange &Range) { in extract()
63 LiveRange::const_iterator RegPos = Range.begin(); in extract()
64 LiveRange::const_iterator RegEnd = Range.end(); in extract()
151 LiveRange::const_iterator LREnd = LR->end(); in collectInterferingVRegs()
H A DLiveRegMatrix.cpp111 TRI, VirtReg, PhysReg, [&](unsigned Unit, const LiveRange &Range) { in assign()
128 [&](unsigned Unit, const LiveRange &Range) { in unassign()
171 const LiveRange &Range) { in checkRegUnitInterference()
172 const LiveRange &UnitRange = LIS->getRegUnit(Unit); in checkRegUnitInterference()
178 LiveIntervalUnion::Query &LiveRegMatrix::query(const LiveRange &LR, in query()
201 [&](MCRegister Unit, const LiveRange &LR) { in checkInterference()
214 LiveRange::Segment Seg(Start, End, &valno); in checkInterference()
215 LiveRange LR; in checkInterference()
H A DSafeStackLayout.h30 StackLifetime::LiveRange Range;
33 const StackLifetime::LiveRange &Range) in StackRegion()
44 StackLifetime::LiveRange Range;
60 const StackLifetime::LiveRange &Range);
H A DLiveIntervalCalc.cpp33 LiveRange &LR, const MachineOperand &MO) { in createDeadDef()
108 LiveRange &MainRange = LI; in constructMainRangeFromSubranges()
123 void LiveIntervalCalc::createDeadDefs(LiveRange &LR, Register Reg) { in createDeadDefs()
135 void LiveIntervalCalc::extendToUses(LiveRange &LR, Register Reg, in extendToUses()
H A DLiveRangeCalc.cpp87 void LiveRangeCalc::extend(LiveRange &LR, SlotIndex Use, unsigned PhysReg, in extend()
122 bool LiveRangeCalc::isDefOnEntry(LiveRange &LR, ArrayRef<SlotIndex> Undefs, in isDefOnEntry()
159 LiveRange::iterator UB = upper_bound(LR, End.getPrevSlot()); in isDefOnEntry()
161 LiveRange::Segment &Seg = *std::prev(UB); in isDefOnEntry()
191 bool LiveRangeCalc::findReachingDefs(LiveRange &LR, MachineBasicBlock &UseMBB, in findReachingDefs()
403 LiveRange &LR = I.LR; in updateSSA()
H A DRegisterCoalescer.cpp225 bool copyValueUndefInPredecessors(LiveRange &S,
269 void joinSubRegRanges(LiveRange &LRange, LiveRange &RRange,
761 for (LiveRange::Segment &ASeg : IntA.segments) { in hasOtherReachingDefs()
781 addSegmentsWithValNo(LiveRange &Dst, VNInfo *DstValNo, const LiveRange &Src, in addSegmentsWithValNo()
794 LiveRange::Segment Added = LiveRange::Segment(S.start, S.end, DstValNo); in addSegmentsWithValNo()
2324 LiveRange &LR = LIS->getRegUnit(Unit); in joinReservedPhysReg()
2407 LiveRange &LR;
3395 assert(&static_cast<LiveRange&>(LI) == &LR); in pruneMainSegments()
3465 LiveRange::iterator I = SR.find(Def); in eraseInstrs()
3481 LiveRange::iterator S = LR.find(Def); in eraseInstrs()
[all …]
H A DSafeStackLayout.cpp40 const StackLifetime::LiveRange &Range) { in addObject()
98 Regions.emplace_back(LastRegionEnd, Start, StackLifetime::LiveRange(0)); in layoutObject()
H A DRegisterPressure.cpp237 static const LiveRange *getLiveRange(const LiveIntervals &LIS, unsigned Reg) { in getLiveRange()
424 bool (*Property)(const LiveRange &LR, SlotIndex Pos)) { in getLanesWithProperty()
440 const LiveRange *LR = LIS.getCachedRegUnit(RegUnit); in getLanesWithProperty()
455 [](const LiveRange &LR, SlotIndex Pos) { in getLiveLanesAt()
583 const LiveRange *LR = getLiveRange(LIS, Reg); in detectDeadDefs()
1247 [](const LiveRange &LR, SlotIndex Pos) { in getLiveLanesAt()
1257 [](const LiveRange &LR, SlotIndex Pos) { in getLastUsedLanes()
1258 const LiveRange::Segment *S = LR.getSegmentContaining(Pos); in getLastUsedLanes()
1268 [](const LiveRange &LR, SlotIndex Pos) { in getLiveThroughAt()
1269 const LiveRange::Segment *S = LR.getSegmentContaining(Pos); in getLiveThroughAt()
H A DMachineVerifier.cpp252 void report_context(const LiveRange &LR, Register VRegUnit,
254 void report_context(const LiveRange::Segment &S) const;
258 void report_context_liverange(const LiveRange &LR) const;
267 SlotIndex UseIdx, const LiveRange &LR,
271 SlotIndex DefIdx, const LiveRange &LR,
285 void verifyLiveRangeSegment(const LiveRange &,
288 void verifyLiveRange(const LiveRange &, Register,
2428 const LiveRange &LR, in checkLivenessAtUse()
2454 const LiveRange &LR, in checkLivenessAtDef()
3087 if (const LiveRange *LR = LiveInts->getCachedRegUnit(i)) in verifyLiveIntervals()
[all …]
H A DTwoAddressInstructionPass.cpp128 bool isPlainlyKilled(const MachineInstr *MI, LiveRange &LR) const;
310 LiveRange &LR) const { in isPlainlyKilled()
1558 LI.addSegment(LiveRange::Segment(LastCopyIdx, endIdx, VNI)); in processTiedPairs()
1561 S.addSegment(LiveRange::Segment(LastCopyIdx, endIdx, VNI)); in processTiedPairs()
1565 if (LiveRange *LR = LIS->getCachedRegUnit(Unit)) { in processTiedPairs()
1568 LR->addSegment(LiveRange::Segment(LastCopyIdx, endIdx, VNI)); in processTiedPairs()
1626 auto Shrink = [=](LiveRange &LR, LaneBitmask LaneMask) { in processTiedPairs()
1627 LiveRange::Segment *S = LR.getSegmentContaining(LastCopyIdx); in processTiedPairs()
1732 LiveRange::Segment NewSeg(S.start, S.end, VNI); in processStatepoint()
1884 LiveRange::iterator DefSeg = S.FindSegmentContaining(Idx); in runOnMachineFunction()
[all …]
H A DSplitKit.h36 class LiveRange; variable
416 LiveRange &LR, LaneBitmask LM,
H A DInterferenceCache.h80 LiveRange *Fixed = nullptr;
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DLiveInterval.h157 class LiveRange {
239 LiveRange(bool UseSegmentSet = false)
245 LiveRange(const LiveRange &Other, BumpPtrAllocator &Allocator) { in LiveRange() function
509 void join(LiveRange &Other,
689 using super = LiveRange;
694 class SubRange : public LiveRange {
936 LiveRange *LR;
938 LiveRange::iterator WriteI;
939 LiveRange::iterator ReadI;
953 void add(LiveRange::Segment);
[all …]
H A DLiveIntervals.h94 SmallVector<LiveRange*, 0> RegUnitRanges;
189 void extendToIndices(LiveRange &LR, ArrayRef<SlotIndex> Indices,
203 void pruneValue(LiveRange &LR, SlotIndex Kill,
246 bool isLiveInToMBB(const LiveRange &LR, in isLiveInToMBB()
251 bool isLiveOutOfMBB(const LiveRange &LR, in isLiveOutOfMBB()
394 LiveRange &getRegUnit(unsigned Unit) { in getRegUnit()
395 LiveRange *LR = RegUnitRanges[Unit]; in getRegUnit()
407 LiveRange *getCachedRegUnit(unsigned Unit) { in getCachedRegUnit()
411 const LiveRange *getCachedRegUnit(unsigned Unit) const { in getCachedRegUnit()
472 void computeRegUnitRange(LiveRange&, unsigned Unit);
[all …]
H A DLiveRangeCalc.h76 using EntryInfoMap = DenseMap<LiveRange *, std::pair<BitVector, BitVector>>;
103 LiveRange &LR;
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,
207 void extend(LiveRange &LR, SlotIndex Use, unsigned PhysReg,
243 void addLiveInBlock(LiveRange &LR, MachineDomTreeNode *DomNode,
H A DLiveIntervalUnion.h91 void unify(const LiveInterval &VirtReg, const LiveRange &Range);
94 void extract(const LiveInterval &VirtReg, const LiveRange &Range);
114 const LiveRange *LR = nullptr;
115 LiveRange::const_iterator LRI; ///< current position in LR
132 Query(const LiveRange &LR, const LiveIntervalUnion &LIU) in Query()
137 void reset(unsigned NewUserTag, const LiveRange &NewLR, in reset()
148 void init(unsigned NewUserTag, const LiveRange &NewLR, in init()
H A DLiveIntervalCalc.h39 void extendToUses(LiveRange &LR, Register Reg, LaneBitmask LaneMask,
48 void createDeadDefs(LiveRange &LR, Register Reg);
54 void extendToUses(LiveRange &LR, MCRegister PhysReg) { in extendToUses()
H A DLiveRegMatrix.h153 LiveIntervalUnion::Query &query(const LiveRange &LR, MCRegister RegUnit);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DStackLifetime.h63 class LiveRange {
66 const StackLifetime::LiveRange &R);
69 LiveRange(unsigned Size, bool Set = false) : Bits(Size, Set) {} in Bits()
72 bool overlaps(const LiveRange &Other) const { in overlaps()
76 void join(const LiveRange &Other) { Bits |= Other.Bits; } in join()
109 SmallVector<LiveRange, 8> LiveRanges;
152 const LiveRange &getLiveRange(const AllocaInst *AI) const;
162 LiveRange getFullLiveRange() const { in getFullLiveRange()
163 return LiveRange(Instructions.size(), true); in getFullLiveRange()
179 const StackLifetime::LiveRange &R) {
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DStackLifetime.cpp34 const StackLifetime::LiveRange &
339 LiveRanges.resize(NumAllocas, LiveRange(Instructions.size())); in run()
345 LiveRanges.resize(NumAllocas, LiveRange(Instructions.size())); in run()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMarkLastScratchLoad.cpp84 for (const LiveRange::Segment &Segment : LI.segments) { in runOnMachineFunction()
H A DSILowerWWMCopies.cpp81 LiveRange &LR = in isSCCLiveAtMI()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonExpandCondsets.cpp207 void updateDeadsInRange(Register Reg, LaneBitmask LM, LiveRange &Range);
352 LiveRange::iterator F = S.find(I->end); in updateKillFlags()
370 LiveRange &Range) { in updateDeadsInRange()
1131 for (LiveRange::Segment &LR : LI) { in isIntraBlocks()
1184 for (LiveRange::Segment &I : L2) { in coalesceRegisters()
1193 L1.addSegment(LiveRange::Segment(I.start, I.end, NewVN)); in coalesceRegisters()

12