llvm::DeadLaneDetector

Detects dead and undefined subregister lanes across COPY-like instructions.

Synopsis

Declared in <llvm/CodeGen/DetectDeadLanes.h>

class DeadLaneDetector;

Types

NameDescription
VRegInfo Contains a bitmask of which lanes of a given virtual register are defined and which ones are actually used.

Member Functions

NameDescription
DeadLaneDetector [constructor]Construct a detector for the given machine register info.
computeSubRegisterLaneBitInfo Update the DefinedLanes and the UsedLanes for all virtual registers.
getVRegInfo Return the used/defined lane info for virtual register index RegIdx.
isDefinedByCopy Return true if virtual register index RegIdx is defined by a COPY-like instruction.
transferDefinedLanes Given a mask DefinedLanes of lanes defined at operand OpNum of COPY-like instruction, determine which lanes are defined at the output operand Def.
transferUsedLanes Given a mask UsedLanes used from the output of instruction MI determine which lanes are used from operand MO of this instruction.