LLVM API Documentation
#include <TargetRegisterInfo.h>

Definition at line 50 of file TargetRegisterInfo.h.
| typedef const unsigned* llvm::TargetRegisterClass::iterator |
Definition at line 52 of file TargetRegisterInfo.h.
| typedef const unsigned* llvm::TargetRegisterClass::const_iterator |
Definition at line 53 of file TargetRegisterInfo.h.
| typedef const MVT* llvm::TargetRegisterClass::vt_iterator |
Definition at line 55 of file TargetRegisterInfo.h.
| typedef const TargetRegisterClass* const* llvm::TargetRegisterClass::sc_iterator |
Definition at line 56 of file TargetRegisterInfo.h.
| llvm::TargetRegisterClass::TargetRegisterClass | ( | unsigned | id, | |
| const MVT * | vts, | |||
| const TargetRegisterClass *const * | subcs, | |||
| const TargetRegisterClass *const * | supcs, | |||
| const TargetRegisterClass *const * | subregcs, | |||
| const TargetRegisterClass *const * | superregcs, | |||
| unsigned | RS, | |||
| unsigned | Al, | |||
| int | CC, | |||
| iterator | RB, | |||
| iterator | RE | |||
| ) | [inline] |
Definition at line 69 of file TargetRegisterInfo.h.
| virtual llvm::TargetRegisterClass::~TargetRegisterClass | ( | ) | [inline, virtual] |
Definition at line 80 of file TargetRegisterInfo.h.
| unsigned llvm::TargetRegisterClass::getID | ( | ) | const [inline] |
getID() - Return the register class ID number.
Definition at line 84 of file TargetRegisterInfo.h.
Referenced by llvm::MachineRegisterInfo::createVirtualRegister(), llvm::MachineRegisterInfo::getRegClassVirtRegs(), and llvm::MachineRegisterInfo::setRegClass().
| iterator llvm::TargetRegisterClass::begin | ( | ) | const [inline] |
begin/end - Return all of the registers in this class.
Definition at line 88 of file TargetRegisterInfo.h.
Referenced by allocation_order_begin(), contains(), CreateRegClassMask(), findSuperReg(), and llvm::TargetLowering::getRegForInlineAsmConstraint().
| iterator llvm::TargetRegisterClass::end | ( | ) | const [inline] |
Definition at line 89 of file TargetRegisterInfo.h.
Referenced by allocation_order_end(), contains(), CreateRegClassMask(), findSuperReg(), and llvm::TargetLowering::getRegForInlineAsmConstraint().
| unsigned llvm::TargetRegisterClass::getNumRegs | ( | ) | const [inline] |
getNumRegs - Return the number of registers in this class.
Definition at line 93 of file TargetRegisterInfo.h.
Referenced by getRegister().
getRegister - Return the specified register in the class.
Definition at line 97 of file TargetRegisterInfo.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 104 of file TargetRegisterInfo.h.
References begin(), E, end(), and I.
Referenced by AddLiveIn(), getMatchingSuperReg(), and llvm::TargetRegisterInfo::getPhysicalRegisterRegClass().
| bool llvm::TargetRegisterClass::hasType | ( | MVT | vt | ) | const [inline] |
hasType - return true if this TargetRegisterClass has the ValueType vt.
Definition at line 112 of file TargetRegisterInfo.h.
References llvm::MVT::Other.
Referenced by llvm::TargetRegisterInfo::getPhysicalRegisterRegClass().
| 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 121 of file TargetRegisterInfo.h.
Referenced by llvm::TargetLowering::getRegForInlineAsmConstraint(), llvm::SelectionDAGLowering::GetRegistersForValue(), isAllocatableRegister(), and llvm::X86InstrInfo::unfoldMemoryOperand().
| vt_iterator llvm::TargetRegisterClass::vt_end | ( | ) | const [inline] |
Definition at line 125 of file TargetRegisterInfo.h.
References I, and llvm::MVT::Other.
Referenced by llvm::TargetLowering::getRegForInlineAsmConstraint(), and isAllocatableRegister().
| bool llvm::TargetRegisterClass::hasSubClass | ( | const TargetRegisterClass * | cs | ) | const [inline] |
hasSubClass - return true if the specified TargetRegisterClass is a sub-register class of this TargetRegisterClass.
Definition at line 133 of file TargetRegisterInfo.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 142 of file TargetRegisterInfo.h.
| sc_iterator llvm::TargetRegisterClass::subclasses_end | ( | ) | const [inline] |
| bool llvm::TargetRegisterClass::hasSuperClass | ( | const TargetRegisterClass * | cs | ) | const [inline] |
hasSuperClass - return true if the specified TargetRegisterClass is a super-register class of this TargetRegisterClass.
Definition at line 154 of file TargetRegisterInfo.h.
Referenced by llvm::TargetRegisterInfo::getPhysicalRegisterRegClass().
| 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 163 of file TargetRegisterInfo.h.
| sc_iterator llvm::TargetRegisterClass::superclasses_end | ( | ) | const [inline] |
| sc_iterator llvm::TargetRegisterClass::subregclasses_begin | ( | ) | const [inline] |
subregclasses_begin / subregclasses_end - Loop over all of the subregister classes of this register class.
Definition at line 175 of file TargetRegisterInfo.h.
Referenced by llvm::FastISel::FastEmitInst_extractsubreg(), and getSubRegisterRegClass().
| sc_iterator llvm::TargetRegisterClass::subregclasses_end | ( | ) | const [inline] |
| sc_iterator llvm::TargetRegisterClass::superregclasses_begin | ( | ) | const [inline] |
superregclasses_begin / superregclasses_end - Loop over all of the superregister classes of this register class.
Definition at line 187 of file TargetRegisterInfo.h.
Referenced by getSuperRegisterRegClass().
| sc_iterator llvm::TargetRegisterClass::superregclasses_end | ( | ) | const [inline] |
Definition at line 191 of file TargetRegisterInfo.h.
References I.
Referenced by getSuperRegisterRegClass().
| virtual iterator llvm::TargetRegisterClass::allocation_order_begin | ( | const 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 210 of file TargetRegisterInfo.h.
References begin().
Referenced by getAllocatableSetForRC(), and isAllocatableRegister().
| virtual iterator llvm::TargetRegisterClass::allocation_order_end | ( | const MachineFunction & | MF | ) | const [inline, virtual] |
Definition at line 213 of file TargetRegisterInfo.h.
References end().
Referenced by getAllocatableSetForRC(), and isAllocatableRegister().
| 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 221 of file TargetRegisterInfo.h.
Referenced by llvm::VirtRegMap::assignVirt2StackSlot(), llvm::VirtRegMap::getEmergencySpillSlot(), llvm::XCoreRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::PPCRegisterInfo::processFunctionBeforeCalleeSavedScan(), and llvm::ARMRegisterInfo::processFunctionBeforeCalleeSavedScan().
| unsigned llvm::TargetRegisterClass::getAlignment | ( | ) | const [inline] |
getAlignment - Return the minimum required alignment for a register of this class.
Definition at line 225 of file TargetRegisterInfo.h.
Referenced by llvm::VirtRegMap::assignVirt2StackSlot(), llvm::VirtRegMap::getEmergencySpillSlot(), llvm::XCoreRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::PPCRegisterInfo::processFunctionBeforeCalleeSavedScan(), and llvm::ARMRegisterInfo::processFunctionBeforeCalleeSavedScan().
| int llvm::TargetRegisterClass::getCopyCost | ( | ) | const [inline] |
getCopyCost - Return the cost of copying a value between two registers in this class.
Definition at line 229 of file TargetRegisterInfo.h.
Referenced by CheckForPhysRegDependency().
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.