class LiveDebugVariables

Declaration

class LiveDebugVariables : public MachineFunctionPass { /* full declaration omitted */ };

Description

MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of passes that operate on the MachineFunction representation. Instead of overriding runOnFunction, subclasses override runOnMachineFunction.

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:32

Inherits from: MachineFunctionPass

Member Variables

private void* pImpl = nullptr
public static char ID

Method Overview

Inherited from MachineFunctionPass:

Inherited from FunctionPass:

Inherited from Pass:

Methods

LiveDebugVariables()

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:38

void dump() const

Description

dump - Print data structures to dbgs().

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:53

void emitDebugValues(llvm::VirtRegMap* VRM)

Description

emitDebugValues - Emit new DBG_VALUE instructions reflecting the changes that happened during register allocation.

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:50

Parameters

llvm::VirtRegMap* VRM
Rename virtual registers according to map.

void getAnalysisUsage(llvm::AnalysisUsage&) const

Description

getAnalysisUsage - Subclasses that override getAnalysisUsage must call this. For MachineFunctionPasses, calling AU.preservesCFG() indicates that the pass does not modify the MachineBasicBlock CFG.

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:58

Parameters

llvm::AnalysisUsage&

llvm::MachineFunctionProperties getSetProperties()
    const

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:60

void releaseMemory()

Description

releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. The default behavior of passes is to hold onto memory for the entire duration of their lifetime (which is the entire compile time). For pipelined passes, this is not a big deal because that memory gets recycled every time the pass is invoked on another program unit. For IP passes, it is more important to free memory when it is unused. Optionally implement this function to release pass memory when it is no longer used.

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:57

bool runOnMachineFunction(llvm::MachineFunction&)

Description

runOnMachineFunction - This method must be overloaded to perform the desired machine code transformation or analysis.

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:56

Parameters

llvm::MachineFunction&

void splitRegister(
    llvm::Register OldReg,
    ArrayRef<llvm::Register> NewRegs,
    llvm::LiveIntervals& LIS)

Description

splitRegister - Move any user variables in OldReg to the live ranges in NewRegs where they are live. Mark the values as unavailable where no new register is live.

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:44

Parameters

llvm::Register OldReg
ArrayRef<llvm::Register> NewRegs
llvm::LiveIntervals& LIS

~LiveDebugVariables()

Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:39