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

Public Member Functions

 TargetRegisterClass (const MVT::ValueType *vts, unsigned RS, unsigned Al, iterator RB, iterator RE)
virtual ~TargetRegisterClass ()
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
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::const_iterator

Definition at line 47 of file MRegisterInfo.h.

typedef const unsigned* llvm::TargetRegisterClass::iterator

Definition at line 46 of file MRegisterInfo.h.

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

Definition at line 49 of file MRegisterInfo.h.


Constructor & Destructor Documentation

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

Definition at line 55 of file MRegisterInfo.h.

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

Definition at line 58 of file MRegisterInfo.h.


Member Function Documentation

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 118 of file MRegisterInfo.h.

References begin().

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

Definition at line 121 of file MRegisterInfo.h.

References end().

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

Definition at line 61 of file MRegisterInfo.h.

Referenced by allocation_order_begin(), and contains().

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

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

Definition at line 75 of file MRegisterInfo.h.

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

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

Definition at line 62 of file MRegisterInfo.h.

Referenced by allocation_order_end(), and contains().

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

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

Definition at line 133 of file MRegisterInfo.h.

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

Definition at line 65 of file MRegisterInfo.h.

Referenced by getRegister().

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

Definition at line 68 of file MRegisterInfo.h.

References getNumRegs().

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 129 of file MRegisterInfo.h.

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

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

Definition at line 83 of file MRegisterInfo.h.

References llvm::MVT::Other.

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

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

Definition at line 92 of file MRegisterInfo.h.

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

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

Definition at line 98 of file MRegisterInfo.h.

References I, and llvm::MVT::Other.


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