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
- public unsigned int getGenericImmIndex() const
- public unsigned int getGenericTypeIndex() const
- public bool isBranchTarget() const
- public bool isGenericImm() const
- public bool isGenericType() const
- public bool isLookupPtrRegClass() const
- public bool isOptionalDef() const
- public bool isPredicate() const
Methods
¶unsigned int getGenericImmIndex() const
unsigned int getGenericImmIndex() const
Declared at: llvm/include/llvm/MC/MCInstrDesc.h:132
¶unsigned int getGenericTypeIndex() const
unsigned int getGenericTypeIndex() const
Declared at: llvm/include/llvm/MC/MCInstrDesc.h:122
¶bool isBranchTarget() const
bool isBranchTarget() const
Description
Set if this operand is a branch target.
Declared at: llvm/include/llvm/MC/MCInstrDesc.h:115
¶bool isGenericImm() const
bool isGenericImm() const
Declared at: llvm/include/llvm/MC/MCInstrDesc.h:127
¶bool isGenericType() const
bool isGenericType() const
Declared at: llvm/include/llvm/MC/MCInstrDesc.h:117
¶bool isLookupPtrRegClass() const
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
bool isOptionalDef() const
Description
Set if this operand is a optional def.
Declared at: llvm/include/llvm/MC/MCInstrDesc.h:112
¶bool isPredicate() const
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