class MCRegister
Declaration
class MCRegister { /* full declaration omitted */ };Description
Wrapper class representing physical registers. Should be passed by value.
Declared at: llvm/include/llvm/MC/MCRegister.h:22
Method Overview
- public MCRegister(unsigned int Val = 0)
- public unsigned int id() const
- public bool isPhysical() const
- public static bool isPhysicalRegister(unsigned int Reg)
- public static bool isStackSlot(unsigned int Reg)
- public bool isValid() const
- public unsigned int operator unsigned int() const
Methods
¶MCRegister(unsigned int Val = 0)
MCRegister(unsigned int Val = 0)Declared at: llvm/include/llvm/MC/MCRegister.h:26
Parameters
- unsigned int Val = 0
¶unsigned int id() const
unsigned int id() constDeclared at: llvm/include/llvm/MC/MCRegister.h:67
¶bool isPhysical() const
bool isPhysical() constDescription
Return true if the specified register number is in the physical register namespace.
Declared at: llvm/include/llvm/MC/MCRegister.h:59
¶static bool isPhysicalRegister(unsigned int Reg)
static bool isPhysicalRegister(unsigned int Reg)Description
Return true if the specified register number is in the physical register namespace.
Declared at: llvm/include/llvm/MC/MCRegister.h:52
Parameters
- unsigned int Reg
¶static bool isStackSlot(unsigned int Reg)
static bool isStackSlot(unsigned int Reg)Description
This is the portion of the positive number space that is not a physical register. StackSlot values do not exist in the MC layer, see Register::isStackSlot() for the more information on them. Note that isVirtualRegister() and isPhysicalRegister() cannot handle stack slots, so if a variable may contains a stack slot, always check isStackSlot() first.
Declared at: llvm/include/llvm/MC/MCRegister.h:46
Parameters
- unsigned int Reg
¶bool isValid() const
bool isValid() constDeclared at: llvm/include/llvm/MC/MCRegister.h:71
¶unsigned int operator unsigned int() const
unsigned int operator unsigned int() constDeclared at: llvm/include/llvm/MC/MCRegister.h:63