LLVM 20.0.0git
|
This represents a simple continuous liveness interval for a value. More...
#include "llvm/CodeGen/LiveInterval.h"
Public Member Functions | |
Segment ()=default | |
Segment (SlotIndex S, SlotIndex E, VNInfo *V) | |
bool | contains (SlotIndex I) const |
Return true if the index is covered by this segment. | |
bool | containsInterval (SlotIndex S, SlotIndex E) const |
Return true if the given interval, [S, E), is covered by this segment. | |
bool | operator< (const Segment &Other) const |
bool | operator== (const Segment &Other) const |
bool | operator!= (const Segment &Other) const |
void | dump () const |
Public Attributes | |
SlotIndex | start |
SlotIndex | end |
VNInfo * | valno = nullptr |
This represents a simple continuous liveness interval for a value.
The start point is inclusive, the end point exclusive. These intervals are rendered as [start,end).
Definition at line 162 of file LiveInterval.h.
|
default |
Definition at line 170 of file LiveInterval.h.
Return true if the index is covered by this segment.
Definition at line 176 of file LiveInterval.h.
LLVM_DUMP_METHOD void LiveRange::Segment::dump | ( | ) | const |
Definition at line 994 of file LiveInterval.cpp.
References llvm::dbgs().
Definition at line 193 of file LiveInterval.h.
References llvm::Other.
Definition at line 186 of file LiveInterval.h.
References end, llvm::Other, and start.
Definition at line 189 of file LiveInterval.h.
References end, llvm::Other, and start.
SlotIndex llvm::LiveRange::Segment::end |
Definition at line 164 of file LiveInterval.h.
Referenced by llvm::LiveRangeUpdater::add(), llvm::LiveIntervals::addKillFlags(), addSegmentsWithValNo(), llvm::LiveRange::assign(), llvm::X86InstrInfo::classifyLEAReg(), contains(), containsInterval(), llvm::RISCVInstrInfo::convertToThreeAddress(), llvm::RegPressureTracker::getLiveThroughAt(), llvm::LiveRange::MergeSegmentsInAsValue(), llvm::LiveRange::MergeValueInAsValue(), operator<(), llvm::operator<<(), operator==(), removeDeadSegment(), llvm::LiveRange::removeSegment(), and llvm::LiveIntervals::shrinkToUses().
SlotIndex llvm::LiveRange::Segment::start |
Definition at line 163 of file LiveInterval.h.
Referenced by llvm::LiveRangeUpdater::add(), llvm::LiveIntervals::addKillFlags(), addSegmentsWithValNo(), llvm::LiveRange::append(), llvm::LiveRange::assign(), contains(), containsInterval(), llvm::RegPressureTracker::getLiveThroughAt(), llvm::LiveRange::MergeSegmentsInAsValue(), llvm::LiveRange::MergeValueInAsValue(), operator<(), llvm::operator<(), llvm::operator<<(), operator==(), and llvm::LiveRange::removeSegment().
VNInfo* llvm::LiveRange::Segment::valno = nullptr |
Definition at line 165 of file LiveInterval.h.
Referenced by llvm::LiveRangeUpdater::add(), addSegmentsWithValNo(), llvm::LiveRange::assign(), llvm::LiveRange::join(), llvm::LiveRange::MergeValueInAsValue(), llvm::operator<<(), llvm::LiveRange::removeValNo(), and llvm::LiveRange::removeValNoIfDead().