class MCOperandInfo

Declaration

class MCOperandInfo { /* full declaration omitted */ };

Description

This holds information about one operand of a machine instruction, indicating the register class for register operands, etc.

Declared at: llvm/include/llvm/MC/MCInstrDesc.h:75

Member Variables

public int16_t RegClass
This specifies the register class enumeration of the operand if the operand is a register. If isLookupPtrRegClass is set, then this is an index that is passed to TargetRegisterInfo::getPointerRegClass(x) to get a dynamic register class.
public uint8_t Flags
These are flags from the MCOI::OperandFlags enum.
public uint8_t OperandType
Information about the type of the operand.
public uint32_t Constraints
The lower 16 bits are used to specify which constraints are set. The higher 16 bits are used to specify the value of constraints (4 bits each).

Method Overview

Methods

unsigned int getGenericImmIndex() const

Declared at: llvm/include/llvm/MC/MCInstrDesc.h:124

unsigned int getGenericTypeIndex() const

Declared at: llvm/include/llvm/MC/MCInstrDesc.h:114

bool isBranchTarget() const

Description

Set if this operand is a branch target.

Declared at: llvm/include/llvm/MC/MCInstrDesc.h:107

bool isGenericImm() const

Declared at: llvm/include/llvm/MC/MCInstrDesc.h:119

bool isGenericType() const

Declared at: llvm/include/llvm/MC/MCInstrDesc.h:109

bool isLookupPtrRegClass() const

Description

Set if this operand is a pointer value and it requires a callback to look up its register class.

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

bool isOptionalDef() const

Description

Set if this operand is a optional def.

Declared at: llvm/include/llvm/MC/MCInstrDesc.h:104

bool isPredicate() const

Description

Set if this is one of the operands that made up of the predicate operand that controls an isPredicable() instruction.

Declared at: llvm/include/llvm/MC/MCInstrDesc.h:101