llvm::LiveQueryResult

Result of querying a LiveRange around a single instruction.

Synopsis

Declared in <llvm/CodeGen/LiveInterval.h>

class LiveQueryResult;

Description

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

Member Functions

NameDescription
LiveQueryResult [constructor]Construct a query result from the live-in/out values around an instr.
endPoint Return the end point of the last live range segment to interact with the instruction, if any.
isDeadDef Return true if this instruction has a dead def.
isKill 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.
valueDefined Return the value defined by this instruction, if any. This includes dead defs, it is the value created by the instruction's def operands.
valueIn 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.
valueOut Return the value leaving the instruction, if any. This can be a live-through value, or a live def. A dead def returns NULL.
valueOutOrDead 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.