LLVM API Documentation
#include <TargetRegisterInfo.h>
Definition at line 51 of file TargetRegisterInfo.h.
| typedef const unsigned* llvm::TargetRegisterClass::iterator |
Definition at line 53 of file TargetRegisterInfo.h.
| typedef const unsigned* llvm::TargetRegisterClass::const_iterator |
Definition at line 54 of file TargetRegisterInfo.h.
| typedef const EVT* llvm::TargetRegisterClass::vt_iterator |
Definition at line 56 of file TargetRegisterInfo.h.
| typedef const TargetRegisterClass* const* llvm::TargetRegisterClass::sc_iterator |
Definition at line 57 of file TargetRegisterInfo.h.
| llvm::TargetRegisterClass::TargetRegisterClass | ( | unsigned | id, | |
| const char * | name, | |||
| const EVT * | 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 71 of file TargetRegisterInfo.h.
References E, and llvm::DenseSet< ValueT, ValueInfoT >::insert().
| virtual llvm::TargetRegisterClass::~TargetRegisterClass | ( | ) | [inline, virtual] |
Definition at line 86 of file TargetRegisterInfo.h.
| unsigned llvm::TargetRegisterClass::getID | ( | ) | const [inline] |
getID() - Return the register class ID number.
Definition at line 90 of file TargetRegisterInfo.h.
Referenced by llvm::MachineRegisterInfo::createVirtualRegister(), llvm::MachineRegisterInfo::getRegClassVirtRegs(), and llvm::MachineRegisterInfo::setRegClass().
| const char* llvm::TargetRegisterClass::getName | ( | ) | const [inline] |
getName() - Return the register class name for debugging.
Definition at line 94 of file TargetRegisterInfo.h.
Referenced by llvm::BlackfinInstrInfo::copyRegToReg(), llvm::LiveStacks::print(), and llvm::BlackfinInstrInfo::storeRegToStackSlot().
| iterator llvm::TargetRegisterClass::begin | ( | ) | const [inline] |
begin/end - Return all of the registers in this class.
Definition at line 98 of file TargetRegisterInfo.h.
Referenced by allocation_order_begin(), CreateRegClassMask(), findSuperReg(), llvm::RegScavenger::FindUnusedReg(), llvm::getCommonSubClass(), llvm::TargetLowering::getRegForInlineAsmConstraint(), and llvm::SelectionDAGLowering::GetRegistersForValue().
| iterator llvm::TargetRegisterClass::end | ( | ) | const [inline] |
Definition at line 99 of file TargetRegisterInfo.h.
Referenced by allocation_order_end(), CreateRegClassMask(), findSuperReg(), llvm::RegScavenger::FindUnusedReg(), llvm::getCommonSubClass(), llvm::TargetLowering::getRegForInlineAsmConstraint(), and llvm::SelectionDAGLowering::GetRegistersForValue().
| unsigned llvm::TargetRegisterClass::getNumRegs | ( | ) | const [inline] |
getNumRegs - Return the number of registers in this class.
Definition at line 103 of file TargetRegisterInfo.h.
Referenced by llvm::BlackfinRegisterInfo::getPhysicalRegisterRegClass(), and getRegister().
getRegister - Return the specified register in the class.
Definition at line 107 of file TargetRegisterInfo.h.
References getNumRegs().
contains - Return true if the specified register is included in this register class.
Definition at line 114 of file TargetRegisterInfo.h.
References llvm::DenseSet< ValueT, ValueInfoT >::count().
Referenced by AddLiveIn(), llvm::MachineFunction::addLiveIn(), ComputeReloadLoc(), llvm::TargetRegisterInfo::getMatchingSuperReg(), llvm::TargetRegisterInfo::getPhysicalRegisterRegClass(), llvm::BlackfinRegisterInfo::getPhysicalRegisterRegClass(), and inClass().
hasType - return true if this TargetRegisterClass has the ValueType vt.
Definition at line 120 of file TargetRegisterInfo.h.
References llvm::EVT::getSimpleVT(), llvm::MVT::Other, and llvm::MVT::SimpleTy.
Referenced by llvm::TargetRegisterInfo::getPhysicalRegisterRegClass(), and llvm::BlackfinRegisterInfo::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 129 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 133 of file TargetRegisterInfo.h.
References llvm::EVT::getSimpleVT(), llvm::MVT::Other, and llvm::MVT::SimpleTy.
Referenced by llvm::TargetLowering::getRegForInlineAsmConstraint(), and isAllocatableRegister().
| sc_iterator llvm::TargetRegisterClass::subregclasses_begin | ( | ) | const [inline] |
subregclasses_begin / subregclasses_end - Loop over all of the subreg register classes of this register class.
Definition at line 141 of file TargetRegisterInfo.h.
| sc_iterator llvm::TargetRegisterClass::subregclasses_end | ( | ) | const [inline] |
Definition at line 145 of file TargetRegisterInfo.h.
| const TargetRegisterClass* llvm::TargetRegisterClass::getSubRegisterRegClass | ( | unsigned | SubIdx | ) | const [inline] |
getSubRegisterRegClass - Return the register class of subregisters with index SubIdx, or NULL if no such class exists.
Definition at line 153 of file TargetRegisterInfo.h.
| sc_iterator llvm::TargetRegisterClass::superregclasses_begin | ( | ) | const [inline] |
superregclasses_begin / superregclasses_end - Loop over all of the superreg register classes of this register class.
Definition at line 163 of file TargetRegisterInfo.h.
Referenced by getSuperRegisterRegClass().
| sc_iterator llvm::TargetRegisterClass::superregclasses_end | ( | ) | const [inline] |
| bool llvm::TargetRegisterClass::hasSubClass | ( | const TargetRegisterClass * | cs | ) | const [inline] |
hasSubClass - return true if the the specified TargetRegisterClass is a proper subset of this TargetRegisterClass.
Definition at line 175 of file TargetRegisterInfo.h.
Referenced by llvm::X86InstrInfo::copyRegToReg(), llvm::SystemZInstrInfo::copyRegToReg(), llvm::getCommonSubClass(), inClass(), isCC(), and isDCC().
| sc_iterator llvm::TargetRegisterClass::subclasses_begin | ( | ) | const [inline] |
subclasses_begin / subclasses_end - Loop over all of the classes that are proper subsets of this register class.
Definition at line 184 of file TargetRegisterInfo.h.
Referenced by llvm::getCommonSubClass().
| sc_iterator llvm::TargetRegisterClass::subclasses_end | ( | ) | const [inline] |
Definition at line 188 of file TargetRegisterInfo.h.
| bool llvm::TargetRegisterClass::hasSuperClass | ( | const TargetRegisterClass * | cs | ) | const [inline] |
hasSuperClass - return true if the specified TargetRegisterClass is a proper superset of this TargetRegisterClass.
Definition at line 196 of file TargetRegisterInfo.h.
Referenced by llvm::X86InstrInfo::copyRegToReg(), llvm::SystemZInstrInfo::copyRegToReg(), llvm::getCommonSubClass(), and llvm::TargetRegisterInfo::getPhysicalRegisterRegClass().
| sc_iterator llvm::TargetRegisterClass::superclasses_begin | ( | ) | const [inline] |
superclasses_begin / superclasses_end - Loop over all of the classes that are proper supersets of this register class.
Definition at line 205 of file TargetRegisterInfo.h.
| sc_iterator llvm::TargetRegisterClass::superclasses_end | ( | ) | const [inline] |
Definition at line 209 of file TargetRegisterInfo.h.
| bool llvm::TargetRegisterClass::isASubClass | ( | ) | const [inline] |
isASubClass - return true if this TargetRegisterClass is a subset class of at least one other TargetRegisterClass.
Definition at line 217 of file TargetRegisterInfo.h.
| 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 234 of file TargetRegisterInfo.h.
References begin().
Referenced by getAllocatableSetForRC(), llvm::TargetRegisterInfo::getAllocationOrder(), llvm::ARMBaseRegisterInfo::getAllocationOrder(), and isAllocatableRegister().
| virtual iterator llvm::TargetRegisterClass::allocation_order_end | ( | const MachineFunction & | MF | ) | const [inline, virtual] |
Definition at line 237 of file TargetRegisterInfo.h.
References end().
Referenced by getAllocatableSetForRC(), llvm::TargetRegisterInfo::getAllocationOrder(), llvm::ARMBaseRegisterInfo::getAllocationOrder(), 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 243 of file TargetRegisterInfo.h.
Referenced by llvm::VirtRegMap::assignVirt2StackSlot(), llvm::getCommonSubClass(), llvm::VirtRegMap::getEmergencySpillSlot(), llvm::X86RegisterInfo::getMatchingSuperRegClass(), llvm::XCoreRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::PPCRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::BlackfinRegisterInfo::processFunctionBeforeCalleeSavedScan(), and llvm::ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan().
| unsigned llvm::TargetRegisterClass::getAlignment | ( | ) | const [inline] |
getAlignment - Return the minimum required alignment for a register of this class.
Definition at line 247 of file TargetRegisterInfo.h.
Referenced by llvm::VirtRegMap::assignVirt2StackSlot(), llvm::VirtRegMap::getEmergencySpillSlot(), llvm::XCoreRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::PPCRegisterInfo::processFunctionBeforeCalleeSavedScan(), llvm::BlackfinRegisterInfo::processFunctionBeforeCalleeSavedScan(), and llvm::ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan().
| int llvm::TargetRegisterClass::getCopyCost | ( | ) | const [inline] |
getCopyCost - Return the cost of copying a value between two registers in this class. A negative number means the register class is very expensive to copy e.g. status flag register classes.
Definition at line 252 of file TargetRegisterInfo.h.
Referenced by CheckForPhysRegDependency().