llvm::LiveRegUnit

Live physical register unit with its defining or reading operand.

Synopsis

Declared in <llvm/CodeGen/MachineTraceMetrics.h>

struct LiveRegUnit;

Description

Keep track of physreg data dependencies by recording each live register unit. Associate each regunit with an instruction operand. Depending on the direction instructions are scanned, it could be the operand that defined the regunit, or the highest operand to read the regunit.

Member Functions

NameDescription
LiveRegUnit [constructor]Construct a live regunit entry for RU.
getSparseSetIndex Return the sparse-set index for this regunit.

Data Members

NameDescription
Cycle Cycle at which RegUnit is defined or last read.
MI Instruction associated with Op.
Op Operand index of MI that defines or reads RegUnit.
RegUnit Physical register unit being tracked.