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

Inherited from MachineFunctionPass:

Inherited from FunctionPass:

Inherited from Pass:

Methods

LiveStacks()

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:48

llvm::LiveStacks::const_iterator begin() const

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:55

llvm::LiveStacks::iterator begin()

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:57

llvm::LiveStacks::const_iterator end() const

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:56

llvm::LiveStacks::iterator end()

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:58

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::AnalysisUsage& AU

llvm::LiveInterval& getInterval(int Slot)

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:64

Parameters

int Slot

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

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:80

Parameters

int Slot

unsigned int getNumIntervals() const

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:60

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()

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:89

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

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()

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&)

Description

runOnMachineFunction - pass entry point

Declared at: llvm/include/llvm/CodeGen/LiveStacks.h:95

Parameters

llvm::MachineFunction&