LLVM
8.0.1
|
MCRegisterClass - Base class of TargetRegisterClass. More...
#include "llvm/MC/MCRegisterInfo.h"
Public Types | |
using | iterator = const MCPhysReg * |
using | const_iterator = const MCPhysReg * |
Public Member Functions | |
unsigned | getID () const |
getID() - Return the register class ID number. More... | |
iterator | begin () const |
begin/end - Return all of the registers in this class. More... | |
iterator | end () const |
unsigned | getNumRegs () const |
getNumRegs - Return the number of registers in this class. More... | |
unsigned | getRegister (unsigned i) const |
getRegister - Return the specified register in the class. More... | |
bool | contains (unsigned Reg) const |
contains - Return true if the specified register is included in this register class. More... | |
bool | contains (unsigned Reg1, unsigned Reg2) const |
contains - Return true if both registers are in this class. More... | |
int | getCopyCost () const |
getCopyCost - Return the cost of copying a value between two registers in this class. More... | |
bool | isAllocatable () const |
isAllocatable - Return true if this register class may be used to create virtual registers. More... | |
Public Attributes | |
const iterator | RegsBegin |
const uint8_t *const | RegSet |
const uint32_t | NameIdx |
const uint16_t | RegsSize |
const uint16_t | RegSetSize |
const uint16_t | ID |
const int8_t | CopyCost |
const bool | Allocatable |
MCRegisterClass - Base class of TargetRegisterClass.
Definition at line 33 of file MCRegisterInfo.h.
Definition at line 36 of file MCRegisterInfo.h.
Definition at line 35 of file MCRegisterInfo.h.
|
inline |
begin/end - Return all of the registers in this class.
Definition at line 53 of file MCRegisterInfo.h.
References RegsBegin.
Referenced by llvm::TargetRegisterClass::begin(), getReg(), and llvm::TargetRegisterClass::getRegisters().
contains - Return true if the specified register is included in this register class.
This does not include virtual registers.
Definition at line 69 of file MCRegisterInfo.h.
Referenced by llvm::X86_MC::X86MCInstrAnalysis::clearsSuperRegisters(), contains(), llvm::TargetRegisterClass::contains(), doesIgnoreDataTypeSuffix(), llvm::MCRegisterInfo::getMatchingSuperReg(), getNextRegister(), llvm::AMDGPU::isSGPR(), llvm::ARMInstPrinter::printInst(), llvm::AMDGPUInstPrinter::printRegOperand(), llvm::AArch64InstPrinter::printVectorList(), and llvm::MipsRegInfoRecord::SetPhysRegUsed().
contains - Return true if both registers are in this class.
Definition at line 78 of file MCRegisterInfo.h.
References contains().
|
inline |
Definition at line 54 of file MCRegisterInfo.h.
References RegsSize.
Referenced by llvm::TargetRegisterClass::end(), and llvm::TargetRegisterClass::getRegisters().
|
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 85 of file MCRegisterInfo.h.
References CopyCost.
Referenced by llvm::TargetRegisterClass::getCopyCost().
|
inline |
getID() - Return the register class ID number.
Definition at line 49 of file MCRegisterInfo.h.
References ID.
Referenced by llvm::TargetRegisterClass::getID(), and llvm::AMDGPU::getRegBitWidth().
|
inline |
getNumRegs - Return the number of registers in this class.
Definition at line 58 of file MCRegisterInfo.h.
References RegsSize.
Referenced by llvm::TargetRegisterClass::getNumRegs(), getRegister(), and getSpecialRegForName().
getRegister - Return the specified register in the class.
Definition at line 62 of file MCRegisterInfo.h.
References assert(), and getNumRegs().
Referenced by doesIgnoreDataTypeSuffix(), llvm::TargetRegisterClass::getRegister(), and getSpecialRegForName().
|
inline |
isAllocatable - Return true if this register class may be used to create virtual registers.
Definition at line 89 of file MCRegisterInfo.h.
References Allocatable.
Referenced by llvm::TargetRegisterClass::isAllocatable().
Definition at line 45 of file MCRegisterInfo.h.
Referenced by isAllocatable().
const int8_t llvm::MCRegisterClass::CopyCost |
Definition at line 44 of file MCRegisterInfo.h.
Referenced by getCopyCost().
const uint16_t llvm::MCRegisterClass::ID |
Definition at line 43 of file MCRegisterInfo.h.
Referenced by getID().
Definition at line 40 of file MCRegisterInfo.h.
Referenced by llvm::MCRegisterInfo::getRegClassName().
Definition at line 38 of file MCRegisterInfo.h.
Referenced by begin().
Definition at line 39 of file MCRegisterInfo.h.
const uint16_t llvm::MCRegisterClass::RegSetSize |
Definition at line 42 of file MCRegisterInfo.h.
const uint16_t llvm::MCRegisterClass::RegsSize |
Definition at line 41 of file MCRegisterInfo.h.
Referenced by end(), and getNumRegs().