LLVM 22.0.0git
llvm::LiveStacks Class Reference

#include "llvm/CodeGen/LiveStacks.h"

Public Types

using iterator = SS2IntervalMap::iterator
using const_iterator = SS2IntervalMap::const_iterator

Public Member Functions

const_iterator begin () const
const_iterator end () const
iterator begin ()
iterator end ()
unsigned getNumIntervals () const
LiveIntervalgetOrCreateInterval (int Slot, const TargetRegisterClass *RC)
LiveIntervalgetInterval (int Slot)
const LiveIntervalgetInterval (int Slot) const
bool hasInterval (int Slot) const
const TargetRegisterClassgetIntervalRegClass (int Slot) const
VNInfo::AllocatorgetVNInfoAllocator ()
void releaseMemory ()
void init (MachineFunction &MF)
 init - analysis entry point
void print (raw_ostream &O, const Module *M=nullptr) const
 print - Implement the dump method.

Detailed Description

Definition at line 36 of file LiveStacks.h.

Member Typedef Documentation

◆ const_iterator

using llvm::LiveStacks::const_iterator = SS2IntervalMap::const_iterator

Definition at line 52 of file LiveStacks.h.

◆ iterator

using llvm::LiveStacks::iterator = SS2IntervalMap::iterator

Definition at line 51 of file LiveStacks.h.

Member Function Documentation

◆ begin() [1/2]

iterator llvm::LiveStacks::begin ( )
inline

Definition at line 56 of file LiveStacks.h.

◆ begin() [2/2]

const_iterator llvm::LiveStacks::begin ( ) const
inline

Definition at line 54 of file LiveStacks.h.

Referenced by print().

◆ end() [1/2]

iterator llvm::LiveStacks::end ( )
inline

Definition at line 57 of file LiveStacks.h.

◆ end() [2/2]

const_iterator llvm::LiveStacks::end ( ) const
inline

Definition at line 55 of file LiveStacks.h.

Referenced by print().

◆ getInterval() [1/2]

LiveInterval & llvm::LiveStacks::getInterval ( int Slot)
inline

Definition at line 63 of file LiveStacks.h.

References assert(), and I.

◆ getInterval() [2/2]

const LiveInterval & llvm::LiveStacks::getInterval ( int Slot) const
inline

Definition at line 70 of file LiveStacks.h.

References assert(), and I.

◆ getIntervalRegClass()

const TargetRegisterClass * llvm::LiveStacks::getIntervalRegClass ( int Slot) const
inline

Definition at line 79 of file LiveStacks.h.

References assert(), and I.

Referenced by print().

◆ getNumIntervals()

unsigned llvm::LiveStacks::getNumIntervals ( ) const
inline

Definition at line 59 of file LiveStacks.h.

◆ getOrCreateInterval()

LiveInterval & LiveStacks::getOrCreateInterval ( int Slot,
const TargetRegisterClass * RC )

Definition at line 53 of file LiveStacks.cpp.

References assert(), I, and llvm::Register::index2StackSlot().

◆ getVNInfoAllocator()

VNInfo::Allocator & llvm::LiveStacks::getVNInfoAllocator ( )
inline

Definition at line 88 of file LiveStacks.h.

◆ hasInterval()

bool llvm::LiveStacks::hasInterval ( int Slot) const
inline

Definition at line 77 of file LiveStacks.h.

◆ init()

void LiveStacks::init ( MachineFunction & MF)

init - analysis entry point

Definition at line 46 of file LiveStacks.cpp.

References llvm::TargetSubtargetInfo::getRegisterInfo(), and llvm::MachineFunction::getSubtarget().

Referenced by llvm::LiveStacksAnalysis::run().

◆ print()

void LiveStacks::print ( raw_ostream & O,
const Module * M = nullptr ) const

print - Implement the dump method.

Definition at line 99 of file LiveStacks.cpp.

References begin(), end(), getIntervalRegClass(), and I.

◆ releaseMemory()

void LiveStacks::releaseMemory ( )

Definition at line 39 of file LiveStacks.cpp.


The documentation for this class was generated from the following files: