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 uint16_t RegSizeInBits
- 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 unsigned int getSizeInBits() 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:52
¶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:68
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:78
Parameters
- llvm::MCRegister Reg1
- llvm::MCRegister Reg2
¶llvm::MCRegisterClass::iterator end() const
llvm::MCRegisterClass::iterator end() constDeclared at: llvm/include/llvm/MC/MCRegisterInfo.h:53
¶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:91
¶unsigned int getID() const
unsigned int getID() constDescription
getID() - Return the register class ID number.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:48
¶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:57
¶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:61
Parameters
- unsigned int i
¶unsigned int getSizeInBits() const
unsigned int getSizeInBits() constDescription
Return the size of the physical register in bits if we are able to determine it. This always returns zero for registers of targets that use HW modes, as we need more information to determine the size of registers in such cases. Use TargetRegisterInfo to cover them.
Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:86
¶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:95