Wrapper class representing physical registers. Should be passed by value.

Synopsis

Declared in <llvm/MC/MCRegister.h>

class MCRegister;

Member Functions

Name

Description

MCRegister [constructor]

Construct a register from Val, defaulting to no register.

id

Return the underlying unsigned register number.

isPhysical

Return true if the specified register number is in the physical register namespace.

isValid

Return true if this is a real register (not NoRegister).

operator unsigned int

Convert this register to its underlying unsigned register number.

operator==

Equality operators

operator!=

Inequality operators

Static Member Functions

Name

Description

from

Check the provided unsigned value is a valid MCRegister.

isPhysicalRegister

Return true if the specified register number is in the physical register namespace.

Static Data Members

Name

Description

FirstPhysicalReg

First valid physical register number.

LastPhysicalReg

Last valid physical register number.

NoRegister

Sentinel value meaning "not a register".

Friends

Name

Description

llvm::hash_value

Compute a hash code for register Reg.

Created with MrDocs