LLVM  8.0.0svn
llvm::MCInstrDesc Class Reference

Describe properties that are true of each instruction in the target description file. More...

#include "llvm/MC/MCInstrDesc.h"

Collaboration diagram for llvm::MCInstrDesc:
[legend]

## Public Types

using const_opInfo_iterator = const MCOperandInfo *

## Public Member Functions

int getOperandConstraint (unsigned OpNum, MCOI::OperandConstraint Constraint) const
Returns the value of the specific constraint if it is set. More...

bool getDeprecatedInfo (MCInst &MI, const MCSubtargetInfo &STI, std::string &Info) const
Returns true if a certain instruction is deprecated and if so returns the reason in Info. More...

unsigned getOpcode () const
Return the opcode number for this descriptor. More...

unsigned getNumOperands () const
Return the number of declared MachineOperands for this MachineInstruction. More...

const_opInfo_iterator opInfo_begin () const

const_opInfo_iterator opInfo_end () const

iterator_range< const_opInfo_iteratoroperands () const

unsigned getNumDefs () const
Return the number of MachineOperands that are register definitions. More...

uint64_t getFlags () const
Return flags of this instruction. More...

Return true if this instruction can have a variable number of operands. More...

bool hasOptionalDef () const
Set if this instruction has an optional definition, e.g. More...

bool isPseudo () const
Return true if this is a pseudo instruction that doesn't correspond to a real machine instruction. More...

bool isReturn () const
Return true if the instruction is a return. More...

Return true if the instruction is an add instruction. More...

bool isTrap () const
Return true if this instruction is a trap. More...

bool isMoveReg () const
Return true if the instruction is a register to register move. More...

bool isCall () const
Return true if the instruction is a call. More...

bool isBarrier () const
Returns true if the specified instruction stops control flow from executing the instruction immediately following it. More...

bool isTerminator () const
Returns true if this instruction part of the terminator for a basic block. More...

bool isBranch () const
Returns true if this is a conditional, unconditional, or indirect branch. More...

bool isIndirectBranch () const
Return true if this is an indirect branch, such as a branch through a register. More...

bool isConditionalBranch () const
Return true if this is a branch which may fall through to the next instruction or may transfer control flow to some other block. More...

bool isUnconditionalBranch () const
Return true if this is a branch which always transfers control flow to some other block. More...

bool mayAffectControlFlow (const MCInst &MI, const MCRegisterInfo &RI) const
Return true if this is a branch or an instruction which directly writes to the program counter. More...

bool isPredicable () const
Return true if this instruction has a predicate operand that controls execution. More...

bool isCompare () const
Return true if this instruction is a comparison. More...

bool isMoveImmediate () const
Return true if this instruction is a move immediate (including conditional moves) instruction. More...

bool isBitcast () const
Return true if this instruction is a bitcast instruction. More...

bool isSelect () const
Return true if this is a select instruction. More...

bool isNotDuplicable () const
Return true if this instruction cannot be safely duplicated. More...

bool hasDelaySlot () const
Returns true if the specified instruction has a delay slot which must be filled by the code generator. More...

Return true for instructions that can be folded as memory operands in other instructions. More...

bool isRegSequenceLike () const
Return true if this instruction behaves the same way as the generic REG_SEQUENCE instructions. More...

bool isExtractSubregLike () const
Return true if this instruction behaves the same way as the generic EXTRACT_SUBREG instructions. More...

bool isInsertSubregLike () const
Return true if this instruction behaves the same way as the generic INSERT_SUBREG instructions. More...

bool isConvergent () const
Return true if this instruction is convergent. More...

Return true if this instruction could possibly read memory. More...

bool mayStore () const
Return true if this instruction could possibly modify memory. More...

bool hasUnmodeledSideEffects () const
Return true if this instruction has side effects that are not modeled by other flags. More...

bool isCommutable () const
Return true if this may be a 2- or 3-address instruction (of the form "X = op Y, Z, ..."), which produces the same result if Y and Z are exchanged. More...

Return true if this is a 2-address instruction which can be changed into a 3-address instruction if needed. More...

bool usesCustomInsertionHook () const
Return true if this instruction requires custom insertion support when the DAG scheduler is inserting it into a machine basic block. More...

bool hasPostISelHook () const
Return true if this instruction requires adjustment after instruction selection by calling a target hook. More...

bool isRematerializable () const
Returns true if this instruction is a candidate for remat. More...

bool isAsCheapAsAMove () const
Returns true if this instruction has the same cost (or less) than a move instruction. More...

bool hasExtraSrcRegAllocReq () const
Returns true if this instruction source operands have special register allocation requirements that are not captured by the operand register classes. More...

Returns true if this instruction def operands have special register allocation requirements that are not captured by the operand register classes. More...

const MCPhysReggetImplicitUses () const
Return a list of registers that are potentially read by any instance of this machine instruction. More...

unsigned getNumImplicitUses () const
Return the number of implicit uses this instruction has. More...

const MCPhysReggetImplicitDefs () const
Return a list of registers that are potentially written by any instance of this machine instruction. More...

unsigned getNumImplicitDefs () const
Return the number of implicit defs this instruct has. More...

bool hasImplicitUseOfPhysReg (unsigned Reg) const
Return true if this instruction implicitly uses the specified physical register. More...

bool hasImplicitDefOfPhysReg (unsigned Reg, const MCRegisterInfo *MRI=nullptr) const
Return true if this instruction implicitly defines the specified physical register. More...

unsigned getSchedClass () const
Return the scheduling class for this instruction. More...

unsigned getSize () const
Return the number of bytes in the encoding of this instruction, or zero if the encoding size cannot be known from the opcode. More...

int findFirstPredOperandIdx () const
Find the index of the first operand in the operand list that is used to represent the predicate. More...

bool hasDefOfPhysReg (const MCInst &MI, unsigned Reg, const MCRegisterInfo &RI) const
Return true if this instruction defines the specified physical register, either explicitly or implicitly. More...

## Public Attributes

unsigned short Opcode

unsigned short NumOperands

unsigned char NumDefs

unsigned char Size

unsigned short SchedClass

uint64_t Flags

uint64_t TSFlags

const MCPhysRegImplicitUses

const MCPhysRegImplicitDefs

const MCOperandInfoOpInfo

int64_t DeprecatedFeature

bool(* ComplexDeprecationInfo )(MCInst &, const MCSubtargetInfo &, std::string &)

## Detailed Description

Describe properties that are true of each instruction in the target description file.

This captures information about side effects, register use and many other things. There is one instance of this struct for each target instruction class, and the MachineInstr class points to this struct directly to describe itself.

Definition at line 163 of file MCInstrDesc.h.

## ◆ const_opInfo_iterator

Definition at line 212 of file MCInstrDesc.h.

## Member Function Documentation

inline

Return true for instructions that can be folded as memory operands in other instructions.

The most common use for this is instructions that are simple loads from memory that don't modify the loaded value in any way, but it can also be used for instructions that can be expressed as constant-pool loads, such as V_SETALLONES on x86, to allow them to be folded when it is beneficial. This should only be set on instructions that return a value in their only virtual register definition.

Definition at line 338 of file MCInstrDesc.h.

## ◆ findFirstPredOperandIdx()

 int llvm::MCInstrDesc::findFirstPredOperandIdx ( ) const
inline

Find the index of the first operand in the operand list that is used to represent the predicate.

It returns -1 if none is found.

Definition at line 580 of file MCInstrDesc.h.

Referenced by instIsBreakpoint(), and llvm::IsCPSRDead< MCInst >().

## ◆ getDeprecatedInfo()

 bool MCInstrDesc::getDeprecatedInfo ( MCInst & MI, const MCSubtargetInfo & STI, std::string & Info ) const

Returns true if a certain instruction is deprecated and if so returns the reason in Info.

Definition at line 22 of file MCInstrDesc.cpp.

## ◆ getFlags()

 uint64_t llvm::MCInstrDesc::getFlags ( ) const
inline

Return flags of this instruction.

Definition at line 228 of file MCInstrDesc.h.

Referenced by llvm::MachineInstr::hasProperty().

## ◆ getImplicitDefs()

 const MCPhysReg* llvm::MCInstrDesc::getImplicitDefs ( ) const
inline

Return a list of registers that are potentially written by any instance of this machine instruction.

For example, on X86, many instructions implicitly set the flags register. In this case, they are marked as setting the FLAGS. Likewise, many instructions always deposit their result in a physical register. For example, the X86 divide instruction always deposits the quotient and remainder in the EAX/EDX registers. For that instruction, this will return a list containing the EAX/EDX/EFLAGS registers.

This method returns null if the instruction has no implicit defs.

Definition at line 540 of file MCInstrDesc.h.

## ◆ getImplicitUses()

 const MCPhysReg* llvm::MCInstrDesc::getImplicitUses ( ) const
inline

Return a list of registers that are potentially read by any instance of this machine instruction.

For example, on X86, the "adc" instruction adds two register operands and adds the carry bit in from the flags register. In this case, the instruction is marked as implicitly reading the flags. Likewise, the variable shift instruction on X86 is marked as implicitly reading the 'CL' register, which it always does.

This method returns null if the instruction has no implicit uses.

Definition at line 518 of file MCInstrDesc.h.

## ◆ getNumDefs()

 unsigned llvm::MCInstrDesc::getNumDefs ( ) const
inline

## ◆ getNumImplicitDefs()

 unsigned llvm::MCInstrDesc::getNumImplicitDefs ( ) const
inline

Return the number of implicit defs this instruct has.

Definition at line 543 of file MCInstrDesc.h.

## ◆ getNumImplicitUses()

 unsigned llvm::MCInstrDesc::getNumImplicitUses ( ) const
inline

Return the number of implicit uses this instruction has.

Definition at line 521 of file MCInstrDesc.h.

## ◆ getNumOperands()

 unsigned llvm::MCInstrDesc::getNumOperands ( ) const
inline

## ◆ getOpcode()

 unsigned llvm::MCInstrDesc::getOpcode ( ) const
inline

## ◆ getOperandConstraint()

 int llvm::MCInstrDesc::getOperandConstraint ( unsigned OpNum, MCOI::OperandConstraint Constraint ) const
inline

Returns the value of the specific constraint if it is set.

Returns -1 if it is not set.

Definition at line 187 of file MCInstrDesc.h.

References llvm::MCOperandInfo::Constraints, and MI.

## ◆ getSchedClass()

 unsigned llvm::MCInstrDesc::getSchedClass ( ) const
inline

## ◆ getSize()

 unsigned llvm::MCInstrDesc::getSize ( ) const
inline

Return the number of bytes in the encoding of this instruction, or zero if the encoding size cannot be known from the opcode.

Definition at line 575 of file MCInstrDesc.h.

References Size.

## ◆ hasDefOfPhysReg()

 bool MCInstrDesc::hasDefOfPhysReg ( const MCInst & MI, unsigned Reg, const MCRegisterInfo & RI ) const

Return true if this instruction defines the specified physical register, either explicitly or implicitly.

Definition at line 63 of file MCInstrDesc.cpp.

Referenced by mayAffectControlFlow().

## ◆ hasDelaySlot()

 bool llvm::MCInstrDesc::hasDelaySlot ( ) const
inline

Returns true if the specified instruction has a delay slot which must be filled by the code generator.

Definition at line 329 of file MCInstrDesc.h.

References llvm::MCID::DelaySlot.

Referenced by countMCSymbolRefExpr(), and nextReg().

inline

Returns true if this instruction def operands have special register allocation requirements that are not captured by the operand register classes.

e.g. ARM::LDRD's two def registers must be an even / odd pair, ARM::LDM registers have to be in ascending order. Post-register allocation passes should not attempt to change allocations for definitions of instructions with this flag.

Definition at line 506 of file MCInstrDesc.h.

## ◆ hasExtraSrcRegAllocReq()

 bool llvm::MCInstrDesc::hasExtraSrcRegAllocReq ( ) const
inline

Returns true if this instruction source operands have special register allocation requirements that are not captured by the operand register classes.

e.g. ARM::STRD's two source registers must be an even / odd pair, ARM::STM registers have to be in ascending order. Post-register allocation passes should not attempt to change allocations for sources of instructions with this flag.

Definition at line 496 of file MCInstrDesc.h.

References llvm::MCID::ExtraSrcRegAllocReq.

## ◆ hasImplicitDefOfPhysReg()

 bool MCInstrDesc::hasImplicitDefOfPhysReg ( unsigned Reg, const MCRegisterInfo * MRI = nullptr ) const

Return true if this instruction implicitly defines the specified physical register.

Definition at line 54 of file MCInstrDesc.cpp.

References ImplicitDefs, and llvm::MCRegisterInfo::isSubRegister().

## ◆ hasImplicitUseOfPhysReg()

 bool llvm::MCInstrDesc::hasImplicitUseOfPhysReg ( unsigned Reg ) const
inline

Return true if this instruction implicitly uses the specified physical register.

Definition at line 554 of file MCInstrDesc.h.

References MRI, and Reg.

Referenced by llvm::X86InstrInfo::getOutliningType().

## ◆ hasOptionalDef()

 bool llvm::MCInstrDesc::hasOptionalDef ( ) const
inline

Set if this instruction has an optional definition, e.g.

ARM instructions which can set condition code if 's' bit is set.

Definition at line 238 of file MCInstrDesc.h.

References llvm::MCID::HasOptionalDef.

## ◆ hasPostISelHook()

 bool llvm::MCInstrDesc::hasPostISelHook ( ) const
inline

Return true if this instruction requires adjustment after instruction selection by calling a target hook.

For example, this can be used to fill in ARM 's' optional operand depending on whether the conditional flag register is used.

Definition at line 467 of file MCInstrDesc.h.

References llvm::MCID::HasPostISelHook.

## ◆ hasUnmodeledSideEffects()

 bool llvm::MCInstrDesc::hasUnmodeledSideEffects ( ) const
inline

Return true if this instruction has side effects that are not modeled by other flags.

This does not return true for instructions whose effects are captured by:

1. Their operand list and implicit definition/use list. Register use/def info is explicit for instructions.
3. Calling, branching, returning: use isCall/isReturn/isBranch.

Examples of side effects would be modifying 'invisible' machine state like a control register, flushing a cache, modifying a register invisible to LLVM, etc.

Definition at line 413 of file MCInstrDesc.h.

References llvm::MCID::UnmodeledSideEffects.

inline

Return true if the instruction is an add instruction.

Definition at line 248 of file MCInstrDesc.h.

Referenced by llvm::createHexagonHardwareLoops(), and isImmValidForOpcode().

## ◆ isAsCheapAsAMove()

 bool llvm::MCInstrDesc::isAsCheapAsAMove ( ) const
inline

Returns true if this instruction has the same cost (or less) than a move instruction.

This is useful during certain types of optimizations (e.g., remat during two-address conversion or machine licm) where we would like to remat or hoist the instruction, but not if it costs more than moving the instruction into the appropriate register. Note, we are not marking copies from and to the same register class with this flag.

This method could be called by interface TargetInstrInfo::isAsCheapAsAMove for different subtargets.

Definition at line 488 of file MCInstrDesc.h.

References llvm::MCID::CheapAsAMove.

## ◆ isBarrier()

 bool llvm::MCInstrDesc::isBarrier ( ) const
inline

Returns true if the specified instruction stops control flow from executing the instruction immediately following it.

Examples include unconditional branches and return instructions.

Definition at line 262 of file MCInstrDesc.h.

References llvm::MCID::Barrier.

## ◆ isBitcast()

 bool llvm::MCInstrDesc::isBitcast ( ) const
inline

Return true if this instruction is a bitcast instruction.

Definition at line 317 of file MCInstrDesc.h.

References llvm::MCID::Bitcast.

## ◆ isBranch()

 bool llvm::MCInstrDesc::isBranch ( ) const
inline

Returns true if this is a conditional, unconditional, or indirect branch.

Predicates below can be used to discriminate between these cases, and the TargetInstrInfo::AnalyzeBranch method can be used to get more information.

Definition at line 276 of file MCInstrDesc.h.

References llvm::MCID::Branch.

## ◆ isCall()

 bool llvm::MCInstrDesc::isCall ( ) const
inline

Return true if the instruction is a call.

Definition at line 257 of file MCInstrDesc.h.

References llvm::MCID::Call.

## ◆ isCommutable()

 bool llvm::MCInstrDesc::isCommutable ( ) const
inline

Return true if this may be a 2- or 3-address instruction (of the form "X = op Y, Z, ..."), which produces the same result if Y and Z are exchanged.

If this flag is set, then the TargetInstrInfo::commuteInstruction method may be used to hack on the instruction.

Note that this flag may be set on instructions that are only commutable sometimes. In these cases, the call to commuteInstruction will fail. Also note that some instructions require non-trivial modification to commute them.

Definition at line 431 of file MCInstrDesc.h.

References llvm::MCID::Commutable.

## ◆ isCompare()

 bool llvm::MCInstrDesc::isCompare ( ) const
inline

Return true if this instruction is a comparison.

Definition at line 310 of file MCInstrDesc.h.

References llvm::MCID::Compare.

Referenced by getNewValueJumpOpcode().

## ◆ isConditionalBranch()

 bool llvm::MCInstrDesc::isConditionalBranch ( ) const
inline

Return true if this is a branch which may fall through to the next instruction or may transfer control flow to some other block.

Definition at line 286 of file MCInstrDesc.h.

References isBranch().

Referenced by parseCondBranch().

## ◆ isConvergent()

 bool llvm::MCInstrDesc::isConvergent ( ) const
inline

Return true if this instruction is convergent.

Definition at line 384 of file MCInstrDesc.h.

References llvm::MCID::Convergent.

inline

Return true if this is a 2-address instruction which can be changed into a 3-address instruction if needed.

Doing this transformation can be profitable in the register allocator, because it means that the instruction can use a 2-address form if possible, but degrade into a less efficient form if the source and dest register cannot be assigned to the same register. For example, this allows the x86 backend to turn a "shl reg, 3" instruction into an LEA instruction, which is the same speed as the shift but has bigger code size.

If this returns true, then the target must implement the TargetInstrInfo::convertToThreeAddress method for this instruction, which is allowed to fail if the transformation isn't valid for this specific instruction (e.g. shl reg, 4 on x86).

Definition at line 447 of file MCInstrDesc.h.

## ◆ isExtractSubregLike()

 bool llvm::MCInstrDesc::isExtractSubregLike ( ) const
inline

Return true if this instruction behaves the same way as the generic EXTRACT_SUBREG instructions.

E.g., on ARM, rX, rY VMOVRRD dZ is equivalent to two EXTRACT_SUBREG: rX = EXTRACT_SUBREG dZ, ssub_0 rY = EXTRACT_SUBREG dZ, ssub_1

Note that for the optimizers to be able to take advantage of this property, TargetInstrInfo::getExtractSubregLikeInputs has to be override accordingly.

Definition at line 363 of file MCInstrDesc.h.

References llvm::MCID::ExtractSubreg.

## ◆ isIndirectBranch()

 bool llvm::MCInstrDesc::isIndirectBranch ( ) const
inline

Return true if this is an indirect branch, such as a branch through a register.

Definition at line 280 of file MCInstrDesc.h.

References llvm::MCID::IndirectBranch.

Referenced by llvm::IsCPSRDead< MCInst >(), and mayAffectControlFlow().

## ◆ isInsertSubregLike()

 bool llvm::MCInstrDesc::isInsertSubregLike ( ) const
inline

Return true if this instruction behaves the same way as the generic INSERT_SUBREG instructions.

E.g., on ARM, dX = VSETLNi32 dY, rZ, Imm is equivalent to a INSERT_SUBREG: dX = INSERT_SUBREG dY, rZ, translateImmToSubIdx(Imm)

Note that for the optimizers to be able to take advantage of this property, TargetInstrInfo::getInsertSubregLikeInputs has to be override accordingly.

Definition at line 377 of file MCInstrDesc.h.

References llvm::MCID::InsertSubreg.

## ◆ isMoveImmediate()

 bool llvm::MCInstrDesc::isMoveImmediate ( ) const
inline

Return true if this instruction is a move immediate (including conditional moves) instruction.

Definition at line 314 of file MCInstrDesc.h.

References llvm::MCID::MoveImm.

## ◆ isMoveReg()

 bool llvm::MCInstrDesc::isMoveReg ( ) const
inline

Return true if the instruction is a register to register move.

Definition at line 254 of file MCInstrDesc.h.

References llvm::MCID::MoveReg.

## ◆ isNotDuplicable()

 bool llvm::MCInstrDesc::isNotDuplicable ( ) const
inline

Return true if this instruction cannot be safely duplicated.

For example, if the instruction has a unique labels attached to it, duplicating it would cause multiple definition errors.

Definition at line 325 of file MCInstrDesc.h.

References llvm::MCID::NotDuplicable.

## ◆ isPredicable()

 bool llvm::MCInstrDesc::isPredicable ( ) const
inline

Return true if this instruction has a predicate operand that controls execution.

It may be set to 'always', or may be set to other values. There are various methods in TargetInstrInfo that can be used to control and modify the predicate in this instruction.

Definition at line 307 of file MCInstrDesc.h.

References llvm::MCID::Predicable.

## ◆ isPseudo()

 bool llvm::MCInstrDesc::isPseudo ( ) const
inline

Return true if this is a pseudo instruction that doesn't correspond to a real machine instruction.

Definition at line 242 of file MCInstrDesc.h.

References llvm::MCID::Pseudo.

## ◆ isRegSequenceLike()

 bool llvm::MCInstrDesc::isRegSequenceLike ( ) const
inline

Return true if this instruction behaves the same way as the generic REG_SEQUENCE instructions.

E.g., on ARM, dX VMOVDRR rY, rZ is equivalent to dX = REG_SEQUENCE rY, ssub_0, rZ, ssub_1.

Note that for the optimizers to be able to take advantage of this property, TargetInstrInfo::getRegSequenceLikeInputs has to be override accordingly.

Definition at line 350 of file MCInstrDesc.h.

References llvm::MCID::RegSequence.

## ◆ isRematerializable()

 bool llvm::MCInstrDesc::isRematerializable ( ) const
inline

Returns true if this instruction is a candidate for remat.

This flag is only used in TargetInstrInfo method isTriviallyRematerializable.

If this flag is set, the isReallyTriviallyReMaterializable() or isReallyTriviallyReMaterializableGeneric methods are called to verify the instruction is really rematable.

Definition at line 475 of file MCInstrDesc.h.

References llvm::MCID::Rematerializable.

Referenced by llvm::TargetInstrInfo::isTriviallyReMaterializable().

## ◆ isReturn()

 bool llvm::MCInstrDesc::isReturn ( ) const
inline

Return true if the instruction is a return.

Definition at line 245 of file MCInstrDesc.h.

References llvm::MCID::Return.

## ◆ isSelect()

 bool llvm::MCInstrDesc::isSelect ( ) const
inline

Return true if this is a select instruction.

Definition at line 320 of file MCInstrDesc.h.

References llvm::MCID::Select.

Referenced by llvm::TargetInstrInfo::analyzeSelect().

## ◆ isTerminator()

 bool llvm::MCInstrDesc::isTerminator ( ) const
inline

Returns true if this instruction part of the terminator for a basic block.

Typically this is things like return and branch instructions.

Various passes use this to insert code into the bottom of a basic block, but before control flow occurs.

Definition at line 270 of file MCInstrDesc.h.

References llvm::MCID::Terminator.

## ◆ isTrap()

 bool llvm::MCInstrDesc::isTrap ( ) const
inline

Return true if this instruction is a trap.

Definition at line 251 of file MCInstrDesc.h.

References llvm::MCID::Trap.

## ◆ isUnconditionalBranch()

 bool llvm::MCInstrDesc::isUnconditionalBranch ( ) const
inline

Return true if this is a branch which always transfers control flow to some other block.

Definition at line 294 of file MCInstrDesc.h.

References isBranch().

inline

Return true if this instruction can have a variable number of operands.

In this case, the variable operands will be after the normal operands but before the implicit definitions and uses (if any are present).

Definition at line 234 of file MCInstrDesc.h.

## ◆ mayAffectControlFlow()

 bool MCInstrDesc::mayAffectControlFlow ( const MCInst & MI, const MCRegisterInfo & RI ) const

Return true if this is a branch or an instruction which directly writes to the program counter.

Considered 'may' affect rather than 'does' affect as things like predication are not taken into account.

Definition at line 33 of file MCInstrDesc.cpp.

inline

Return true if this instruction could possibly read memory.

Instructions with this flag set are not necessarily simple load instructions, they may load a value and modify it, for example.

Definition at line 393 of file MCInstrDesc.h.

## ◆ mayStore()

 bool llvm::MCInstrDesc::mayStore ( ) const
inline

Return true if this instruction could possibly modify memory.

Instructions with this flag set are not necessarily simple store instructions, they may store a modified value based on their operands, or may not actually modify anything, for example.

Definition at line 399 of file MCInstrDesc.h.

References llvm::MCID::MayStore.

## ◆ operands()

 iterator_range llvm::MCInstrDesc::operands ( ) const
inline

Definition at line 217 of file MCInstrDesc.h.

References llvm::make_range().

## ◆ opInfo_begin()

 const_opInfo_iterator llvm::MCInstrDesc::opInfo_begin ( ) const
inline

Definition at line 214 of file MCInstrDesc.h.

Referenced by llvm::LegalizerInfo::verify().

## ◆ opInfo_end()

 const_opInfo_iterator llvm::MCInstrDesc::opInfo_end ( ) const
inline

Definition at line 215 of file MCInstrDesc.h.

Referenced by llvm::LegalizerInfo::verify().

## ◆ usesCustomInsertionHook()

 bool llvm::MCInstrDesc::usesCustomInsertionHook ( ) const
inline

Return true if this instruction requires custom insertion support when the DAG scheduler is inserting it into a machine basic block.

If this is true for the instruction, it basically means that it is a pseudo instruction used at SelectionDAG time that is expanded out into magic code by the target when MachineInstrs are formed.

If this is true, the TargetLoweringInfo::InsertAtEndOfBasicBlock method is used to insert this into the MachineBasicBlock.

Definition at line 459 of file MCInstrDesc.h.

References llvm::MCID::UsesCustomInserter.

## ◆ ComplexDeprecationInfo

 bool(* llvm::MCInstrDesc::ComplexDeprecationInfo) (MCInst &, const MCSubtargetInfo &, std::string &)

Definition at line 182 of file MCInstrDesc.h.

Referenced by getDeprecatedInfo().

## ◆ DeprecatedFeature

 int64_t llvm::MCInstrDesc::DeprecatedFeature

Definition at line 178 of file MCInstrDesc.h.

Referenced by getDeprecatedInfo().

## ◆ Flags

 uint64_t llvm::MCInstrDesc::Flags

Definition at line 170 of file MCInstrDesc.h.

## ◆ ImplicitUses

 const MCPhysReg* llvm::MCInstrDesc::ImplicitUses

Definition at line 172 of file MCInstrDesc.h.

## ◆ NumDefs

 unsigned char llvm::MCInstrDesc::NumDefs

Definition at line 167 of file MCInstrDesc.h.

Referenced by hasDefOfPhysReg(), and llvm::X86InstrInfo::unfoldMemoryOperand().

## ◆ NumOperands

 unsigned short llvm::MCInstrDesc::NumOperands

## ◆ Opcode

 unsigned short llvm::MCInstrDesc::Opcode

Definition at line 165 of file MCInstrDesc.h.

## ◆ SchedClass

 unsigned short llvm::MCInstrDesc::SchedClass

Definition at line 169 of file MCInstrDesc.h.

## ◆ Size

 unsigned char llvm::MCInstrDesc::Size

Definition at line 168 of file MCInstrDesc.h.

## ◆ TSFlags

The documentation for this class was generated from the following files: