|
LLVM 24.0.0git
|
This holds information about one operand of a machine instruction, indicating the register class for register operands, etc. More...
#include "llvm/MC/MCInstrDesc.h"
Public Member Functions | |
| bool | isLookupRegClassByHwMode () const |
| Set if this operand is a value that requires the current hwmode to look up its register class. | |
| bool | isPredicate () const |
| Set if this is one of the operands that made up of the predicate operand that controls an isPredicable() instruction. | |
| bool | isOptionalDef () const |
| Set if this operand is a optional def. | |
| bool | isBranchTarget () const |
| Set if this operand is a branch target. | |
| bool | isGenericType () const |
| unsigned | getGenericTypeIndex () const |
| bool | isGenericImm () const |
| unsigned | getGenericImmIndex () const |
Public Attributes | |
| int16_t | RegClass |
| This specifies the register class enumeration of the operand if the operand is a register. | |
| uint8_t | Flags |
| These are flags from the MCOI::OperandFlags enum. | |
| uint8_t | OperandType |
| Information about the type of the operand. | |
| uint16_t | Constraints |
| Operand constraints (see OperandConstraint enum). | |
This holds information about one operand of a machine instruction, indicating the register class for register operands, etc.
Definition at line 88 of file MCInstrDesc.h.
|
inline |
Definition at line 136 of file MCInstrDesc.h.
References assert(), isGenericImm(), llvm::MCOI::OPERAND_FIRST_GENERIC_IMM, and OperandType.
|
inline |
Definition at line 126 of file MCInstrDesc.h.
References assert(), isGenericType(), llvm::MCOI::OPERAND_FIRST_GENERIC, and OperandType.
|
inline |
Set if this operand is a branch target.
Definition at line 119 of file MCInstrDesc.h.
References llvm::MCOI::BranchTarget, and Flags.
|
inline |
Definition at line 131 of file MCInstrDesc.h.
References llvm::MCOI::OPERAND_FIRST_GENERIC_IMM, llvm::MCOI::OPERAND_LAST_GENERIC_IMM, and OperandType.
Referenced by getGenericImmIndex().
|
inline |
Definition at line 121 of file MCInstrDesc.h.
References llvm::MCOI::OPERAND_FIRST_GENERIC, llvm::MCOI::OPERAND_LAST_GENERIC, and OperandType.
Referenced by getGenericTypeIndex().
|
inline |
Set if this operand is a value that requires the current hwmode to look up its register class.
Definition at line 107 of file MCInstrDesc.h.
References Flags, and llvm::MCOI::LookupRegClassByHwMode.
|
inline |
Set if this operand is a optional def.
Definition at line 116 of file MCInstrDesc.h.
References Flags, and llvm::MCOI::OptionalDef.
|
inline |
Set if this is one of the operands that made up of the predicate operand that controls an isPredicable() instruction.
Definition at line 113 of file MCInstrDesc.h.
References Flags, and llvm::MCOI::Predicate.
| uint16_t llvm::MCOperandInfo::Constraints |
Operand constraints (see OperandConstraint enum).
Definition at line 103 of file MCInstrDesc.h.
| uint8_t llvm::MCOperandInfo::Flags |
These are flags from the MCOI::OperandFlags enum.
Definition at line 97 of file MCInstrDesc.h.
Referenced by isBranchTarget(), isLookupRegClassByHwMode(), isOptionalDef(), and isPredicate().
| uint8_t llvm::MCOperandInfo::OperandType |
Information about the type of the operand.
Definition at line 100 of file MCInstrDesc.h.
Referenced by llvm::AMDGPUDisassembler::decodeLiteralConstant(), getGenericImmIndex(), getGenericTypeIndex(), isGenericImm(), isGenericType(), llvm::SIInstrInfo::isLegalToSwap(), and isPKF32InstrReplicatesLower32BitsOfScalarOperand().
| int16_t llvm::MCOperandInfo::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.
Definition at line 94 of file MCInstrDesc.h.
Referenced by llvm::SIInstrInfo::isLegalToSwap().