class LiveQueryResult
Declaration
class LiveQueryResult { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:89
Method Overview
- public LiveQueryResult(llvm::VNInfo * EarlyVal, llvm::VNInfo * LateVal, llvm::SlotIndex EndPoint, bool Kill)
- public llvm::SlotIndex endPoint() const
- public bool isDeadDef() const
- public bool isKill() const
- public llvm::VNInfo * valueDefined() const
- public llvm::VNInfo * valueIn() const
- public llvm::VNInfo * valueOut() const
- public llvm::VNInfo * valueOutOrDead() const
Methods
¶LiveQueryResult(llvm::VNInfo* EarlyVal,
llvm::VNInfo* LateVal,
llvm::SlotIndex EndPoint,
bool Kill)
LiveQueryResult(llvm::VNInfo* EarlyVal,
llvm::VNInfo* LateVal,
llvm::SlotIndex EndPoint,
bool Kill)
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:96
Parameters
- llvm::VNInfo* EarlyVal
- llvm::VNInfo* LateVal
- llvm::SlotIndex EndPoint
- bool Kill
¶llvm::SlotIndex endPoint() const
llvm::SlotIndex endPoint() const
Description
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.
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:146
¶bool isDeadDef() const
bool isDeadDef() const
Description
Return true if this instruction has a dead def.
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:116
¶bool isKill() const
bool isKill() const
Description
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.
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:111
¶llvm::VNInfo* valueDefined() const
llvm::VNInfo* valueDefined() const
Description
Return the value defined by this instruction, if any. This includes dead defs, it is the value created by the instruction's def operands.
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:134
¶llvm::VNInfo* valueIn() const
llvm::VNInfo* valueIn() const
Description
Return the value that is live-in to the instruction. This is the value that will be read by the instruction's use operands. Return NULL if no value is live-in.
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:104
¶llvm::VNInfo* valueOut() const
llvm::VNInfo* valueOut() const
Description
Return the value leaving the instruction, if any. This can be a live-through value, or a live def. A dead def returns NULL.
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:122
¶llvm::VNInfo* valueOutOrDead() const
llvm::VNInfo* valueOutOrDead() const
Description
Returns the value alive at the end of the instruction, if any. This can be a live-through value, a live def or a dead def.
Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:128