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

Synopsis

Declared in <llvm/MC/MCInstrDesc.h>

class MCOperandInfo;

Member Functions

Name

Description

getGenericImmIndex

Return the zero‐based index of this generic immediate operand type.

getGenericTypeIndex

Return the zero‐based index of this generic operand type.

isBranchTarget

Set if this operand is a branch target.

isGenericImm

Return true if this operand has a generic immediate type.

isGenericType

Return true if this operand has a generic (target‐independent) type.

isLookupRegClassByHwMode

Set if this operand is a value that requires the current hwmode to look up its register class.

isOptionalDef

Set if this operand is a optional def.

isPredicate

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

Data Members

Name

Description

Constraints

Operand constraints (see OperandConstraint enum).

Flags

These are flags from the MCOI::OperandFlags enum.

OperandType

Information about the type of the operand.

RegClass

Register class of this operand, or a hardware‐mode lookup index.

Created with MrDocs