class MCRegisterClass
Declaration
class MCRegisterClass { /* full declaration omitted */ };Description
MCRegisterClass - Base class of TargetRegisterClass.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:31
Member Variables
- public const llvm::MCRegisterClass::iterator RegsBegin
- public const uint8_t* const RegSet
- public const uint32_t NameIdx
- public const uint16_t RegsSize
- public const uint16_t RegSetSize
- public const uint16_t ID
- public const int8_t CopyCost
- public const bool Allocatable
Method Overview
- public llvm::MCRegisterClass::iterator begin() const
- public bool contains(llvm::MCRegister Reg) const
- public bool contains(llvm::MCRegister Reg1, llvm::MCRegister Reg2) const
- public llvm::MCRegisterClass::iterator end() const
- public int getCopyCost() const
- public unsigned int getID() const
- public unsigned int getNumRegs() const
- public unsigned int getRegister(unsigned int i) const
- public bool isAllocatable() const
Methods
¶llvm::MCRegisterClass::iterator begin() const
llvm::MCRegisterClass::iterator begin() constDescription
begin/end - Return all of the registers in this class.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:51
¶bool contains(llvm::MCRegister Reg) const
bool contains(llvm::MCRegister Reg) constDescription
contains - Return true if the specified register is included in this register class. This does not include virtual registers.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:67
Parameters
- llvm::MCRegister Reg
¶bool contains(llvm::MCRegister Reg1,
llvm::MCRegister Reg2) const
bool contains(llvm::MCRegister Reg1,
llvm::MCRegister Reg2) constDescription
contains - Return true if both registers are in this class.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:77
Parameters
- llvm::MCRegister Reg1
- llvm::MCRegister Reg2
¶llvm::MCRegisterClass::iterator end() const
llvm::MCRegisterClass::iterator end() constDeclared at: llvm/include/llvm/MC/MCRegisterInfo.h:52
¶int getCopyCost() const
int getCopyCost() constDescription
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.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:84
¶unsigned int getID() const
unsigned int getID() constDescription
getID() - Return the register class ID number.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:47
¶unsigned int getNumRegs() const
unsigned int getNumRegs() constDescription
getNumRegs - Return the number of registers in this class.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:56
¶unsigned int getRegister(unsigned int i) const
unsigned int getRegister(unsigned int i) constDescription
getRegister - Return the specified register in the class.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:60
Parameters
- unsigned int i
¶bool isAllocatable() const
bool isAllocatable() constDescription
isAllocatable - Return true if this register class may be used to create virtual registers.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:88