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

getGenericTypeIndex

isBranchTarget

Set if this operand is a branch target.

isGenericImm

isGenericType

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

This specifies the register class enumeration of the operand if the operand is a register. If LookupRegClassByHwMode is set, then this is an index into a table in TargetInstrInfo or MCInstrInfo which contains the real register class ID.

Created with MrDocs