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
- public LiveDebugVariables()
- public void dump() const
- public void emitDebugValues(llvm::VirtRegMap * VRM)
- private void getAnalysisUsage(llvm::AnalysisUsage &) const
- private llvm::MachineFunctionProperties getSetProperties() const
- private void releaseMemory()
- private bool runOnMachineFunction(llvm::MachineFunction &)
- public void splitRegister(llvm::Register OldReg, ArrayRef<llvm::Register> NewRegs, llvm::LiveIntervals & LIS)
- public ~LiveDebugVariables()
Inherited from MachineFunctionPass:
- public doInitialization
- protected getAnalysisUsage
- protected getClearedProperties
- protected getRequiredProperties
- protected getSetProperties
- protected runOnMachineFunction
Inherited from FunctionPass:
- public assignPassManager
- public createPrinterPass
- public getPotentialPassManagerType
- public runOnFunction
- protected skipFunction
Inherited from Pass:
- public assignPassManager
- public createPass
- public createPrinterPass
- public doFinalization
- public doInitialization
- public dump
- public dumpPassStructure
- public getAdjustedAnalysisPointer
- public getAnalysis
- public getAnalysis
- public getAnalysisID
- public getAnalysisID
- public getAnalysisIfAvailable
- public getAnalysisUsage
- public getAsImmutablePass
- public getAsPMDataManager
- public getPassID
- public getPassKind
- public getPassName
- public getPotentialPassManagerType
- public getResolver
- public lookupPassInfo
- public lookupPassInfo
- public mustPreserveAnalysisID
- public preparePassManager
- public print
- public releaseMemory
- public setResolver
- public verifyAnalysis
Methods
¶LiveDebugVariables()
LiveDebugVariables()
Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:38
¶void dump() const
void dump() const
Description
dump - Print data structures to dbgs().
Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:53
¶void emitDebugValues(llvm::VirtRegMap* VRM)
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
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::MachineFunctionProperties getSetProperties()
const
llvm::MachineFunctionProperties getSetProperties()
const
Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:60
¶void releaseMemory()
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&)
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
¶void splitRegister(
llvm::Register OldReg,
ArrayRef<llvm::Register> NewRegs,
llvm::LiveIntervals& LIS)
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()
~LiveDebugVariables()
Declared at: llvm/lib/CodeGen/LiveDebugVariables.h:39