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

Description

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

Description

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

Description

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

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:52

int getCopyCost() const

Description

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

Description

getID() - Return the register class ID number.

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:47

unsigned int getNumRegs() const

Description

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

Description

getRegister - Return the specified register in the class.

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:60

Parameters

unsigned int i

bool isAllocatable() const

Description

isAllocatable - Return true if this register class may be used to create virtual registers.

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:88