class LiveStacks
Declaration
class LiveStacks : 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/include/llvm/CodeGen/LiveStacks.h:31
Inherits from: MachineFunctionPass
Member Variables
- public static char ID
Method Overview
- public LiveStacks()
- public llvm::LiveStacks::const_iterator begin() const
- public llvm::LiveStacks::iterator begin()
- public llvm::LiveStacks::const_iterator end() const
- public llvm::LiveStacks::iterator end()
- public void getAnalysisUsage(llvm::AnalysisUsage & AU) const
- public llvm::LiveInterval & getInterval(int Slot)
- public const llvm::LiveInterval & getInterval(int Slot) const
- public const llvm::TargetRegisterClass * getIntervalRegClass(int Slot) const
- public unsigned int getNumIntervals() const
- public llvm::LiveInterval & getOrCreateInterval(int Slot, const llvm::TargetRegisterClass * RC)
- public VNInfo::Allocator & getVNInfoAllocator()
- public bool hasInterval(int Slot) const
- public void print(llvm::raw_ostream & O, const llvm::Module * = nullptr) const
- public void releaseMemory()
- public bool runOnMachineFunction(llvm::MachineFunction &)
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
¶LiveStacks()
LiveStacks()
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:48
¶llvm::LiveStacks::const_iterator begin() const
llvm::LiveStacks::const_iterator begin() const
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:55
¶llvm::LiveStacks::iterator begin()
llvm::LiveStacks::iterator begin()
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:57
¶llvm::LiveStacks::const_iterator end() const
llvm::LiveStacks::const_iterator end() const
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:56
¶llvm::LiveStacks::iterator end()
llvm::LiveStacks::iterator end()
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:58
¶void getAnalysisUsage(
llvm::AnalysisUsage& AU) const
void getAnalysisUsage(
llvm::AnalysisUsage& AU) 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/include/llvm/CodeGen/LiveStacks.h:91
Parameters
¶llvm::LiveInterval& getInterval(int Slot)
llvm::LiveInterval& getInterval(int Slot)
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:64
Parameters
- int Slot
¶const llvm::LiveInterval& getInterval(
int Slot) const
const llvm::LiveInterval& getInterval(
int Slot) const
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:71
Parameters
- int Slot
¶const llvm::TargetRegisterClass*
getIntervalRegClass(int Slot) const
const llvm::TargetRegisterClass*
getIntervalRegClass(int Slot) const
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:80
Parameters
- int Slot
¶unsigned int getNumIntervals() const
unsigned int getNumIntervals() const
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:60
¶llvm::LiveInterval& getOrCreateInterval(
int Slot,
const llvm::TargetRegisterClass* RC)
llvm::LiveInterval& getOrCreateInterval(
int Slot,
const llvm::TargetRegisterClass* RC)
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:62
Parameters
- int Slot
- const llvm::TargetRegisterClass* RC
¶VNInfo::Allocator& getVNInfoAllocator()
VNInfo::Allocator& getVNInfoAllocator()
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:89
¶bool hasInterval(int Slot) const
bool hasInterval(int Slot) const
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:78
Parameters
- int Slot
¶void print(llvm::raw_ostream& O,
const llvm::Module* = nullptr) const
void print(llvm::raw_ostream& O,
const llvm::Module* = nullptr) const
Description
print - Implement the dump method.
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:98
Parameters
- llvm::raw_ostream& O
- const llvm::Module* = nullptr
¶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/include/llvm/CodeGen/LiveStacks.h:92
¶bool runOnMachineFunction(llvm::MachineFunction&)
bool runOnMachineFunction(llvm::MachineFunction&)
Description
runOnMachineFunction - pass entry point
Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:95