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

Methods

MCRegister(unsigned int Val = 0)

Declared at: llvm/include/llvm/MC/MCRegister.h:26

Parameters

unsigned int Val = 0

unsigned int id() const

Declared at: llvm/include/llvm/MC/MCRegister.h:67

bool isPhysical() const

Description

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)

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)

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

Declared at: llvm/include/llvm/MC/MCRegister.h:71

unsigned int operator unsigned int() const

Declared at: llvm/include/llvm/MC/MCRegister.h:63