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

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 uint16_t Constraints
Operand constraints (see OperandConstraint enum).

Method Overview

Methods

unsigned int getGenericImmIndex() const

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

unsigned int getGenericTypeIndex() const

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

bool isBranchTarget() const

Description

Set if this operand is a branch target.

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

bool isGenericImm() const

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

bool isGenericType() const

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

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

bool isOptionalDef() const

Description

Set if this operand is a optional def.

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

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