LLVM API Documentation
#include <MRegisterInfo.h>
Collaboration diagram for llvm::TargetRegisterClass:
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 |
Definition at line 42 of file MRegisterInfo.h.
|
Definition at line 45 of file MRegisterInfo.h. |
|
Definition at line 44 of file MRegisterInfo.h. |
|
Definition at line 51 of file MRegisterInfo.h. |
|
Definition at line 53 of file MRegisterInfo.h. |
|
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(). |
|
Definition at line 92 of file MRegisterInfo.h. References end(). Referenced by llvm::MRegisterInfo::getAllocatableSet(). |
|
Definition at line 56 of file MRegisterInfo.h. Referenced by allocation_order_begin(), and contains(). |
|
contains - Return true if the specified register is included in this register class. Definition at line 70 of file MRegisterInfo.h. |
|
Definition at line 57 of file MRegisterInfo.h. Referenced by allocation_order_end(), and contains(). |
|
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(). |
|
Definition at line 60 of file MRegisterInfo.h. Referenced by getRegister(). |
|
Definition at line 63 of file MRegisterInfo.h. References getNumRegs(). |
|
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(). |