LLVM 20.0.0git
|
VNInfo - Value Number Information. More...
#include "llvm/CodeGen/LiveInterval.h"
Public Types | |
using | Allocator = BumpPtrAllocator |
Public Member Functions | |
VNInfo (unsigned i, SlotIndex d) | |
VNInfo constructor. | |
VNInfo (unsigned i, const VNInfo &orig) | |
VNInfo constructor, copies values from orig, except for the value number. | |
void | copyFrom (VNInfo &src) |
Copy from the parameter into this VNInfo. | |
bool | isPHIDef () const |
Returns true if this value is defined by a PHI instruction (or was, PHI instructions may have been eliminated). | |
bool | isUnused () const |
Returns true if this value is unused. | |
void | markUnused () |
Mark this value as unused. | |
Public Attributes | |
unsigned | id |
The ID number of this value. | |
SlotIndex | def |
The index of the defining instruction. | |
VNInfo - Value Number Information.
This class holds information about a machine level values, including definition and use points.
Definition at line 53 of file LiveInterval.h.
Definition at line 55 of file LiveInterval.h.
VNInfo constructor.
Definition at line 64 of file LiveInterval.h.
VNInfo constructor, copies values from orig, except for the value number.
Definition at line 67 of file LiveInterval.h.
|
inline |
Copy from the parameter into this VNInfo.
Definition at line 70 of file LiveInterval.h.
References def.
Referenced by llvm::LiveRange::MergeValueNumberInto().
|
inline |
Returns true if this value is defined by a PHI instruction (or was, PHI instructions may have been eliminated).
PHI-defs begin at a block boundary, all other defs begin at register or EC slots.
Definition at line 78 of file LiveInterval.h.
References def, and llvm::SlotIndex::isBlock().
Referenced by llvm::ConnectedVNInfoEqClasses::Classify(), llvm::ScheduleDAGMILive::computeCyclicCriticalPath(), llvm::LiveIntervalCalc::constructMainRangeFromSubranges(), isLiveThrough(), llvm::VirtRegAuxInfo::isRematerializable(), llvm::LiveRange::print(), llvm::LiveIntervals::shrinkToUses(), and stripValuesNotDefiningMask().
|
inline |
Returns true if this value is unused.
Definition at line 81 of file LiveInterval.h.
References def, and llvm::SlotIndex::isValid().
Referenced by llvm::ConnectedVNInfoEqClasses::Classify(), llvm::LiveIntervalCalc::constructMainRangeFromSubranges(), createSegmentsForValues(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::SplitEditor::finish(), llvm::VirtRegAuxInfo::isRematerializable(), llvm::LiveRange::print(), llvm::LiveRange::RenumberValues(), llvm::LiveIntervals::shrinkToUses(), and stripValuesNotDefiningMask().
|
inline |
Mark this value as unused.
Definition at line 84 of file LiveInterval.h.
References def.
Referenced by llvm::LiveIntervals::shrinkToUses().
SlotIndex llvm::VNInfo::def |
The index of the defining instruction.
Definition at line 61 of file LiveInterval.h.
Referenced by llvm::ConnectedVNInfoEqClasses::Classify(), llvm::ScheduleDAGMILive::computeCyclicCriticalPath(), llvm::LiveIntervalCalc::constructMainRangeFromSubranges(), copyFrom(), llvm::LiveRange::createDeadDef(), createSegmentsForValues(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::SplitEditor::enterIntvAfter(), llvm::SplitEditor::enterIntvAtEnd(), llvm::SplitEditor::enterIntvBefore(), llvm::SplitEditor::finish(), isDefInSubRange(), isPHIDef(), llvm::VirtRegAuxInfo::isRematerializable(), isUnused(), llvm::SplitEditor::leaveIntvAfter(), llvm::SplitEditor::leaveIntvAtTop(), llvm::SplitEditor::leaveIntvBefore(), markUnused(), moveAndTeeForMultiUse(), llvm::LiveRange::print(), llvm::LiveRange::Query(), llvm::LiveIntervals::removeVRegDefAt(), llvm::LiveIntervals::shrinkToUses(), and stripValuesNotDefiningMask().
unsigned llvm::VNInfo::id |
The ID number of this value.
Definition at line 58 of file LiveInterval.h.
Referenced by llvm::LiveRange::assign(), llvm::ConnectedVNInfoEqClasses::Classify(), llvm::LiveRange::containsValue(), llvm::DistributeRange(), llvm::SplitEditor::enterIntvAfter(), llvm::SplitEditor::enterIntvAtEnd(), llvm::SplitEditor::enterIntvBefore(), llvm::ConnectedVNInfoEqClasses::getEqClass(), llvm::LiveRange::join(), llvm::SplitEditor::leaveIntvAfter(), llvm::SplitEditor::leaveIntvBefore(), llvm::LiveRange::MergeValueNumberInto(), llvm::operator<<(), and llvm::LiveRange::RenumberValues().