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

Member Variables

private unsigned int Reg
public static const unsigned int NoRegister = 0U
public static const unsigned int FirstPhysicalReg = 1U
public static const unsigned int FirstStackSlot = 1U << 30
public static const unsigned int VirtualRegFlag = 1U << 31

Method Overview

Methods

constexpr MCRegister(unsigned int Val = 0)

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

Parameters

unsigned int Val = 0

static llvm::MCRegister from(unsigned int Val)

Description

Check the provided unsigned value is a valid MCRegister.

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

Parameters

unsigned int Val

unsigned int id() const

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

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

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.

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

Parameters

unsigned int Reg

bool isValid() const

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

constexpr unsigned int operator unsigned int()
    const

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