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

Description

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

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:68

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:78

Parameters

llvm::MCRegister Reg1
llvm::MCRegister Reg2

llvm::MCRegisterClass::iterator end() const

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

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:91

unsigned int getID() const

Description

getID() - Return the register class ID number.

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

unsigned int getNumRegs() const

Description

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

Description

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

Description

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

Description

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

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