LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

Public Member Functions

 TargetRegisterClass (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
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 42 of file MRegisterInfo.h.


Member Typedef Documentation

typedef const unsigned* llvm::TargetRegisterClass::const_iterator
 

Definition at line 45 of file MRegisterInfo.h.

typedef const unsigned* llvm::TargetRegisterClass::iterator
 

Definition at line 44 of file MRegisterInfo.h.


Constructor & Destructor Documentation

llvm::TargetRegisterClass::TargetRegisterClass unsigned  RS,
unsigned  Al,
iterator  RB,
iterator  RE
[inline]
 

Definition at line 51 of file MRegisterInfo.h.

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

Definition at line 53 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 89 of file MRegisterInfo.h.

References begin().

Referenced by llvm::MRegisterInfo::getAllocatableSet().

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

Definition at line 92 of file MRegisterInfo.h.

References end().

Referenced by llvm::MRegisterInfo::getAllocatableSet().

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

Definition at line 56 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 70 of file MRegisterInfo.h.

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

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

Definition at line 57 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 104 of file MRegisterInfo.h.

Referenced by llvm::VirtRegMap::assignVirt2StackSlot().

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

Definition at line 60 of file MRegisterInfo.h.

Referenced by getRegister().

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

Definition at line 63 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 100 of file MRegisterInfo.h.

Referenced by llvm::VirtRegMap::assignVirt2StackSlot(), llvm::X86RegisterInfo::copyRegToReg(), and getIdx().


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