Sparse live‐variable analysis for virtual and allocatable physical registers.

Synopsis

Declared in <llvm/CodeGen/LiveVariables.h>

class LiveVariables;

Types

Name

Description

VarInfo

Live regions of a virtual register across the machine function.

Member Functions

Name

Description

LiveVariables [constructor]

Analyze live variables for machine function MF.

HandleVirtRegDef

Update live info for a virtual register defined by MI.

HandleVirtRegUse

Update live info for a virtual register used by MI in MBB.

MarkVirtRegAliveInBlock

MarkVirtRegAliveInBlock overloads

addNewBlock

addNewBlock overloads

addVirtualRegisterDead

Record that IncomingReg is dead after being defined by MI.

addVirtualRegisterKilled

Record that IncomingReg is killed by MI.

getVarInfo

Return the VarInfo structure for the specified VIRTUAL register.

isLiveIn

Return true if Reg is live into MBB.

isLiveOut

Return true if Reg is live out of MBB, ignoring PHI nodes.

print

Print live variable information to OS.

recomputeForSingleDefVirtReg

Recompute liveness from scratch for a single‐def virtual register.

removeVirtualRegisterDead

Remove the specified dead mark of a virtual register from live info.

removeVirtualRegisterKilled

Remove the specified kill of a virtual register from live info.

removeVirtualRegistersKilled

Remove all killed info for the specified instruction.

replaceKillInstruction

Update register kill info by replacing a kill instruction with a new one.

Friends

Name

Description

llvm::LiveVariablesWrapperPass

Legacy pass wrapper for LiveVariables.

Created with MrDocs