LLVM API Documentation

llvm::TargetRegisterClass Class Reference

#include <MRegisterInfo.h>

Collaboration diagram for llvm::TargetRegisterClass:

Collaboration graph
[legend]
List of all members.

Public Types

typedef const unsigned * iterator
typedef const unsigned * const_iterator
typedef const MVT::ValueTypevt_iterator
typedef const TargetRegisterClass
*const * 
sc_iterator

Public Member Functions

 TargetRegisterClass (unsigned id, const MVT::ValueType *vts, const TargetRegisterClass *const *subcs, const TargetRegisterClass *const *supcs, unsigned RS, unsigned Al, iterator RB, iterator RE)
virtual ~TargetRegisterClass ()
unsigned getID () const
iterator begin () const
iterator end () const
unsigned getNumRegs () const
unsigned getRegister (unsigned i) const
bool contains (unsigned Reg) const
bool hasType (MVT::ValueType vt) const
vt_iterator vt_begin () const
vt_iterator vt_end () const
bool hasSubRegClass (const TargetRegisterClass *cs) const
sc_iterator subclasses_begin () const
sc_iterator subclasses_end () const
bool hasSuperRegClass (const TargetRegisterClass *cs) const
sc_iterator superclasses_begin () const
sc_iterator superclasses_end () const
virtual iterator allocation_order_begin (MachineFunction &MF) const
virtual iterator allocation_order_end (MachineFunction &MF) const
unsigned getSize () const
unsigned getAlignment () const

Detailed Description

Definition at line 44 of file MRegisterInfo.h.


Member Typedef Documentation

typedef const unsigned* llvm::TargetRegisterClass::iterator

Definition at line 46 of file MRegisterInfo.h.

typedef const unsigned* llvm::TargetRegisterClass::const_iterator

Definition at line 47 of file MRegisterInfo.h.

typedef const MVT::ValueType* llvm::TargetRegisterClass::vt_iterator

Definition at line 49 of file MRegisterInfo.h.

typedef const TargetRegisterClass* const* llvm::TargetRegisterClass::sc_iterator

Definition at line 50 of file MRegisterInfo.h.


Constructor & Destructor Documentation

llvm::TargetRegisterClass::TargetRegisterClass ( unsigned  id,
const MVT::ValueType vts,
const TargetRegisterClass *const *  subcs,
const TargetRegisterClass *const *  supcs,
unsigned  RS,
unsigned  Al,
iterator  RB,
iterator  RE 
) [inline]

Definition at line 60 of file MRegisterInfo.h.

virtual llvm::TargetRegisterClass::~TargetRegisterClass (  )  [inline, virtual]

Definition at line 67 of file MRegisterInfo.h.


Member Function Documentation

unsigned llvm::TargetRegisterClass::getID (  )  const [inline]

Definition at line 70 of file MRegisterInfo.h.

iterator llvm::TargetRegisterClass::begin (  )  const [inline]

Definition at line 73 of file MRegisterInfo.h.

Referenced by allocation_order_begin(), and contains().

iterator llvm::TargetRegisterClass::end (  )  const [inline]

Definition at line 74 of file MRegisterInfo.h.

Referenced by allocation_order_end(), and contains().

unsigned llvm::TargetRegisterClass::getNumRegs (  )  const [inline]

Definition at line 77 of file MRegisterInfo.h.

Referenced by getRegister().

unsigned llvm::TargetRegisterClass::getRegister ( unsigned  i  )  const [inline]

Definition at line 80 of file MRegisterInfo.h.

References getNumRegs().

bool llvm::TargetRegisterClass::contains ( unsigned  Reg  )  const [inline]

contains - Return true if the specified register is included in this register class.

Definition at line 87 of file MRegisterInfo.h.

References begin(), E, and end().

bool llvm::TargetRegisterClass::hasType ( MVT::ValueType  vt  )  const [inline]

hasType - return true if this TargetRegisterClass has the ValueType vt.

Definition at line 95 of file MRegisterInfo.h.

References llvm::MVT::Other.

vt_iterator llvm::TargetRegisterClass::vt_begin (  )  const [inline]

vt_begin / vt_end - Loop over all of the value types that can be represented by values in this register class.

Definition at line 104 of file MRegisterInfo.h.

vt_iterator llvm::TargetRegisterClass::vt_end (  )  const [inline]

Definition at line 108 of file MRegisterInfo.h.

References llvm::MVT::Other.

bool llvm::TargetRegisterClass::hasSubRegClass ( const TargetRegisterClass cs  )  const [inline]

hasSubRegClass - return true if the specified TargetRegisterClass is a sub-register class of this TargetRegisterClass.

Definition at line 116 of file MRegisterInfo.h.

sc_iterator llvm::TargetRegisterClass::subclasses_begin (  )  const [inline]

subclasses_begin / subclasses_end - Loop over all of the sub-classes of this register class.

Definition at line 125 of file MRegisterInfo.h.

sc_iterator llvm::TargetRegisterClass::subclasses_end (  )  const [inline]

Definition at line 129 of file MRegisterInfo.h.

bool llvm::TargetRegisterClass::hasSuperRegClass ( const TargetRegisterClass cs  )  const [inline]

hasSuperRegClass - return true if the specified TargetRegisterClass is a super-register class of this TargetRegisterClass.

Definition at line 137 of file MRegisterInfo.h.

sc_iterator llvm::TargetRegisterClass::superclasses_begin (  )  const [inline]

superclasses_begin / superclasses_end - Loop over all of the super-classes of this register class.

Definition at line 146 of file MRegisterInfo.h.

sc_iterator llvm::TargetRegisterClass::superclasses_end (  )  const [inline]

Definition at line 150 of file MRegisterInfo.h.

virtual iterator llvm::TargetRegisterClass::allocation_order_begin ( MachineFunction MF  )  const [inline, virtual]

allocation_order_begin/end - These methods define a range of registers which specify the registers in this class that are valid to register allocate, and the preferred order to allocate them in. For example, callee saved registers should be at the end of the list, because it is cheaper to allocate caller saved registers.

These methods take a MachineFunction argument, which can be used to tune the allocatable registers based on the characteristics of the function. One simple example is that the frame pointer register can be used if frame-pointer-elimination is performed.

By default, these methods return all registers in the class.

Definition at line 169 of file MRegisterInfo.h.

References begin().

virtual iterator llvm::TargetRegisterClass::allocation_order_end ( MachineFunction MF  )  const [inline, virtual]

Definition at line 172 of file MRegisterInfo.h.

References end().

unsigned llvm::TargetRegisterClass::getSize (  )  const [inline]

getSize - Return the size of the register in bytes, which is also the size of a stack slot allocated to hold a spilled copy of this register.

Definition at line 180 of file MRegisterInfo.h.

unsigned llvm::TargetRegisterClass::getAlignment (  )  const [inline]

getAlignment - Return the minimum required alignment for a register of this class.

Definition at line 184 of file MRegisterInfo.h.


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