LLVM: llvm::LiveQueryResult Class Reference (original) (raw)

Result of a LiveRange query. More...

#include "[llvm/CodeGen/LiveInterval.h](LiveInterval%5F8h%5Fsource.html)"

Public Member Functions
LiveQueryResult (VNInfo *EarlyVal, VNInfo *LateVal, SlotIndex EndPoint, bool Kill)
VNInfo * valueIn () const
Return the value that is live-in to the instruction.
bool isKill () const
Return true if the live-in value is killed by this instruction.
bool isDeadDef () const
Return true if this instruction has a dead def.
VNInfo * valueOut () const
Return the value leaving the instruction, if any.
VNInfo * valueOutOrDead () const
Returns the value alive at the end of the instruction, if any.
VNInfo * valueDefined () const
Return the value defined by this instruction, if any.
SlotIndex endPoint () const
Return the end point of the last live range segment to interact with the instruction, if any.

Result of a LiveRange query.

This class hides the implementation details of live ranges, and it should be used as the primary interface for examining live ranges around instructions.

Definition at line 99 of file LiveInterval.h.

endPoint()

SlotIndex llvm::LiveQueryResult::endPoint ( ) const inline

Return the end point of the last live range segment to interact with the instruction, if any.

The end point is an invalid SlotIndex only if the live range doesn't intersect the instruction at all.

The end point may be at or past the end of the instruction's basic block. That means the value was live out of the block.

Definition at line 156 of file LiveInterval.h.

Referenced by llvm::LiveIntervals::pruneValue().

isDeadDef()

bool llvm::LiveQueryResult::isDeadDef ( ) const inline

isKill()

bool llvm::LiveQueryResult::isKill ( ) const inline

Return true if the live-in value is killed by this instruction.

This means that either the live range ends at the instruction, or it changes value.

Definition at line 121 of file LiveInterval.h.

Referenced by isDefBetween().

valueDefined()

VNInfo * llvm::LiveQueryResult::valueDefined ( ) const inline

valueIn()

VNInfo * llvm::LiveQueryResult::valueIn ( ) const inline

valueOut()

VNInfo * llvm::LiveQueryResult::valueOut ( ) const inline

valueOutOrDead()

VNInfo * llvm::LiveQueryResult::valueOutOrDead ( ) const inline

The documentation for this class was generated from the following file: