|
LLVM 24.0.0git
|
MachineOperand class - Representation of each machine instruction operand. More...
#include "llvm/CodeGen/MachineOperand.h"
Public Types | |
| enum | MachineOperandType : unsigned char { MO_Register , MO_Immediate , MO_CImmediate , MO_FPImmediate , MO_MachineBasicBlock , MO_FrameIndex , MO_ConstantPoolIndex , MO_TargetIndex , MO_JumpTableIndex , MO_ExternalSymbol , MO_GlobalAddress , MO_BlockAddress , MO_RegisterMask , MO_RegisterLiveOut , MO_Metadata , MO_MCSymbol , MO_CFIIndex , MO_IntrinsicID , MO_Predicate , MO_ShuffleMask , MO_DbgInstrRef , MO_LaneMask , MO_Last = MO_LaneMask } |
Public Member Functions | |
| MachineOperandType | getType () const |
| getType - Returns the MachineOperandType for this operand. | |
| unsigned | getTargetFlags () const |
| void | setTargetFlags (unsigned F) |
| void | addTargetFlag (unsigned F) |
| MachineInstr * | getParent () |
| getParent - Return the instruction that this operand belongs to. | |
| const MachineInstr * | getParent () const |
| void | clearParent () |
| clearParent - Reset the parent pointer. | |
| LLVM_ABI unsigned | getOperandNo () const |
| Returns the index of this operand in the instruction that it belongs to. | |
| LLVM_ABI void | print (raw_ostream &os, const TargetRegisterInfo *TRI=nullptr) const |
Print the MachineOperand to os. | |
| LLVM_ABI void | print (raw_ostream &os, ModuleSlotTracker &MST, LLT TypeToPrint, std::optional< unsigned > OpIdx, bool PrintDef, bool IsStandalone, bool ShouldPrintRegisterTies, unsigned TiedOperandIdx, const TargetRegisterInfo *TRI) const |
| More complex way of printing a MachineOperand. | |
| LLVM_ABI void | print (raw_ostream &os, LLT TypeToPrint, const TargetRegisterInfo *TRI=nullptr) const |
| Same as print(os, TRI), but allows to specify the low-level type to be printed the same way the full version of print(...) does it. | |
| LLVM_ABI void | dump () const |
| bool | isReg () const |
| isReg - Tests if this is a MO_Register operand. | |
| bool | isImm () const |
| isImm - Tests if this is a MO_Immediate operand. | |
| bool | isCImm () const |
| isCImm - Test if this is a MO_CImmediate operand. | |
| bool | isFPImm () const |
| isFPImm - Tests if this is a MO_FPImmediate operand. | |
| bool | isMBB () const |
| isMBB - Tests if this is a MO_MachineBasicBlock operand. | |
| bool | isFI () const |
| isFI - Tests if this is a MO_FrameIndex operand. | |
| bool | isCPI () const |
| isCPI - Tests if this is a MO_ConstantPoolIndex operand. | |
| bool | isTargetIndex () const |
| isTargetIndex - Tests if this is a MO_TargetIndex operand. | |
| bool | isJTI () const |
| isJTI - Tests if this is a MO_JumpTableIndex operand. | |
| bool | isGlobal () const |
| isGlobal - Tests if this is a MO_GlobalAddress operand. | |
| bool | isSymbol () const |
| isSymbol - Tests if this is a MO_ExternalSymbol operand. | |
| bool | isBlockAddress () const |
| isBlockAddress - Tests if this is a MO_BlockAddress operand. | |
| bool | isRegMask () const |
| isRegMask - Tests if this is a MO_RegisterMask operand. | |
| bool | isRegLiveOut () const |
| isRegLiveOut - Tests if this is a MO_RegisterLiveOut operand. | |
| bool | isMetadata () const |
| isMetadata - Tests if this is a MO_Metadata operand. | |
| bool | isMCSymbol () const |
| bool | isDbgInstrRef () const |
| bool | isCFIIndex () const |
| bool | isIntrinsicID () const |
| bool | isPredicate () const |
| bool | isShuffleMask () const |
| bool | isLaneMask () const |
| Register | getReg () const |
| getReg - Returns the register number. | |
| unsigned | getSubReg () const |
| bool | isUse () const |
| bool | isDef () const |
| bool | isImplicit () const |
| bool | isDead () const |
| bool | isKill () const |
| bool | isUndef () const |
| LLVM_ABI bool | isRenamable () const |
| isRenamable - Returns true if this register may be renamed, i.e. | |
| bool | isInternalRead () const |
| bool | isEarlyClobber () const |
| LLVM_ABI bool | isEarlyClobberDefOrUse () const |
| Return true if this operand is an early-clobber def or a use tied to one. | |
| bool | isTied () const |
| bool | isDebug () const |
| bool | readsReg () const |
| readsReg - Returns true if this operand reads the previous value of its register. | |
| bool | isValidExcessOperand () const |
| Return true if this operand can validly be appended to an arbitrary operand list. | |
| LLVM_ABI void | setReg (Register Reg) |
| Change the register this operand corresponds to. | |
| void | setSubReg (unsigned subReg) |
| LLVM_ABI void | substVirtReg (Register Reg, unsigned SubIdx, const TargetRegisterInfo &) |
| substVirtReg - Substitute the current register with the virtual subregister Reg:SubReg. | |
| LLVM_ABI void | substPhysReg (MCRegister Reg, const TargetRegisterInfo &) |
| substPhysReg - Substitute the current register with the physical register Reg, taking any existing SubReg into account. | |
| void | setIsUse (bool Val=true) |
| LLVM_ABI void | setIsDef (bool Val=true) |
| Change a def to a use, or a use to a def. | |
| void | setImplicit (bool Val=true) |
| void | setIsKill (bool Val=true) |
| void | setIsDead (bool Val=true) |
| void | setIsUndef (bool Val=true) |
| LLVM_ABI void | setIsRenamable (bool Val=true) |
| void | setIsInternalRead (bool Val=true) |
| void | setIsEarlyClobber (bool Val=true) |
| void | setIsDebug (bool Val=true) |
| int64_t | getImm () const |
| const ConstantInt * | getCImm () const |
| const ConstantFP * | getFPImm () const |
| MachineBasicBlock * | getMBB () const |
| int | getIndex () const |
| const GlobalValue * | getGlobal () const |
| const BlockAddress * | getBlockAddress () const |
| MCSymbol * | getMCSymbol () const |
| unsigned | getInstrRefInstrIndex () const |
| unsigned | getInstrRefOpIndex () const |
| unsigned | getCFIIndex () const |
| Intrinsic::ID | getIntrinsicID () const |
| unsigned | getPredicate () const |
| ArrayRef< int > | getShuffleMask () const |
| LaneBitmask | getLaneMask () const |
| int64_t | getOffset () const |
| Return the offset from the symbol in this operand. | |
| const char * | getSymbolName () const |
| bool | clobbersPhysReg (MCRegister PhysReg) const |
| clobbersPhysReg - Returns true if this RegMask operand clobbers PhysReg. | |
| const uint32_t * | getRegMask () const |
| getRegMask - Returns a bit mask of registers preserved by this RegMask operand. | |
| const uint32_t * | getRegLiveOut () const |
| getRegLiveOut - Returns a bit mask of live-out registers. | |
| const MDNode * | getMetadata () const |
| void | setImm (int64_t immVal) |
| void | setCImm (const ConstantInt *CI) |
| void | setFPImm (const ConstantFP *CFP) |
| void | setOffset (int64_t Offset) |
| void | setIndex (int Idx) |
| void | setMetadata (const MDNode *MD) |
| void | setInstrRefInstrIndex (unsigned InstrIdx) |
| void | setInstrRefOpIndex (unsigned OpIdx) |
| void | setMBB (MachineBasicBlock *MBB) |
| void | setRegMask (const uint32_t *RegMaskPtr) |
| Sets value of register mask operand referencing Mask. | |
| void | setIntrinsicID (Intrinsic::ID IID) |
| void | setPredicate (unsigned Predicate) |
| LLVM_ABI bool | isIdenticalTo (const MachineOperand &Other) const |
| Returns true if this operand is identical to the specified operand except for liveness related flags (isKill, isUndef and isDead). | |
| LLVM_ABI void | ChangeToImmediate (int64_t ImmVal, unsigned TargetFlags=0) |
| ChangeToImmediate - Replace this operand with a new immediate operand of the specified value. | |
| LLVM_ABI void | ChangeToFPImmediate (const ConstantFP *FPImm, unsigned TargetFlags=0) |
| ChangeToFPImmediate - Replace this operand with a new FP immediate operand of the specified value. | |
| LLVM_ABI void | ChangeToES (const char *SymName, unsigned TargetFlags=0) |
| ChangeToES - Replace this operand with a new external symbol operand. | |
| LLVM_ABI void | ChangeToGA (const GlobalValue *GV, int64_t Offset, unsigned TargetFlags=0) |
| ChangeToGA - Replace this operand with a new global address operand. | |
| LLVM_ABI void | ChangeToBA (const BlockAddress *BA, int64_t Offset, unsigned TargetFlags=0) |
| ChangeToBA - Replace this operand with a new block address operand. | |
| LLVM_ABI void | ChangeToCPI (unsigned Idx, int Offset, unsigned TargetFlags=0) |
| ChangeToCPI - Replace this operand with a new constant pool index operand. | |
| LLVM_ABI void | ChangeToMCSymbol (MCSymbol *Sym, unsigned TargetFlags=0) |
| ChangeToMCSymbol - Replace this operand with a new MC symbol operand. | |
| LLVM_ABI void | ChangeToFrameIndex (int Idx, unsigned TargetFlags=0) |
| Replace this operand with a frame index. | |
| LLVM_ABI void | ChangeToTargetIndex (unsigned Idx, int64_t Offset, unsigned TargetFlags=0) |
| Replace this operand with a target index. | |
| LLVM_ABI void | ChangeToDbgInstrRef (unsigned InstrIdx, unsigned OpIdx, unsigned TargetFlags=0) |
| Replace this operand with an Instruction Reference. | |
| LLVM_ABI void | ChangeToRegister (Register Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false, bool isDebug=false) |
| ChangeToRegister - Replace this operand with a new register operand of the specified value. | |
| LLVM_ABI const char * | getTargetIndexName () const |
| getTargetIndexName - If this MachineOperand is a TargetIndex that has a name, attempt to get the name. | |
Friends | |
| class | MachineInstr |
| class | MachineRegisterInfo |
| struct | DenseMapInfo< MachineOperand > |
| LLVM_ABI friend hash_code | hash_value (const MachineOperand &MO) |
| MachineOperand hash_value overload. | |
MachineOperand class - Representation of each machine instruction operand.
This class isn't a POD type because it has a private constructor, but its destructor must be trivial. Functions like MachineInstr::addOperand(), MachineRegisterInfo::moveOperands(), and MF::DeleteMachineInstr() depend on not having to call the MachineOperand destructor.
Definition at line 49 of file MachineOperand.h.
| Enumerator | |
|---|---|
| MO_Register | Register operand. |
| MO_Immediate | Immediate operand. |
| MO_CImmediate | Immediate >64bit operand. |
| MO_FPImmediate | Floating-point immediate operand. |
| MO_MachineBasicBlock | MachineBasicBlock reference. |
| MO_FrameIndex | Abstract Stack Frame Index. |
| MO_ConstantPoolIndex | |
| MO_TargetIndex | Target-dependent index+offset operand. |
| MO_JumpTableIndex | Address of indexed Jump Table for switch. |
| MO_ExternalSymbol | Name of external global symbol. |
| MO_GlobalAddress | Address of a global value. |
| MO_BlockAddress | Address of a basic block. |
| MO_RegisterMask | Mask of preserved registers. |
| MO_RegisterLiveOut | Mask of live-out registers. |
| MO_Metadata | Metadata reference (for debug info) |
| MO_MCSymbol | MCSymbol reference (for debug/eh info) |
| MO_CFIIndex | MCCFIInstruction index. |
| MO_IntrinsicID | Intrinsic ID for ISel. |
| MO_Predicate | Generic predicate for ISel. |
| MO_ShuffleMask | Other IR Constant for ISel (shuffle masks) |
| MO_DbgInstrRef | Integer indices referring to an instruction+operand. |
| MO_LaneMask | Mask to represent active parts of registers. |
| MO_Last | |
Definition at line 51 of file MachineOperand.h.
|
inline |
Definition at line 240 of file MachineOperand.h.
References assert(), F, and isReg().
Referenced by llvm::HexagonInstrInfo::immediateExtend().
| void MachineOperand::ChangeToBA | ( | const BlockAddress * | BA, |
| int64_t | Offset, | ||
| unsigned | TargetFlags = 0 ) |
ChangeToBA - Replace this operand with a new block address operand.
Definition at line 220 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_BlockAddress, llvm::Offset, setOffset(), and setTargetFlags().
Referenced by overwriteMachineOperandInPlace().
ChangeToCPI - Replace this operand with a new constant pool index operand.
Definition at line 233 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_ConstantPoolIndex, llvm::Offset, setIndex(), setOffset(), and setTargetFlags().
Referenced by overwriteMachineOperandInPlace().
| void MachineOperand::ChangeToDbgInstrRef | ( | unsigned | InstrIdx, |
| unsigned | OpIdx, | ||
| unsigned | TargetFlags = 0 ) |
Replace this operand with an Instruction Reference.
Definition at line 281 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_DbgInstrRef, setInstrRefInstrIndex(), setInstrRefOpIndex(), and setTargetFlags().
ChangeToES - Replace this operand with a new external symbol operand.
Definition at line 194 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_ExternalSymbol, setOffset(), and setTargetFlags().
Referenced by foldAddress().
| void MachineOperand::ChangeToFPImmediate | ( | const ConstantFP * | FPImm, |
| unsigned | TargetFlags = 0 ) |
ChangeToFPImmediate - Replace this operand with a new FP immediate operand of the specified value.
If an operand is known to be an FP immediate already, the setFPImm method should be used.
Definition at line 183 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_FPImmediate, and setTargetFlags().
| void MachineOperand::ChangeToFrameIndex | ( | int | Idx, |
| unsigned | TargetFlags = 0 ) |
Replace this operand with a frame index.
Definition at line 257 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_FrameIndex, setIndex(), and setTargetFlags().
Referenced by swapRegAndNonRegOperand().
| void MachineOperand::ChangeToGA | ( | const GlobalValue * | GV, |
| int64_t | Offset, | ||
| unsigned | TargetFlags = 0 ) |
ChangeToGA - Replace this operand with a new global address operand.
Definition at line 207 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_GlobalAddress, llvm::Offset, setOffset(), and setTargetFlags().
Referenced by foldAddress(), overwriteMachineOperandInPlace(), and swapRegAndNonRegOperand().
| void MachineOperand::ChangeToImmediate | ( | int64_t | ImmVal, |
| unsigned | TargetFlags = 0 ) |
ChangeToImmediate - Replace this operand with a new immediate operand of the specified value.
If an operand is known to be an immediate already, the setImm method should be used.
Definition at line 173 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_Immediate, and setTargetFlags().
Referenced by llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::M68kRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), foldIntoMemoryOps(), llvm::rewriteARMFrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), swapRegAndNonRegOperand(), and llvm::updateDbgValueForSpill().
ChangeToMCSymbol - Replace this operand with a new MC symbol operand.
Definition at line 246 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_MCSymbol, and setTargetFlags().
Referenced by foldAddress(), and overwriteMachineOperandInPlace().
| void MachineOperand::ChangeToRegister | ( | Register | Reg, |
| bool | isDef, | ||
| bool | isImp = false, | ||
| bool | isKill = false, | ||
| bool | isDead = false, | ||
| bool | isUndef = false, | ||
| bool | isDebug = false ) |
ChangeToRegister - Replace this operand with a new register operand of the specified value.
If an operand is known to be an register already, the setReg method should be used.
Definition at line 297 of file MachineOperand.cpp.
References assert(), getMFIfAvailable(), getParent(), isDead(), isDebug(), isDef(), isKill(), isReg(), isUndef(), MachineInstr, MachineRegisterInfo, MI, and MO_Register.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex(), eliminateMove(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::SIRegisterInfo::resolveFrameIndex(), swapRegAndNonRegOperand(), and llvm::X86InstrInfo::unfoldMemoryOperand().
Replace this operand with a target index.
Definition at line 268 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_TargetIndex, llvm::Offset, setIndex(), setOffset(), and setTargetFlags().
|
inline |
clearParent - Reset the parent pointer.
The MachineOperand copy constructor also copies ParentMI, expecting the original to be deleted. If a MachineOperand is ever stored outside a MachineInstr, the parent pointer must be cleared.
Never call clearParent() on an operand in a MachineInstr.
Definition at line 260 of file MachineOperand.h.
|
inlinestatic |
clobbersPhysReg - Returns true if this RegMask clobbers PhysReg.
It is sometimes necessary to detach the register mask pointer from its machine operand. This static method can be used for such detached bit mask pointers.
Definition at line 661 of file MachineOperand.h.
References assert(), llvm::MCRegister::id(), llvm::MCRegister::isPhysical(), and llvm::MCRegister::isValid().
Referenced by llvm::LiveRegUnits::addRegsInMask(), canClobberPhysRegDefs(), canClobberReachingPhysRegUse(), clobbersAllYmmAndZmmRegs(), clobbersPhysReg(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::M68kRegisterInfo::getReservedRegs(), handleRegMaskClobber(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::CallLowering::parametersInCSRMatch(), llvm::TargetLowering::parametersInCSRMatch(), parseOperands(), llvm::PhysicalRegisterUsageInfo::print(), llvm::LivePhysRegs::removeRegsInMask(), llvm::LiveRegUnits::removeRegsNotPreserved(), llvm::LivePhysRegs::stepForward(), and LiveDebugValues::MLocTracker::writeRegMask().
|
inline |
clobbersPhysReg - Returns true if this RegMask operand clobbers PhysReg.
Definition at line 669 of file MachineOperand.h.
References clobbersPhysReg(), and getRegMask().
|
inlinestatic |
Definition at line 932 of file MachineOperand.h.
References MO_BlockAddress, and llvm::Offset.
Referenced by llvm::MachineInstrBuilder::addBlockAddress().
|
inlinestatic |
Definition at line 986 of file MachineOperand.h.
References MO_CFIIndex.
Referenced by llvm::MachineInstrBuilder::addCFIIndex().
|
inlinestatic |
Definition at line 845 of file MachineOperand.h.
References MO_CImmediate.
Referenced by llvm::MachineInstrBuilder::addCImm(), llvm::CSEMIRBuilder::buildConstant(), GetMOForConstDbgOp(), and processSwitchesConstants().
|
inlinestatic |
Definition at line 894 of file MachineOperand.h.
References MO_ConstantPoolIndex, and llvm::Offset.
Referenced by llvm::MachineInstrBuilder::addConstantPoolIndex(), llvm::X86InstrInfo::foldMemoryOperandImpl(), and llvm::XtensaInstrInfo::insertIndirectBranch().
|
inlinestatic |
Definition at line 979 of file MachineOperand.h.
References MO_DbgInstrRef.
Referenced by llvm::InstrEmitter::EmitDbgInstrRef().
|
inlinestatic |
Definition at line 924 of file MachineOperand.h.
References MO_ExternalSymbol.
Referenced by llvm::MachineInstrBuilder::addExternalSymbol(), llvm::LegalizerHelper::createAtomicLibcall(), llvm::LegalizerHelper::createLibcall(), llvm::LegalizerHelper::createMemLibcall(), and getMovOperand().
|
inlinestatic |
Definition at line 889 of file MachineOperand.h.
References MO_FrameIndex.
Referenced by llvm::MachineInstrBuilder::addFrameIndex(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86AddressMode::getFullAddress(), and llvm::FastISel::lowerDbgValue().
|
inlinestatic |
Definition at line 851 of file MachineOperand.h.
References MO_FPImmediate.
Referenced by llvm::MachineInstrBuilder::addFPImm(), llvm::CSEMIRBuilder::buildFConstant(), convertImplicitDefToConstZero(), GetMOForConstDbgOp(), and llvm::SPIRVInlineAsmLowering::lowerAsmOperandForConstraint().
|
inlinestatic |
Definition at line 916 of file MachineOperand.h.
References MO_GlobalAddress, and llvm::Offset.
Referenced by llvm::MachineInstrBuilder::addGlobalAddress(), llvm::InstrEmitter::EmitDbgInstrRef(), llvm::X86AddressMode::getFullAddress(), getMovOperand(), llvm::InlineAsmLowering::lowerAsmOperandForConstraint(), llvm::AMDGPUCallLowering::lowerCall(), llvm::CallLowering::lowerCall(), llvm::AMDGPUCallLowering::lowerChainCall(), and llvm::FastISel::selectPatchpoint().
|
inlinestatic |
Definition at line 839 of file MachineOperand.h.
References MO_Immediate.
Referenced by llvm::MachineInstrBuilder::addImm(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::ARMBaseInstrInfo::analyzeBranch(), llvm::AVRInstrInfo::analyzeBranch(), llvm::HexagonInstrInfo::analyzeBranch(), llvm::LanaiInstrInfo::analyzeBranch(), llvm::MSP430InstrInfo::analyzeBranch(), llvm::PPCInstrInfo::analyzeBranch(), llvm::SystemZInstrInfo::analyzeBranch(), llvm::WebAssemblyInstrInfo::analyzeBranch(), llvm::XCoreInstrInfo::analyzeBranch(), llvm::XtensaInstrInfo::analyzeBranch(), llvm::M68kInstrInfo::AnalyzeBranchImpl(), llvm::SIInstrInfo::analyzeBranchImpl(), llvm::AArch64InstrInfo::analyzeBranchPredicate(), llvm::X86InstrInfo::analyzeBranchPredicate(), llvm::applyDebugifyMetadataToMachineFunction(), llvm::SIInstrInfo::buildExtractSubRegOrImm(), collectOtherInstr(), llvm::X86InstrInfo::commuteInstructionImpl(), convertImplicitDefToConstZero(), llvm::X86InstrInfo::describeLoadedValue(), doubleVL(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), emitSelect(), emitVFROUND_NOEXCEPT_MASK(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86AddressMode::getFullAddress(), llvm::getInlineSpirvType(), GetMOForConstDbgOp(), getMovOperand(), halfVL(), llvm::RISCVLegalizerInfo::legalizeCustom(), llvm::AMDGPULegalizerInfo::legalizeImageIntrinsic(), llvm::InlineAsmLowering::lowerAsmOperandForConstraint(), llvm::RISCVInlineAsmLowering::lowerAsmOperandForConstraint(), parseCondBranch(), parseCondBranch(), parseCondBranch(), parseCondBranch(), parseCondBranch(), parseCondBranch(), llvm::predOps(), llvm::XtensaInstrInfo::removeBranch(), llvm::WebAssemblyInstrInfo::reverseBranchCondition(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::HexagonInstrInfo::setBundleNoShuf(), and llvm::RISCVInstrInfo::simplifyInstruction().
|
inlinestatic |
Definition at line 992 of file MachineOperand.h.
References MO_IntrinsicID.
Referenced by llvm::MachineInstrBuilder::addIntrinsicID().
|
inlinestatic |
Definition at line 910 of file MachineOperand.h.
References MO_JumpTableIndex.
Referenced by llvm::MachineInstrBuilder::addJumpTableIndex(), and getMovOperand().
|
inlinestatic |
Definition at line 1010 of file MachineOperand.h.
References MO_LaneMask.
Referenced by llvm::MachineInstrBuilder::addLaneMask().
|
inlinestatic |
Definition at line 882 of file MachineOperand.h.
References MBB, and MO_MachineBasicBlock.
Referenced by llvm::MachineInstrBuilder::addMBB(), llvm::PeelingModuloScheduleExpander::peelPrologAndEpilogs(), processBlockAddr(), and splitEdge().
|
inlinestatic |
Definition at line 970 of file MachineOperand.h.
References MO_MCSymbol.
Referenced by llvm::MachineInstrBuilder::addSym(), llvm::MipsTargetLowering::AdjustInstrPostInstrSelection(), getMovOperand(), and runQCRelaxMarking().
|
inlinestatic |
Definition at line 964 of file MachineOperand.h.
References MO_Metadata.
Referenced by llvm::MachineInstrBuilder::addMetadata().
|
inlinestatic |
Definition at line 998 of file MachineOperand.h.
References MO_Predicate, and Pred.
Referenced by llvm::MachineInstrBuilder::addPredicate().
|
inlinestatic |
Definition at line 857 of file MachineOperand.h.
References assert(), isDead(), isDebug(), isDef(), isEarlyClobber(), isInternalRead(), isKill(), isRenamable(), isUndef(), MO_Register, and Reg.
Referenced by addConstantsToTrack(), llvm::MachineInstr::addImplicitDefUseOperands(), llvm::SITargetLowering::AddMemOpInit(), llvm::GISelInstProfileBuilder::addNodeIDRegType(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterKilled(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::RISCVTargetLowering::AdjustInstrPostInstrSelection(), llvm::PPCInstrInfo::analyzeBranch(), llvm::R600InstrInfo::analyzeBranch(), llvm::SIInstrInfo::buildExtractSubRegOrImm(), llvm::condCodeOp(), llvm::SIInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), createCallWithOps(), llvm::MipsInstrInfo::describeLoadedValue(), llvm::TargetInstrInfo::describeLoadedValue(), describeMOVrrLoadedValue(), describeORRLoadedValue(), llvm::InstrEmitter::EmitDbgInstrRef(), llvm::AArch64TargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::RISCVTargetLowering::EmitInstrWithCustomInserter(), LiveDebugValues::MLocTracker::emitLoc(), llvm::HexagonFrameLowering::emitPrologue(), emitVFROUND_NOEXCEPT_MASK(), emitWriteRoundingMode(), llvm::SIInstrInfo::enforceOperandRCAlignment(), llvm::X86InstrInfo::foldMemoryOperandImpl(), for(), llvm::X86AddressMode::getFullAddress(), llvm::SIInstrInfo::getImmOrMaterializedImm(), llvm::getInlineSpirvType(), GetMOForConstDbgOp(), imposeStackOrdering(), INITIALIZE_PASS(), legalizeElementwiseIntrinsic(), llvm::AArch64CallLowering::lowerCall(), llvm::CallLowering::lowerCall(), llvm::AMDGPUCallLowering::lowerChainCall(), llvm::FastISel::lowerDbgDeclare(), llvm::FastISel::lowerDbgValue(), lowerWaveReduce(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::PeelingModuloScheduleExpander::peelPrologAndEpilogs(), llvm::predOps(), TransferTracker::recoverAsEntryValue(), llvm::rewriteT2FrameIndex(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::FastISel::selectXRayCustomEvent(), llvm::FastISel::selectXRayTypedEvent(), llvm::t1CondCodeOp(), and llvm::tryFoldSPUpdateIntoPushPop().
|
inlinestatic |
Definition at line 958 of file MachineOperand.h.
References assert(), and MO_RegisterLiveOut.
|
inlinestatic |
CreateRegMask - Creates a register mask operand referencing Mask.
The operand does not take ownership of the memory referenced by Mask, it must remain valid for the lifetime of the operand.
A RegMask operand represents a set of non-clobbered physical registers on an instruction that clobbers many registers, typically a call. The bit mask has a bit set for each physreg that is preserved by this instruction, as described in the documentation for TargetRegisterInfo::getCallPreservedMask().
Any physreg with a 0 bit in the mask is clobbered by the instruction.
Definition at line 952 of file MachineOperand.h.
References assert(), and MO_RegisterMask.
Referenced by llvm::MachineInstrBuilder::addRegMask(), and llvm::FastISel::selectPatchpoint().
|
inlinestatic |
Definition at line 1004 of file MachineOperand.h.
References MO_ShuffleMask.
Referenced by llvm::MachineInstrBuilder::addShuffleMask().
|
inlinestatic |
Definition at line 902 of file MachineOperand.h.
References MO_TargetIndex, and llvm::Offset.
Referenced by llvm::MachineInstrBuilder::addTargetIndex().
| LLVM_DUMP_METHOD void MachineOperand::dump | ( | ) | const |
Definition at line 1138 of file MachineOperand.cpp.
References llvm::dbgs(), and LLVM_DUMP_METHOD.
Referenced by rescheduleCanonically().
|
inline |
Definition at line 597 of file MachineOperand.h.
References assert(), and isBlockAddress().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::LanaiMCInstLower::GetBlockAddressSymbol(), llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::SystemZMCInstLower::getExpr(), llvm::DenseMapInfo< MemOpKey >::getHashValue(), getMCSymbolForTOCPseudoMO(), llvm::hash_value(), isIdenticalTo(), isSimilarDispOp(), llvm::lowerLoongArchMachineOperandToMCOperand(), llvm::M68kMCInstLower::LowerOperand(), LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::XtensaAsmPrinter::LowerSymbolOperand(), overwriteMachineOperandInPlace(), print(), llvm::M68kAsmPrinter::PrintAsmMemoryOperand(), llvm::CSKYAsmPrinter::PrintAsmOperand(), llvm::BPFAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), and processBlockAddr().
|
inline |
Definition at line 617 of file MachineOperand.h.
References assert(), and isCFIIndex().
Referenced by llvm::hash_value(), isIdenticalTo(), print(), and llvm::stableHashValue().
|
inline |
Definition at line 571 of file MachineOperand.h.
References assert(), and isCImm().
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::buildEnqueueKernel(), llvm::GIMatchTableExecutor::executeMatchTable(), generateAssignInstrs(), llvm::generateGroupUniformInst(), llvm::generateSpecConstantInst(), llvm::GConstant::getConstantInt(), getImmedFromMO(), llvm::GVScale::getSrc(), llvm::GStepVector::getStep(), llvm::hash_value(), isIdenticalTo(), llvm::WebAssemblyMCInstLower::lower(), llvm::LegalizerHelper::lowerConstant(), llvm::matchUnaryPredicate(), print(), llvm::stableHashValue(), llvm::SPIRV::to_hash(), widenCImmType(), and llvm::LegalizerHelper::widenScalar().
|
inline |
Definition at line 576 of file MachineOperand.h.
References assert(), and isFPImm().
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), generateAssignInstrs(), llvm::generateSpecConstantInst(), llvm::hash_value(), isIdenticalTo(), isSameScalarConst(), llvm::SPIRVMCInstLower::lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::ARMAsmPrinter::lowerOperand(), print(), llvm::stableHashValue(), llvm::SPIRV::to_hash(), and llvm::LegalizerHelper::widenScalar().
|
inline |
Definition at line 592 of file MachineOperand.h.
References assert(), and isGlobal().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::BTFDebug::beginInstruction(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), foldAddress(), llvm::getAddressFromInstr(), getCodeModel(), llvm::SystemZMCInstLower::getExpr(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), llvm::BPFMCInstLower::GetGlobalAddressSymbol(), llvm::LanaiMCInstLower::GetGlobalAddressSymbol(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), llvm::DenseMapInfo< MemOpKey >::getHashValue(), getMCSymbolForTOCPseudoMO(), getMovOperand(), GetSymbolFromOperand(), llvm::M68kMCInstLower::GetSymbolFromOperand(), GetSymbolRef(), getTOCEntryTypeForMO(), llvm::AsmPrinter::handleCallsiteForCallgraph(), llvm::hash_value(), INITIALIZE_PASS(), INITIALIZE_PASS(), llvm::BTFDebug::InstLower(), IsCallReturnTwice(), isCallToCFGuardFunction(), isIdenticalTo(), isSameScalarConst(), isSignExtendedW(), isSignExtendedW(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSimilarDispOp(), llvm::SPIRVMCInstLower::lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::lowerLoongArchMachineOperandToMCOperand(), LowerOperand(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::XtensaAsmPrinter::LowerSymbolOperand(), llvm::AVRMCInstLower::lowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::WebAssembly::mayThrow(), overwriteMachineOperandInPlace(), print(), llvm::BPFAsmPrinter::printOperand(), llvm::ARMAsmPrinter::PrintSymbolOperand(), llvm::AsmPrinter::PrintSymbolOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), queryCallee(), runQCRelaxMarking(), smallData(), llvm::stableHashValue(), swapRegAndNonRegOperand(), and validateFunCall().
|
inline |
Definition at line 566 of file MachineOperand.h.
References assert(), and isImm().
Referenced by AddAtomicFloatRequirements(), AddAtomicVectorFloatRequirements(), addConstantComments(), llvm::MachineInstrBuilder::addDisp(), AddDotProductRequirements(), llvm::R600InstrInfo::addFlag(), addInstrRequirements(), llvm::SITargetLowering::AddMemOpInit(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), addOpAccessChainReqs(), addPrintfRequirements(), llvm::HexagonInstrInfo::areMemAccessesTriviallyDisjoint(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), canCombineShiftIntoShXAdd(), canCompareBeNewValueJump(), llvm::AArch64InstrInfo::canFoldIntoAddrMode(), llvm::LoongArchInstrInfo::canFoldIntoAddrMode(), llvm::RISCVInstrInfo::canFoldIntoAddrMode(), canInstrSubstituteCmpInstr(), llvm::X86InstrInfo::canMakeTailCallConditional(), checkVOPDRegConstraints(), llvm::R600InstrInfo::clearFlag(), collectInlineAsmInstrOperands(), llvm::PPCInstrInfo::combineRLWINM(), compareMachineOp(), llvm::RISCV::RISCVVSETVLIInfoAnalysis::computeInfoForInstr(), createPHIsForSelects(), detectAndFoldOffset(), doubleVL(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreFrameLowering::eliminateCallFramePseudoInstr(), llvm::M68kRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::PPCFrameLowering::emitEpilogue(), llvm::LoongArchInstrInfo::emitLdStWithAddr(), llvm::GIMatchTableExecutor::executeMatchTable(), llvm::M68kInstrInfo::ExpandMOVEM(), llvm::M68kInstrInfo::ExpandMOVI(), ExpandMOVImmSExti8(), llvm::HexagonInstrInfo::expandPostRAPseudo(), expandSHXDROT(), llvm::RISCVInstrInfo::finalizeInsInstrs(), llvm::MachineInstr::findInlineAsmFlagIdx(), findRedundantFlagInstr(), llvm::MachineInstr::findTiedOperandIdx(), llvm::AArch64PrologueEpilogueCommon::fixupCalleeSaveRestoreStackOffset(), llvm::AArch64TargetLowering::fixupPtrauthDiscriminator(), llvm::fixupSEHOpcode(), foldCopyDup(), foldingOffsetChangesCarry(), foldInlineAsmMemOperand(), foldIntoMemoryOps(), foldLargeOffset(), foldShiftedOffset(), foldShxaddIntoScaledMemory(), fuseCompareOperations(), llvm::generateImageSizeQueryInst(), genIndexedMultiply(), genMaddShf(), genShXAddAddShift(), llvm::getAddressFromInstr(), llvm::X86InstrInfo::getAddrModeFromMemoryOp(), getArgumentStackToRestore(), llvm::AArch64FrameLowering::getArgumentStackToRestore(), getAS(), llvm::HexagonInstrInfo::getBundleNoShuf(), llvm::ARMAsmPrinter::getCodeViewJumpTableInfo(), llvm::AMDGPU::getCoExecInfo(), llvm::HexagonInstrInfo::getCompoundOpcode(), llvm::X86InstrInfo::getConstValDefinedInReg(), llvm::RISCV::getDemanded(), getEffectiveImm(), getEffectiveSubRegIdx(), llvm::TargetInstrInfo::getExtractSubregInputs(), getFloatRegType(), llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), llvm::SIRegisterInfo::getFrameIndexInstrOffset(), getGatherLanePattern(), getHWReg(), getImmedFromMO(), llvm::SIInstrInfo::getImmOrMaterializedImm(), llvm::GExtractSubvector::getIndexImm(), llvm::GInsertSubvector::getIndexImm(), llvm::MachineInstr::getInlineAsmDialect(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), getLoadStoreOffsetSizeInBits(), getMaddPatterns(), llvm::SIInstrInfo::getMemOperandsWithOffsetWidth(), llvm::X86InstrInfo::getMemOperandsWithOffsetWidth(), llvm::AArch64InstrInfo::getMemOperandWithOffsetWidth(), llvm::LanaiInstrInfo::getMemOperandWithOffsetWidth(), llvm::PPCInstrInfo::getMemOperandWithOffsetWidth(), llvm::RISCVInstrInfo::getMemOperandWithOffsetWidth(), getMinimumVLForVSLIDEDOWN_VX(), getMovOperand(), llvm::SPIRVGlobalRegistry::getNumScalarOrVectorTotalBitWidth(), llvm::getNumSizeComponents(), getRegImmPairPreventingCompression(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::SPIRVGlobalRegistry::getScalarOrVectorBitWidth(), llvm::R600InstrInfo::getSrcs(), getTag(), halfVL(), hasAllNBitUsers(), hasAllNBitUsers(), llvm::RISCV::hasEqualFRM(), llvm::hash_value(), llvm::SIInstrInfo::hasModifiersSet(), hasShorterEVEXViaCDisp8(), llvm::MachineInstr::hasUnmodeledSideEffects(), INITIALIZE_PASS(), INITIALIZE_PASS(), INITIALIZE_PASS(), INITIALIZE_PASS(), llvm::SystemZELFFrameLowering::inlineStackProbe(), llvm::SPIRV::irhandle_sampled_image(), llvm::isAArch64FrameOffsetLegal(), llvm::PPCInstrInfo::isADDIInstrEligibleForFolding(), llvm::MipsInstrInfo::isAddImmediate(), isAddressLdStPair(), isAddSub2RegAndConstOnePair(), isBFloat16Type(), llvm::HexagonInstrInfo::isConstExtended(), llvm::MachineInstr::isConvergent(), isConvertibleLEA(), isIdenticalTo(), isIdentityValue(), isImageTypeWithUnknownFormat(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::SIInstrInfo::isInlineConstant(), llvm::SIInstrInfo::isInlineConstant(), isInputAttachment(), isLdOffsetInRangeOfSt(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), isLoadStoreThatCanHandleDisplacement(), llvm::RISCV::isMaskRegOp(), isMatchingStartStopPair(), llvm::SIInstrInfo::isOperandLegal(), llvm::GIndexedLoad::isPre(), llvm::GIndexedStore::isPre(), isRedundantFlagInstr(), isRedundantFlagInstr(), isRelevantAddressingMode(), isSafeToFoldImmIntoCopy(), isSameScalarConst(), isSampledImage(), llvm::SPIRVGlobalRegistry::isScalarOrVectorSigned(), llvm::isScale(), llvm::MachineInstr::isStackAligningInlineAsm(), isStorageImage(), isStorageTexelBuffer(), llvm::HexagonInstrInfo::isStoreToStackSlot(), isUImm2(), isUImm2LSB0(), isUImm7LSB000(), isUniformTexelBuffer(), llvm::RISCVLegalizerInfo::legalizeCustom(), llvm::SPIRVMCInstLower::lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::lowerLoongArchMachineOperandToMCOperand(), llvm::ARCMCInstLower::LowerOperand(), llvm::M68kMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::XCoreMCInstLower::LowerOperand(), LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::XtensaAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), lowerRISCVVMachineInstrToMCInst(), llvm::LoongArchAsmPrinter::LowerSTATEPOINT(), llvm::MIPatternMatch::SrcImmOp_match< SrcTy, ImmTy, Opcode >::match(), llvm::CombinerHelper::matchRedundantSextInReg(), llvm::MachineInstr::mayFoldInlineAsmRegOp(), llvm::MachineInstr::mayLoad(), mayOverlapWrite(), llvm::MachineInstr::mayStore(), llvm::SIInstrInfo::moveFlatAddrToVGPR(), llvm::SIInstrInfo::moveToVALUImpl(), llvm::SparcInstrInfo::needsUnimp(), parseCondBranch(), parseCondBranch(), llvm::SystemZInstrInfo::prepareCompareSwapOperands(), llvm::MachineInstr::print(), print(), llvm::BPFAsmPrinter::PrintAsmMemoryOperand(), llvm::LoongArchAsmPrinter::PrintAsmMemoryOperand(), llvm::M68kAsmPrinter::PrintAsmMemoryOperand(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintAsmOperand(), llvm::CSKYAsmPrinter::PrintAsmOperand(), llvm::LoongArchAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::printFCCOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::BPFAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), processBlock(), llvm::SIInstrInfo::reMaterialize(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::R600InstrInfo::reverseBranchCondition(), llvm::ARMBlockPlacement::revertWhileToDoLoop(), llvm::rewriteT2FrameIndex(), llvm::HexagonInstrInfo::setBundleNoShuf(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::stableHashValue(), swapImmOperands(), swapRegAndNonRegOperand(), llvm::SIInstrInfo::swapSourceModifiers(), llvm::X86InstrInfo::unfoldMemoryOperand(), updateOperandIfDifferent(), updateOperands(), validateLifetimeStart(), verifyInsExtInstruction(), llvm::RISCVInstrInfo::verifyInstruction(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 586 of file MachineOperand.h.
References assert(), isCPI(), isFI(), isJTI(), and isTargetIndex().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::canLowerMemCpyFamily(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARMAsmPrinter::emitJumpTableAddrs(), llvm::ARMAsmPrinter::emitJumpTableInsts(), llvm::ARMAsmPrinter::emitJumpTableTBInst(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::getAddressFromInstr(), llvm::X86::getConstantFromPool(), llvm::LanaiMCInstLower::GetConstantPoolIndexSymbol(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::XtensaAsmPrinter::GetConstantPoolIndexSymbol(), llvm::SystemZMCInstLower::getExpr(), llvm::DenseMapInfo< MemOpKey >::getHashValue(), llvm::BPFInstrInfo::getJumpTableIndex(), getJumpTableIndexFromAddr(), llvm::LanaiMCInstLower::GetJumpTableSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::XtensaAsmPrinter::GetJumpTableSymbol(), getMCSymbolForTOCPseudoMO(), getMovOperand(), getStartOrEndSlot(), getTargetIndexName(), llvm::hash_value(), hasSameBaseOpValue(), isIdenticalTo(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::SIInstrInfo::isSGPRStackAccess(), isSimilarDispOp(), llvm::SIInstrInfo::isStackAccess(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::lowerLoongArchMachineOperandToMCOperand(), llvm::M68kMCInstLower::LowerOperand(), LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::MIPatternMatch::GFrameIndexMatch::match(), llvm::AArch64FrameLowering::orderFrameObjects(), llvm::SystemZELFFrameLowering::orderFrameObjects(), overwriteMachineOperandInPlace(), print(), llvm::ARMAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), llvm::ARMBaseInstrInfo::reMaterialize(), runQCRelaxMarking(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::PPCInstrInfo::shouldClusterMemOps(), smallData(), llvm::stableHashValue(), and swapRegAndNonRegOperand().
|
inline |
Definition at line 607 of file MachineOperand.h.
References assert(), and isDbgInstrRef().
Referenced by llvm::hash_value(), isIdenticalTo(), print(), and llvm::stableHashValue().
|
inline |
Definition at line 612 of file MachineOperand.h.
References assert(), and isDbgInstrRef().
Referenced by llvm::hash_value(), isIdenticalTo(), print(), and llvm::stableHashValue().
|
inline |
Definition at line 622 of file MachineOperand.h.
References assert(), and isIntrinsicID().
Referenced by llvm::GIMatchTableExecutor::executeMatchTable(), llvm::GIntrinsic::getIntrinsicID(), llvm::hash_value(), isIdenticalTo(), print(), and llvm::stableHashValue().
|
inline |
Definition at line 637 of file MachineOperand.h.
References assert(), and isLaneMask().
Referenced by llvm::hash_value(), isIdenticalTo(), print(), and llvm::stableHashValue().
|
inline |
Definition at line 581 of file MachineOperand.h.
References assert(), and isMBB().
Referenced by addIncomingValuesToPHIs(), llvm::AArch64InstrInfo::analyzeBranch(), llvm::HexagonInstrInfo::analyzeBranch(), llvm::MipsInstrInfo::analyzeBranch(), llvm::NVPTXInstrInfo::analyzeBranch(), llvm::PPCInstrInfo::analyzeBranch(), llvm::R600InstrInfo::analyzeBranch(), llvm::SparcInstrInfo::analyzeBranch(), llvm::VEInstrInfo::analyzeBranch(), llvm::XCoreInstrInfo::analyzeBranch(), llvm::XtensaInstrInfo::analyzeBranch(), llvm::CombinerHelper::applyOptBrCondByInvertingCond(), BBIsJumpedOver(), BBIsJumpedOver(), bbIsJumpedOver(), llvm::HexagonEvaluator::evaluate(), findLoopComponents(), getBranchDestination(), llvm::HexagonInstrInfo::getDotNewPredJumpOp(), llvm::SystemZMCInstLower::getExpr(), llvm::DenseMapInfo< MemOpKey >::getHashValue(), llvm::GPhi::getIncomingBlock(), llvm::PeelingModuloScheduleExpander::getPhiCanonicalReg(), llvm::M68kMCInstLower::GetSymbolFromOperand(), getTargetMBB(), llvm::hash_value(), INITIALIZE_PASS(), insertPHI(), isIdenticalTo(), isSimilarDispOp(), llvm::SPIRVMCInstLower::lower(), llvm::lowerLoongArchMachineOperandToMCOperand(), LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::XtensaAsmPrinter::LowerSymbolOperand(), llvm::CombinerHelper::matchOptBrCondByInvertingCond(), parseCondBranch(), parseCondBranch(), parseCondBranch(), parseCondBranch(), parseCondBranch(), parseCondBranch(), print(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::BPFAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::MachineBasicBlock::replacePhiUsesWith(), llvm::ARMBlockPlacement::revertWhileToDoLoop(), splitBlock(), llvm::MachineBasicBlock::SplitCriticalEdge(), splitEdge(), splitMBB(), updateBranches(), updatePHIs(), and verifyCFIntrinsic().
|
inline |
Definition at line 602 of file MachineOperand.h.
References assert(), and isMCSymbol().
Referenced by eliminateMove(), llvm::MipsAsmPrinter::emitDirectiveRelocJalr(), foldAddress(), llvm::MipsInstrInfo::genInstrWithNewOpc(), llvm::DenseMapInfo< MemOpKey >::getHashValue(), getMovOperand(), llvm::hash_value(), isIdenticalTo(), isSimilarDispOp(), llvm::WebAssemblyMCInstLower::lower(), llvm::lowerLoongArchMachineOperandToMCOperand(), llvm::M68kMCInstLower::LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), overwriteMachineOperandInPlace(), print(), runQCRelaxMarking(), and llvm::stableHashValue().
Definition at line 691 of file MachineOperand.h.
References assert(), and isMetadata().
Referenced by generateAssignInstrs(), llvm::getMachineInstrType(), llvm::hash_value(), isIdenticalTo(), llvm::MachineInstr::print(), and print().
|
inline |
Return the offset from the symbol in this operand.
This always returns 0 for ExternalSymbol operands.
Definition at line 644 of file MachineOperand.h.
References assert(), isBlockAddress(), isCPI(), isGlobal(), isMCSymbol(), isSymbol(), isTargetIndex(), and uint64_t.
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::SIInstrInfo::expandPostRAPseudo(), foldAddress(), llvm::X86::getConstantFromPool(), llvm::SystemZMCInstLower::getExpr(), getMovOperand(), GetSymbolRef(), GetSymbolRef(), llvm::hash_value(), if(), INITIALIZE_PASS(), isIdenticalTo(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::BPFMCInstLower::LowerSymbolOperand(), llvm::LanaiMCInstLower::LowerSymbolOperand(), llvm::M68kMCInstLower::LowerSymbolOperand(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::XtensaAsmPrinter::LowerSymbolOperand(), LowerSymbolOperand(), llvm::AVRMCInstLower::lowerSymbolOperand(), lowerSymbolOperand(), lowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandCOFF(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::AArch64MCInstLower::lowerSymbolOperandMachO(), overwriteMachineOperandInPlace(), print(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ARMAsmPrinter::PrintSymbolOperand(), llvm::AsmPrinter::PrintSymbolOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), runQCRelaxMarking(), llvm::stableHashValue(), and swapRegAndNonRegOperand().
| unsigned MachineOperand::getOperandNo | ( | ) | const |
Returns the index of this operand in the instruction that it belongs to.
Definition at line 55 of file MachineOperand.cpp.
References assert(), llvm::MachineInstr::getOperandNo(), and getParent().
Referenced by llvm::SIInstrInfo::convertToThreeAddress(), llvm::SIInstrInfo::getValueUniformity(), isCandidateStore(), isCrossCopy(), isEarlyClobberDefOrUse(), llvm::SIInstrInfo::isInlineConstant(), llvm::SIInstrInfo::isInlineConstant(), llvm::SIInstrInfo::legalizeOperandsFLAT(), producesFalseLanesZero(), and llvm::DeadLaneDetector::transferUsedLanes().
|
inline |
getParent - Return the instruction that this operand belongs to.
Definition at line 249 of file MachineOperand.h.
References MachineInstr.
Referenced by llvm::AnalyzeVirtRegInBundle(), llvm::CombinerHelper::applyCombineExtendingLoads(), ChangeToRegister(), llvm::constrainOperandRegClass(), createDeadDef(), findUseBetween(), llvm::getDefSrcRegIgnoringCopies(), getImmedFromMO(), getMFIfAvailable(), getOperandNo(), llvm::AMDGPUNextUseAnalysisImpl::getReachableUses(), llvm::MachineInstr::insert(), isEarlyClobberDefOrUse(), llvm::SIInstrInfo::isInlineConstant(), llvm::SIInstrInfo::isInlineConstant(), llvm::Rematerializer::isMOIdenticalAtUses(), isNoReturnDef(), isRenamable(), oneUseDominatesOtherUses(), print(), llvm::SPIRVGlobalRegistry::recordFunctionDefinition(), llvm::CombinerHelper::replaceRegOpWith(), llvm::LegalizationArtifactCombiner::replaceRegOrBuildCopy(), scavengeVReg(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::PPCInstrInfo::shouldClusterMemOps(), llvm::stableHashValue(), llvm::FastISel::tryToFoldLoad(), and llvm::MachineRegisterInfo::verifyUseList().
|
inline |
Definition at line 250 of file MachineOperand.h.
References MachineInstr.
|
inline |
Definition at line 627 of file MachineOperand.h.
References assert(), and isPredicate().
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::CombinerHelper::applyNotCmp(), llvm::GIMatchTableExecutor::executeMatchTable(), llvm::GAnyCmp::getCond(), llvm::hash_value(), isIdenticalTo(), print(), and llvm::stableHashValue().
|
inline |
getReg - Returns the register number.
Definition at line 375 of file MachineOperand.h.
References assert(), isReg(), and Register.
Referenced by AddAtomicVectorFloatRequirements(), addDebugSubstitutionsToTable(), AddDotProductRequirements(), addInstrRequirements(), addMemoryOperands(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), addOpAccessChainReqs(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterKilled(), llvm::MachineRegisterInfo::addRegOperandToUseList(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::ScheduleDAGInstrs::addVRegUseDeps(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::HexagonSubtarget::adjustSchedDependency(), allPhiOperandsUndefined(), llvm::AArch64InstrInfo::analyzeBranchPredicate(), llvm::AArch64InstrInfo::analyzeLoopForPipelining(), llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(), llvm::AnalyzeVirtRegInBundle(), llvm::HexagonSubtarget::BankConflictMutation::apply(), llvm::CombinerHelper::applyBuildFnMO(), llvm::CombinerHelper::applyCombineDivRem(), llvm::CombinerHelper::applyCombineExtendingLoads(), llvm::CombinerHelper::applyCombineTruncOfShift(), llvm::RegisterBankInfo::applyDefaultMapping(), llvm::CombinerHelper::applyExtendThroughPhis(), llvm::AMDGPUCombinerHelper::applyFoldableFneg(), llvm::AMDGPUCombinerHelper::applyFoldFAbsFptrunc(), llvm::CombinerHelper::applyOptBrCondByInvertingCond(), llvm::CombinerHelper::applyShiftOfShiftedLogic(), llvm::SPIRVCombinerHelper::applySPIRVFaceForward(), areCandidatesToMergeOrPair(), llvm::HexagonInstrInfo::areMemAccessesTriviallyDisjoint(), attemptDebugCopyProp(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::ARMBaseInstrInfo::breakPartialRegDependency(), llvm::ScheduleDAGDependencyBuilder::buildDeps(), llvm::SIInstrInfo::buildExtractSubReg(), llvm::SPIRVGlobalRegistry::buildGlobalVariable(), llvm::buildKernelInvokeOperands(), llvm::SPIRVGlobalRegistry::buildMemAliasingOpDecorate(), llvm::BuildMI(), buildRegSequence(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), llvm::ModuloScheduleExpanderMVE::canApply(), canCombine(), canCombine(), canCombine(), canCombineFPFusedMultiply(), canCreateUndefOrPoison(), canEmitConjunction(), llvm::HexagonInstrInfo::canExecuteInBundle(), canFoldCopy(), llvm::AArch64InstrInfo::canFoldIntoAddrMode(), llvm::LoongArchInstrInfo::canFoldIntoAddrMode(), llvm::RISCVInstrInfo::canFoldIntoAddrMode(), llvm::canGuaranteeAssignmentAfterRemat(), canMapVOP3PToVOPD(), llvm::HexagonPacketizerList::canPromoteToNewValueStore(), canRenameMOP(), canRenameUntilSecondLoad(), canRenameUpToDef(), castBufferRsrcArgToV4I32(), castBufferRsrcFromV4I32(), llvm::MachineInstr::changeDebugValuesDefReg(), checkVOPDRegConstraints(), clearDeadsOfLiveDefs(), clearKillFlags(), llvm::MachineInstr::clearRegisterDeads(), llvm::MachineInstr::clearRegisterKills(), cloneInstr(), collectInlineAsmInstrOperands(), collectNocallEntryArgRegs(), collectRegDefs(), CombineCVTAToLocal(), combineFPFusedMultiply(), llvm::PPCInstrInfo::combineRLWINM(), compareMachineOp(), CompressEVEXImpl(), llvm::RISCV::RISCVVSETVLIInfoAnalysis::computeInfoForInstr(), llvm::GISelValueTracking::computeNumSignBits(), ConsecutiveInstr(), llvm::constrainOperandRegClass(), llvm::constrainOperandRegClass(), RegBankSelectHelper::constrainRegBankUse(), llvm::constrainSelectedInstRegOperands(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::X86InstrInfo::convertToThreeAddress(), copyRegOperand(), createCallWithOps(), llvm::SIInstrInfo::createReadFirstLaneFromCopyToPhysReg(), llvm::ScheduleDAGInstrs::deadDefHasNoUse(), deduceGEPType(), llvm::X86InstrInfo::describeLoadedValue(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), eliminateMove(), emitIndirectDst(), llvm::HexagonHazardRecognizer::EmitInstruction(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::XtensaTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitKCFICheck(), llvm::AArch64InstrInfo::emitLdStWithAddr(), llvm::LoongArchInstrInfo::emitLdStWithAddr(), llvm::RISCVInstrInfo::emitLdStWithAddr(), EmitLoweredCascadedSelect(), eraseGPOpnd(), llvm::GIMatchTableExecutor::executeMatchTable(), expand64BitScalarArithmetic(), llvm::M68kInstrInfo::ExpandMOVEM(), llvm::M68kInstrInfo::ExpandMOVI(), llvm::M68kInstrInfo::ExpandMOVSZX_RM(), llvm::M68kInstrInfo::ExpandMOVSZX_RR(), llvm::M68kInstrInfo::ExpandMOVX_RM(), llvm::M68kInstrInfo::ExpandMOVX_RR(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::X86InstrInfo::expandPostRAPseudo(), llvm::M68kInstrInfo::ExpandPUSH_POP(), llvm::finalizeBundle(), llvm::PPCInstrInfo::finalizeInsInstrs(), findDeadCallerSavedReg(), findLoopComponents(), findLoopIncrementValue(), findNextInsertLocation(), findRedundantFlagInstr(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::findRegisterUseOperandIdx(), findStartOfTree(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::AArch64TargetLowering::fixupPtrauthDiscriminator(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), fixupSetCC(), foldAddress(), foldCopyDup(), llvm::PPCInstrInfo::foldFrameOffset(), llvm::ARMBaseInstrInfo::foldImmediate(), llvm::SIInstrInfo::foldImmediate(), foldIntoMemoryOps(), foldLargeOffset(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::RISCVInstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), foldShiftedOffset(), foldShxaddIntoScaledMemory(), foldTruncOfI32Constant(), foldVGPRCopyIntoRegSequence(), llvm::RISCVInstrInfo::genAlternativeCodeSequence(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), genAlternativeDpCodeSequence(), generateAssignInstrs(), generateAssignType(), llvm::generateCoopMatrInst(), generateGatherLanePattern(), llvm::generateMulExtendedInst(), genFNegatedMAD(), genFusedMultiply(), genIndexedMultiply(), genMaddR(), genMaddShf(), genShXAddAddShift(), genSubAdd2SubSub(), llvm::TargetInstrInfo::getAccumulatorChain(), llvm::TargetInstrInfo::getAccumulatorReassociationPatterns(), llvm::getAddressFromInstr(), llvm::X86InstrInfo::getAddrModeFromMemoryOp(), llvm::GIndexedLoad::getBaseReg(), llvm::GIndexedStore::getBaseReg(), llvm::GInsertSubvector::getBigVec(), getCallTargetRegOpnd(), llvm::HexagonInstrInfo::getCompoundOpcode(), getConstantNamedBarrierNumber(), llvm::X86InstrInfo::getConstValDefinedInReg(), llvm::getDef(), llvm::getDefInstrMaybeConstant(), getDefRegMask(), llvm::getDefSrcRegIgnoringCopies(), llvm::GAnyLoad::getDstReg(), llvm::GIndexedLoad::getDstReg(), getEffectiveImm(), llvm::GInsertVectorElement::getElementReg(), llvm::mir2vec::MIRVocabulary::getEntityIDForMachineOperand(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), llvm::MachineInstr::getFirst2RegLLTs(), llvm::MachineInstr::getFirst3RegLLTs(), llvm::MachineInstr::getFirst4RegLLTs(), llvm::MachineInstr::getFirst5RegLLTs(), llvm::PPCInstrInfo::getFMAPatterns(), getFMULPatterns(), getFNEGPatterns(), getFPReg(), getGatherLanePattern(), llvm::MachineInstrExpressionTrait::getHashValue(), llvm::ARMBankConflictHazardRecognizer::getHazardType(), getImmedFromMO(), llvm::GPhi::getIncomingValue(), llvm::GExtractVectorElement::getIndexReg(), llvm::GInsertVectorElement::getIndexReg(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), getInstReadLaneMask(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::RISCVRegisterBankInfo::getInstrMapping(), llvm::RegisterBankInfo::getInstrMappingImpl(), llvm::BPFInstrInfo::getJumpTableIndex(), llvm::ScheduleDAGInstrs::getLaneMaskForMO(), getLegalRegBank(), llvm::GBinOpCarryOut::getLHSReg(), llvm::GSUCmp::getLHSReg(), llvm::getMachineInstrType(), llvm::SIInstrInfo::getMemOperandsWithOffsetWidth(), getMinimumVLForVSLIDEDOWN_VX(), llvm::ReachingDefInfo::getMIOperand(), getMopState(), getNewSource(), llvm::GIndexedLoad::getOffsetReg(), llvm::GIndexedStore::getOffsetReg(), llvm::mir2vec::MIRVocabulary::getOperandEmbedding(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::PPCInstrInfo::getOperandLatency(), llvm::SPIRVGlobalRegistry::getOrCreateConstIntArray(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeSampledImage(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), llvm::X86InstrInfo::getPartialRegUpdateClearance(), llvm::PeelingModuloScheduleExpander::getPhiCanonicalReg(), llvm::SPIRVGlobalRegistry::getPointeeType(), llvm::GLoadStore::getPointerReg(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::GetPoisonVal(), getRC32(), llvm::GenericMachineInstr::getReg(), llvm::AArch64RegisterInfo::getRegAllocationHints(), llvm::PPCRegisterInfo::getRegAllocationHints(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::SIRegisterInfo::getRegClassForOperandReg(), getRegDependency(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::ARMBaseInstrInfo::getRegSequenceLikeInputs(), llvm::getRegState(), llvm::GBinOpCarryOut::getRHSReg(), llvm::GSUCmp::getRHSReg(), llvm::GSplatVector::getScalarReg(), llvm::GShl::getShiftReg(), getShuffleComment(), llvm::GFreeze::getSourceReg(), llvm::GUnmerge::getSourceReg(), llvm::GShuffleVector::getSrc1Reg(), llvm::GShuffleVector::getSrc2Reg(), llvm::GCastOp::getSrcReg(), llvm::GShl::getSrcReg(), llvm::R600InstrInfo::getSrcs(), llvm::GExtractSubvector::getSrcVec(), llvm::GInsertSubvector::getSubVec(), getTag(), getTiedUseReg(), getTypeReg(), llvm::X86InstrInfo::getUndefRegClearance(), llvm::MachineSSAUpdater::GetValueInMiddleOfBlock(), llvm::GAnyStore::getValueReg(), llvm::GIndexedStore::getValueReg(), llvm::SIInstrInfo::getValueUniformity(), llvm::GExtractVectorElement::getVectorReg(), llvm::GInsertVectorElement::getVectorReg(), llvm::getVRegDef(), llvm::getVRegSubRegDef(), llvm::GIndexedLoad::getWritebackReg(), llvm::GIndexedStore::getWritebackReg(), handleADRP(), llvm::SIInstrInfo::handleCopyToPhysHelper(), HandleDestructivePredicateHint(), llvm::hash_value(), hasLiveThroughUse(), hasMoreUses(), llvm::RISCVInstrInfo::hasReassociableOperands(), llvm::TargetInstrInfo::hasReassociableOperands(), llvm::RISCVInstrInfo::hasReassociableSibling(), llvm::TargetInstrInfo::hasReassociableSibling(), hasRegisterDependency(), llvm::MachineInstr::hasRegisterImplicitUseOperand(), hasSameBaseOpValue(), llvm::MachineInstr::hasTiedAndOtherReadOf(), llvm::RISCV::hasUndefinedPassthru(), indirectCopyToAGPR(), INITIALIZE_PASS(), INITIALIZE_PASS(), INITIALIZE_PASS(), INITIALIZE_PASS(), INITIALIZE_PASS(), llvm::HexagonInstrInfo::insertBranch(), insertCallDefsUses(), insertDivByZeroTrap(), insertDivByZeroTrap(), insertInlineAsmProcess(), llvm::SPIRVTargetLowering::insertLogicalCopyOnResult(), insertSEH(), instrToSignature(), llvm::ARMBaseInstrInfo::isAddImmediate(), llvm::MipsInstrInfo::isAddImmediate(), llvm::RISCVInstrInfo::isAddImmediate(), isAGPRCopy(), isArithmeticBccPair(), llvm::GIMatchTableExecutor::isBaseWithConstantOffset(), isCallViaRegister(), isCandidate(), llvm::WebAssembly::isChild(), llvm::AArch64GISelUtils::isCMN(), isCmpCSetPair(), isCmpRedundantAfterLTZCNT(), isCombinedImageSampler(), llvm::MachineInstr::isConstantValuePHI(), isConstReg(), isConvertibleLEA(), isCrossCopy(), llvm::MachineInstr::isDead(), isExtractHiElt(), isGPRC(), isIdenticalOp(), llvm::MachineInstr::isIdenticalTo(), isIdenticalTo(), llvm::MachineInstr::isIdentityCopy(), llvm::SIInstrInfo::isIgnorableUse(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), isInvariantStore(), isLdStSafeToCluster(), llvm::RISCVInstrInfo::isLdStSafeToPair(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::SIInstrInfo::isLegalSingleSGPRReadInstOperand(), llvm::HexagonPacketizerList::isLegalToPacketizeTogether(), llvm::SMSchedule::isLoopCarriedDefOfUse(), llvm::SIInstrInfo::isMaskedByExec(), isMatchingStartStopPair(), isMMSourceRegister(), isMMThreeBitGPRegister(), llvm::Rematerializer::isMOIdenticalAtUses(), isNonFoldablePartialRegisterLoad(), llvm::GIMatchTableExecutor::isOperandImmEqual(), llvm::SIInstrInfo::isOperandLegal(), isPhysical(), isPredicatedDef(), isPromotableZeroStoreInst(), isReachingDefAGPRForm(), isRedundantFlagInstr(), isRedundantFlagInstr(), isRegInClass(), isRegInClass(), isRegisterLiveInCall(), isRelevantAddressingMode(), isRenamable(), IsSafeAndProfitableToMove(), isSubRegOf(), isSVERegOp(), isTileDef(), isTileDef(), isTileRegDef(), llvm::HexagonInstrInfo::isToBeScheduledASAP(), isTwoAddrUse(), llvm::AMDGPU::isUnscaledIEEEDivFmas(), isValidReg(), isValidRegDefOf(), isValidRegUseOf(), llvm::PPCInstrInfo::isValidToBeChangedReg(), isVirtualRegisterOperand(), isWaitInstr(), llvm::AArch64LegalizerInfo::legalizeIntrinsic(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOperandsFLAT(), llvm::SIInstrInfo::legalizeOperandsSMRD(), llvm::SIInstrInfo::legalizeOperandsVOP3(), llvm::SIInstrInfo::legalizeOpWithMove(), legalizeSpvExtractElt(), legalizeSpvInsertElt(), llvm::SPIRVMCInstLower::lower(), llvm::WebAssemblyMCInstLower::lower(), LowerCallResults(), llvm::TargetInstrInfo::lowerCopy(), llvm::lowerLoongArchMachineOperandToMCOperand(), llvm::ARCMCInstLower::LowerOperand(), llvm::M68kMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::XCoreMCInstLower::LowerOperand(), LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::XtensaAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), lowerRISCVVMachineInstrToMCInst(), llvm::LoongArchAsmPrinter::LowerSTATEPOINT(), llvm::AMDGPUMCInstLower::lowerT16D16Helper(), llvm::AMDGPUMCInstLower::lowerT16FmaMixFP16(), lowerTileCopy(), lowerWaveReduce(), markKillReg(), llvm::AMDGPU::PredicateMapping::match(), llvm::MIPatternMatch::BinaryOp_match< LHS_P, RHS_P, Opcode, Commutable, Flags >::match(), llvm::MIPatternMatch::BinaryOpc_match< LHS_P, RHS_P, Commutable >::match(), llvm::MIPatternMatch::ClassifyOp_match< LHS_P, Test_P, Opcode >::match(), llvm::MIPatternMatch::CompareOp_match< Pred_P, LHS_P, RHS_P, Opcode, Commutable >::match(), llvm::MIPatternMatch::SrcImmOp_match< SrcTy, ImmTy, Opcode >::match(), llvm::MIPatternMatch::TernaryOp_match< Src0Ty, Src1Ty, Src2Ty, Opcode >::match(), llvm::MIPatternMatch::UnaryOp_match< SrcTy, Opcode >::match(), llvm::CombinerHelper::matchAddOfVScale(), llvm::CombinerHelper::matchCombineExtractedVectorLoad(), llvm::CombinerHelper::matchCombineFAddFMAFMulToFMadOrFMA(), llvm::CombinerHelper::matchCombineFAddFpExtFMulToFMadOrFMA(), llvm::CombinerHelper::matchCombineFAddFpExtFMulToFMadOrFMAAggressive(), llvm::AMDGPUCombinerHelper::matchCombineFmulWithSelectToFldexp(), llvm::CombinerHelper::matchCombineFSubFNegFMulToFMadOrFMA(), llvm::CombinerHelper::matchCombineFSubFpExtFMulToFMadOrFMA(), llvm::CombinerHelper::matchCombineFSubFpExtFNegFMulToFMadOrFMA(), llvm::CombinerHelper::matchCombineInsertVecElts(), llvm::CombinerHelper::matchCombineTruncOfShift(), llvm::CombinerHelper::matchConstantFPOp(), llvm::CombinerHelper::matchConstantOp(), llvm::CombinerHelper::matchCtls(), llvm::CombinerHelper::matchEqualDefs(), llvm::CombinerHelper::matchExtractVecEltBuildVec(), llvm::CombinerHelper::matchExtractVectorElementWithBuildVectorTrunc(), llvm::CombinerHelper::matchExtractVectorElementWithDifferentIndices(), llvm::SPIRVCombinerHelper::matchFDivToNormalize(), llvm::AMDGPUCombinerHelper::matchFoldableFneg(), matchFoldableShift(), llvm::AMDGPUCombinerHelper::matchFoldFAbsFptrunc(), llvm::CombinerHelper::matchFreezeOfSingleMaybePoisonOperand(), llvm::CombinerHelper::matchHoistLogicOpWithSameOpcodeHands(), llvm::CombinerHelper::matchLshrOfTruncOfLshr(), llvm::CombinerHelper::matchMulOfVScale(), llvm::CombinerHelper::matchNarrowBinopFeedingAnd(), llvm::CombinerHelper::matchNonNegZext(), llvm::CombinerHelper::matchOperandIsKnownToBeAPowerOfTwo(), llvm::CombinerHelper::matchRedundantSextInReg(), llvm::CombinerHelper::matchSelectIMinMax(), llvm::SPIRVCombinerHelper::matchSelectToFaceForward(), llvm::CombinerHelper::matchSextOfTrunc(), llvm::CombinerHelper::matchShiftImmedChain(), llvm::CombinerHelper::matchShiftOfShiftedLogic(), llvm::CombinerHelper::matchShlOfVScale(), llvm::CombinerHelper::matchSubOfVScale(), llvm::CombinerHelper::matchTruncUSatU(), llvm::CombinerHelper::matchTruncUSatUToFPTOUISat(), llvm::CombinerHelper::matchUnmergeValuesAnyExtBuildVector(), llvm::CombinerHelper::matchUseVectorTruncate(), llvm::CombinerHelper::matchZextOfTrunc(), mayDefSameReg(), llvm::mayOverlapInLaterIter(), MIIsInTerminatorSequence(), llvm::LegalizerHelper::moreElementsVectorDst(), llvm::SIInstrInfo::moveFlatAddrToVGPR(), llvm::PeelingModuloScheduleExpander::moveStageBetweenBlocks(), llvm::SIInstrInfo::moveToVALUImpl(), MoveVPNOTBeforeFirstUser(), oneUseDominatesOtherUses(), llvm::PPCInstrInfo::optimizeCmpPostRA(), llvm::AArch64InstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::SIInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeCompareInstr(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::TargetInstrInfo::optimizeLoadInstr(), llvm::ARMBaseInstrInfo::optimizeSelect(), llvm::LanaiInstrInfo::optimizeSelect(), llvm::RISCVInstrInfo::optimizeSelect(), llvm::CallLowering::parametersInCSRMatch(), llvm::LivenessInfo::parseOperands(), parseOperands(), llvm::PeelSingleBlockLoop(), peephole(), llvm::SIInstrInfo::physRegUsesConstantBus(), print(), llvm::AMDGPUAsmPrinter::PrintAsmMemoryOperand(), llvm::ARMAsmPrinter::PrintAsmMemoryOperand(), llvm::BPFAsmPrinter::PrintAsmMemoryOperand(), llvm::CSKYAsmPrinter::PrintAsmMemoryOperand(), llvm::LoongArchAsmPrinter::PrintAsmMemoryOperand(), llvm::M68kAsmPrinter::PrintAsmMemoryOperand(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), printAsmMRegister(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::CSKYAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::LoongArchAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::SystemZAsmPrinter::PrintAsmOperand(), printAsmVRegister(), printDstRegisterName(), llvm::ARMAsmPrinter::printOperand(), llvm::BPFAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), producesFalseLanesZero(), llvm::PPCInstrInfo::promoteInstr32To64ForElimEXTSW(), llvm::MachineInstr::readsWritesVirtualRegister(), RegBankSelectHelper::reAssignRegBankOnDef(), llvm::TargetInstrInfo::reassociateOps(), TransferTracker::redefVar(), llvm::TargetInstrInfo::reduceAccumulatorTree(), ReduceMoveToMovep(), ReduceXWtoXWP(), llvm::WebAssemblyAsmPrinter::regToString(), llvm::SIInstrInfo::regUsesConstantBus(), reinsertVectorIndexAdd(), llvm::ARMBaseInstrInfo::reMaterialize(), llvm::SIInstrInfo::reMaterialize(), llvm::X86InstrInfo::reMaterialize(), RemoveDeadAddBetweenLEAAndJT(), llvm::MachineRegisterInfo::removeRegOperandFromUseList(), rescheduleCanonically(), llvm::RegisterOperands::restoreLivenessFlags(), llvm::R600InstrInfo::reverseBranchCondition(), llvm::MachineSSAUpdater::RewriteUse(), runDeadRegisterDefinitions(), runFrameToArgOffsetElimination(), llvm::SelectionDAGISel::runOnMachineFunction(), runVMV0Elimination(), salvageBuildVector(), llvm::MachineFunction::salvageCopySSAImpl(), llvm::R600SchedStrategy::schedNode(), selectMI(), selectSELRMux(), setIsRenamable(), llvm::MachineInstr::setPhysRegsDeadExcept(), setReg(), llvm::MachineInstr::setRegisterDefReadUndef(), shortenFusedFPOp(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::PPCInstrInfo::shouldClusterMemOps(), SinkingPreventsImplicitNullCheck(), llvm::MachineBasicBlock::SplitCriticalEdge(), splitMBB(), llvm::stableHashValue(), llvm::MachineInstr::substituteRegister(), swapRegAndNonRegOperand(), tileConfig(), llvm::LegalizationArtifactCombiner::tryCombineExtract(), tryCompressMaskProducer(), llvm::tryFoldSPUpdateIntoPushPop(), llvm::LegalizationArtifactCombiner::tryFoldUnmergeCast(), AMDGPURegBankLegalizeCombiner::tryMatch(), llvm::CombinerHelper::tryReassocBinOp(), typesLogicallyMatch(), llvm::X86InstrInfo::unfoldMemoryOperand(), unmarkKillReg(), llvm::HexagonPacketizerList::updateOffset(), updateOperandRegConstraints(), UseReg(), llvm::SIInstrInfo::usesConstantBus(), validateAccessChain(), validateFunCallMachineDef(), validatePtrUnwrapStructField(), validateVec1Ops(), llvm::RegisterBankInfo::InstructionMapping::verify(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), llvm::MachineRegisterInfo::verifyUseList(), and llvm::VirtRegAuxInfo::weightCalcHelper().
getRegLiveOut - Returns a bit mask of live-out registers.
Definition at line 686 of file MachineOperand.h.
References assert(), and isRegLiveOut().
Referenced by llvm::hash_value(), isIdenticalTo(), print(), and llvm::stableHashValue().
getRegMask - Returns a bit mask of registers preserved by this RegMask operand.
Definition at line 675 of file MachineOperand.h.
References assert(), and isRegMask().
Referenced by clobbersPhysReg(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::hash_value(), isIdenticalTo(), isMatchingStartStopPair(), print(), llvm::MIRParserImpl::setupRegisterInfo(), and llvm::stableHashValue().
Returns number of elements needed for a regmask array.
Definition at line 681 of file MachineOperand.h.
Referenced by llvm::MachineFunction::allocateRegMask(), llvm::hash_value(), isIdenticalTo(), regMaskFromTemplate(), llvm::stableHashValue(), and llvm::AArch64RegisterInfo::UpdateCustomCallPreservedMask().
|
inline |
Definition at line 632 of file MachineOperand.h.
References assert(), and isShuffleMask().
Referenced by llvm::GShuffleVector::getMask(), llvm::hash_value(), isIdenticalTo(), print(), and llvm::stableHashValue().
|
inline |
Definition at line 380 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addRegisterDefined(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::HexagonInstrInfo::areMemAccessesTriviallyDisjoint(), attemptDebugCopyProp(), llvm::SIInstrInfo::buildExtractSubReg(), canFoldCopy(), copyRegOperand(), llvm::HexagonInstrInfo::expandPostRAPseudo(), findUseBetween(), llvm::SIInstrInfo::foldImmediate(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), foldVGPRCopyIntoRegSequence(), llvm::HexagonInstrInfo::getBaseAndOffset(), getDefRegMask(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), getInstReadLaneMask(), llvm::ScheduleDAGInstrs::getLaneMaskForMO(), getNewSource(), llvm::SIInstrInfo::getOpSize(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), getRC32(), llvm::AArch64RegisterInfo::getRegAllocationHints(), llvm::PPCRegisterInfo::getRegAllocationHints(), llvm::RISCVRegisterInfo::getRegAllocationHints(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::MachineInstr::getRegClassConstraintEffect(), llvm::SIRegisterInfo::getRegClassForOperandReg(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::ARMBaseInstrInfo::getRegSequenceLikeInputs(), getTiedUseReg(), llvm::hash_value(), llvm::MachineInstr::hasTiedAndOtherReadOf(), INITIALIZE_PASS(), instrToSignature(), isAGPRCopy(), isCrossCopy(), llvm::MachineInstr::isFullCopy(), llvm::TargetInstrInfo::isFullCopyInstr(), isIdenticalTo(), llvm::MachineInstr::isIdentityCopy(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::SIInstrInfo::isMaskedByExec(), llvm::Rematerializer::isMOIdenticalAtUses(), llvm::SIInstrInfo::isOperandLegal(), isSSA(), isSubRegOf(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::SIInstrInfo::moveToVALUImpl(), llvm::SIInstrInfo::optimizeCompareInstr(), llvm::TargetInstrInfo::optimizeLoadInstr(), print(), llvm::ARMAsmPrinter::printOperand(), llvm::PPCInstrInfo::promoteInstr32To64ForElimEXTSW(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::TargetInstrInfo::reassociateOps(), llvm::SIInstrInfo::reMaterialize(), llvm::RegisterOperands::restoreLivenessFlags(), runVMV0Elimination(), llvm::MachineInstr::setRegisterDefReadUndef(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::stableHashValue(), substPhysReg(), substVirtReg(), swapRegAndNonRegOperand(), and llvm::VirtRegAuxInfo::weightCalcHelper().
Definition at line 652 of file MachineOperand.h.
References assert(), and isSymbol().
Referenced by llvm::BTFDebug::beginInstruction(), foldAddress(), llvm::SystemZMCInstLower::getExpr(), llvm::AArch64MCInstLower::GetExternalSymbolSymbol(), llvm::BPFMCInstLower::GetExternalSymbolSymbol(), llvm::LanaiMCInstLower::GetExternalSymbolSymbol(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::DenseMapInfo< MemOpKey >::getHashValue(), getMovOperand(), GetSymbolFromOperand(), llvm::M68kMCInstLower::GetSymbolFromOperand(), llvm::AsmPrinter::handleCallsiteForCallgraph(), llvm::hash_value(), isIdenticalTo(), isSimilarDispOp(), llvm::lowerLoongArchMachineOperandToMCOperand(), LowerOperand(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::XtensaAsmPrinter::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::matchLibcall(), llvm::WebAssembly::mayThrow(), peephole(), print(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::BPFAsmPrinter::printOperand(), runQCRelaxMarking(), and llvm::stableHashValue().
|
inline |
Definition at line 232 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::MipsAsmPrinter::emitDirectiveRelocJalr(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), foldAddress(), foldLargeOffset(), llvm::MipsInstrInfo::genInstrWithNewOpc(), llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::LoongArchII::getDirectFlags(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), getMovOperand(), GetSymbolRef(), GetSymbolRef(), getTOCEntryTypeForMO(), handleInstructionWithEGPR(), handleNDDOrNFInstructions(), llvm::hash_value(), llvm::LoongArchII::hasRelaxFlag(), if(), INITIALIZE_PASS(), llvm::isAddMemInstrWithRelocation(), isCallToCFGuardFunction(), llvm::HexagonInstrInfo::isConstExtended(), isIdenticalTo(), isImportedFunction(), llvm::isMemInstrWithGOTPCREL(), llvm::WebAssemblyMCInstLower::lower(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::LanaiMCInstLower::LowerSymbolOperand(), llvm::M68kMCInstLower::LowerSymbolOperand(), llvm::MSP430MCInstLower::LowerSymbolOperand(), LowerSymbolOperand(), llvm::AVRMCInstLower::lowerSymbolOperand(), llvm::CSKYMCInstLower::lowerSymbolOperand(), lowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandCOFF(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::AArch64MCInstLower::lowerSymbolOperandMachO(), overwriteMachineOperandInPlace(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ARMAsmPrinter::PrintSymbolOperand(), llvm::stableHashValue(), swapImmOperands(), and swapRegAndNonRegOperand().
getTargetIndexName - If this MachineOperand is a TargetIndex that has a name, attempt to get the name.
Returns nullptr if the TargetIndex does not have a name. Asserts if MO is not a TargetIndex.
Definition at line 504 of file MachineOperand.cpp.
References getIndex(), getMFIfAvailable(), and getTargetIndexName().
Referenced by getTargetIndexName(), print(), and llvm::stableHashValue().
|
inline |
getType - Returns the MachineOperandType for this operand.
Definition at line 230 of file MachineOperand.h.
Referenced by llvm::MachineInstrBuilder::addDisp(), compareMachineOp(), getCodeModel(), llvm::mir2vec::MIRVocabulary::getEntityIDForMachineOperand(), llvm::SystemZMCInstLower::getExpr(), llvm::DenseMapInfo< MemOpKey >::getHashValue(), getMCSymbolForTOCPseudoMO(), getMovOperand(), llvm::mir2vec::MIRVocabulary::getOperandEmbedding(), getTOCEntryTypeForMO(), llvm::AsmPrinter::handleCallsiteForCallgraph(), llvm::hash_value(), if(), INITIALIZE_PASS(), instrToSignature(), IsAnAddressOperand(), isIdenticalTo(), llvm::SPIRVMCInstLower::lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::lowerLoongArchMachineOperandToMCOperand(), llvm::ARCMCInstLower::LowerOperand(), llvm::M68kMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::XCoreMCInstLower::LowerOperand(), LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::AMDGPUMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::XtensaAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), lowerRISCVVMachineInstrToMCInst(), llvm::LoongArchAsmPrinter::LowerSTATEPOINT(), overwriteMachineOperandInPlace(), print(), llvm::M68kAsmPrinter::PrintAsmMemoryOperand(), llvm::CSKYAsmPrinter::PrintAsmOperand(), llvm::LoongArchAsmPrinter::PrintAsmOperand(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::BPFAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::XtensaAsmPrinter::printOperand(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::stableHashValue(), and llvm::SPIRV::to_hash().
|
inline |
isBlockAddress - Tests if this is a MO_BlockAddress operand.
Definition at line 356 of file MachineOperand.h.
References MO_BlockAddress.
Referenced by getBlockAddress(), getOffset(), if(), llvm::HexagonInstrInfo::isConstExtended(), isSimilarDispOp(), isValidDispOp(), llvm::LoongArchAsmPrinter::PrintAsmMemoryOperand(), processBlockAddr(), and setOffset().
|
inline |
Definition at line 365 of file MachineOperand.h.
References MO_CFIIndex.
Referenced by getCFIIndex().
|
inline |
isCImm - Test if this is a MO_CImmediate operand.
Definition at line 338 of file MachineOperand.h.
References MO_CImmediate.
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::buildEnqueueKernel(), llvm::GIMatchTableExecutor::executeMatchTable(), llvm::generateGroupUniformInst(), llvm::generateSpecConstantInst(), getCImm(), getImmedFromMO(), isCandidate(), setCImm(), and llvm::stableHashValue().
|
inline |
isCPI - Tests if this is a MO_ConstantPoolIndex operand.
Definition at line 346 of file MachineOperand.h.
References MO_ConstantPoolIndex.
Referenced by llvm::X86::getConstantFromPool(), getIndex(), getOffset(), getTag(), if(), isAnImmediateOperand(), isCandidate(), llvm::HexagonInstrInfo::isConstExtended(), isSimilarDispOp(), isValidDispOp(), llvm::LoongArchAsmPrinter::PrintAsmMemoryOperand(), runQCRelaxMarking(), setIndex(), setOffset(), and smallData().
|
inline |
Definition at line 364 of file MachineOperand.h.
References MO_DbgInstrRef.
Referenced by getInstrRefInstrIndex(), getInstrRefOpIndex(), setInstrRefInstrIndex(), and setInstrRefOpIndex().
|
inline |
Definition at line 400 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterDead(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::MachineInstr::allDefsAreDead(), llvm::MachineInstr::allImplicitDefsAreDead(), llvm::SIInstrInfo::buildShrunkInst(), ChangeToRegister(), clearDeadsOfLiveDefs(), copyRegOperand(), CreateReg(), doesInstructionSetFPSW(), llvm::SIRegisterInfo::eliminateFrameIndex(), expand64BitScalarArithmetic(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::ARMBaseInstrInfo::foldImmediate(), getMopState(), llvm::getRegState(), handleNDDOrNFInstructions(), hash_value, llvm::X86InstrInfo::hasReassociableOperands(), isCandidate(), llvm::MachineInstr::isDead(), llvm::MachineInstr::isIdenticalTo(), isPredicatedDef(), moveAndTeeForMultiUse(), llvm::LivenessInfo::parseOperands(), print(), runDeadRegisterDefinitions(), llvm::X86InstrInfo::setSpecialOperandAttr(), setsSCCIfResultIsZero(), swapRegAndNonRegOperand(), and tryCompressMaskProducer().
|
inline |
Definition at line 464 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addRegisterKilled(), canRenameUpToDef(), ChangeToRegister(), CreateReg(), llvm::getRegState(), hash_value, setIsDef(), setIsKill(), and swapRegAndNonRegOperand().
|
inline |
Definition at line 390 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), llvm::MachineInstr::addRegisterDead(), llvm::MachineRegisterInfo::addRegOperandToUseList(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::AnalyzeVirtRegInBundle(), llvm::BTFDebug::beginInstruction(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::ScheduleDAGDependencyBuilder::buildDeps(), canRenameMOP(), canRenameUpToDef(), ChangeToRegister(), collectInlineAsmInstrOperands(), llvm::constrainOperandRegClass(), llvm::PPCInstrInfo::convertToImmediateForm(), CreateReg(), llvm::HexagonHazardRecognizer::EmitInstruction(), expand64BitScalarArithmetic(), findDeadCallerSavedReg(), findDefIdx(), llvm::MachineInstr::findRegisterDefOperandIdx(), findUseIdx(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::X86InstrInfo::foldMemoryOperandImpl(), getDefRegMask(), llvm::MachineInstrExpressionTrait::getHashValue(), getInstReadLaneMask(), llvm::PPCInstrInfo::getInstrLatency(), llvm::getRegState(), llvm::SIInstrInfo::getValueUniformity(), llvm::hash_value(), hash_value, hasRegisterDependency(), INITIALIZE_PASS(), instrToSignature(), isCandidate(), llvm::WebAssembly::isChild(), isEarlyClobberDefOrUse(), llvm::MachineInstr::isIdenticalTo(), isIdenticalTo(), isLiveThroughDef(), isPredicatedDef(), isRegDef(), llvm::MachineInstr::isRegTiedToUseOperand(), isRenamable(), IsSafeAndProfitableToMove(), isValidRegDef(), MIIsInTerminatorSequence(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::TargetInstrInfo::optimizeLoadInstr(), llvm::LivenessInfo::parseOperands(), parseOperands(), llvm::MachineInstr::print(), print(), printImplicitRegisterFlag(), printMI(), rescheduleCanonically(), runDeadRegisterDefinitions(), llvm::MachineInstr::setPhysRegsDeadExcept(), llvm::stableHashValue(), substPhysReg(), and llvm::MachineInstr::tieOperands().
|
inline |
Definition at line 451 of file MachineOperand.h.
References assert(), and isReg().
Referenced by canRenameMOP(), llvm::SIInstrInfo::convertToThreeAddress(), createDeadDef(), CreateReg(), dumpMachineInstrRangeWithSlotIndex(), getMopState(), isEarlyClobberDefOrUse(), isLiveThroughDef(), print(), and runDeadRegisterDefinitions().
| bool MachineOperand::isEarlyClobberDefOrUse | ( | ) | const |
Return true if this operand is an early-clobber def or a use tied to one.
Definition at line 60 of file MachineOperand.cpp.
References assert(), getOperandNo(), getParent(), isDef(), isEarlyClobber(), isReg(), isTied(), MachineInstr, and MI.
|
inline |
isFI - Tests if this is a MO_FrameIndex operand.
Definition at line 344 of file MachineOperand.h.
References MO_FrameIndex.
Referenced by llvm::X86InstrInfo::describeLoadedValue(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::TargetLoweringBase::emitPatchPoint(), getIndex(), llvm::SIInstrInfo::getMemOperandsWithOffsetWidth(), llvm::AArch64InstrInfo::getMemOperandWithOffsetWidth(), llvm::PPCInstrInfo::getMemOperandWithOffsetWidth(), llvm::RISCVInstrInfo::getMemOperandWithOffsetWidth(), llvm::SIInstrInfo::isImmOperandLegal(), isLdStSafeToCluster(), llvm::RISCVInstrInfo::isLdStSafeToPair(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::SIInstrInfo::isOperandLegal(), isRegOrFI(), llvm::SIInstrInfo::isSGPRStackAccess(), llvm::SIInstrInfo::isStackAccess(), llvm::HexagonInstrInfo::isStoreToStackSlot(), LowerCallResults(), llvm::AArch64FrameLowering::orderFrameObjects(), llvm::SystemZELFFrameLowering::orderFrameObjects(), llvm::SIRegisterInfo::resolveFrameIndex(), setIndex(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::PPCInstrInfo::shouldClusterMemOps(), swapRegAndNonRegOperand(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
isFPImm - Tests if this is a MO_FPImmediate operand.
Definition at line 340 of file MachineOperand.h.
References MO_FPImmediate.
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), getFPImm(), isCandidate(), llvm::HexagonInstrInfo::isConstExtended(), isSameScalarConst(), setFPImm(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
isGlobal - Tests if this is a MO_GlobalAddress operand.
Definition at line 352 of file MachineOperand.h.
References MO_GlobalAddress.
Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::BTFDebug::beginInstruction(), createCall(), llvm::SIInstrInfo::expandPostRAPseudo(), foldAddress(), llvm::getAddressFromInstr(), getGlobal(), getOffset(), llvm::R600InstrInfo::getSrcs(), GetSymbolFromOperand(), llvm::M68kMCInstLower::GetSymbolFromOperand(), GetSymbolRef(), getTag(), llvm::AsmPrinter::handleCallsiteForCallgraph(), if(), insertCallDefsUses(), llvm::BTFDebug::InstLower(), isAnImmediateOperand(), IsCallReturnTwice(), isCallToCFGuardFunction(), isCandidate(), llvm::HexagonInstrInfo::isConstExtended(), llvm::SIInstrInfo::isImmOperandLegal(), isImportedFunction(), llvm::SIInstrInfo::isOperandLegal(), isSameScalarConst(), isSignExtendedW(), isSignExtendedW(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSimilarDispOp(), isValidDispOp(), llvm::AVRMCInstLower::lowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::WebAssembly::mayThrow(), llvm::LoongArchAsmPrinter::PrintAsmMemoryOperand(), llvm::AsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintSymbolOperand(), llvm::AsmPrinter::PrintSymbolOperand(), queryCallee(), runQCRelaxMarking(), setOffset(), smallData(), and swapRegAndNonRegOperand().
| bool MachineOperand::isIdenticalTo | ( | const MachineOperand & | Other | ) | const |
Returns true if this operand is identical to the specified operand except for liveness related flags (isKill, isUndef and isDead).
isIdenticalTo - Return true if this operand is identical to the specified operand.
Note that this should stay in sync with the hash_value overload below.
Definition at line 343 of file MachineOperand.cpp.
References getBlockAddress(), getCFIIndex(), getCImm(), getFPImm(), getGlobal(), getImm(), getIndex(), getInstrRefInstrIndex(), getInstrRefOpIndex(), getIntrinsicID(), getLaneMask(), getMBB(), getMCSymbol(), getMetadata(), getMFIfAvailable(), getOffset(), getPredicate(), getReg(), getRegLiveOut(), getRegMask(), getRegMaskSize(), getShuffleMask(), getSubReg(), getSymbolName(), getTargetFlags(), getType(), isDef(), isRegMask(), llvm_unreachable, MO_BlockAddress, MO_CFIIndex, MO_CImmediate, MO_ConstantPoolIndex, MO_DbgInstrRef, MO_ExternalSymbol, MO_FPImmediate, MO_FrameIndex, MO_GlobalAddress, MO_Immediate, MO_IntrinsicID, MO_JumpTableIndex, MO_LaneMask, MO_MachineBasicBlock, MO_MCSymbol, MO_Metadata, MO_Predicate, MO_Register, MO_RegisterLiveOut, MO_RegisterMask, MO_ShuffleMask, MO_TargetIndex, llvm::Other, and TRI.
Referenced by llvm::X86InstrInfo::analyzeBranchPredicate(), llvm::AArch64InstrInfo::areMemAccessesTriviallyDisjoint(), llvm::LanaiInstrInfo::areMemAccessesTriviallyDisjoint(), llvm::PPCInstrInfo::areMemAccessesTriviallyDisjoint(), llvm::RISCVInstrInfo::areMemAccessesTriviallyDisjoint(), isIdenticalOp(), llvm::MachineInstr::isIdenticalTo(), isImplicitOperandIn(), llvm::SIInstrInfo::isOperandLegal(), IsVPNOTEquivalent(), llvm::mayOverlapInLaterIter(), mayOverlapWrite(), llvm::ARMBaseInstrInfo::produceSameValue(), llvm::AArch64InstrInfo::shouldClusterMemOps(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
isImm - Tests if this is a MO_Immediate operand.
Definition at line 336 of file MachineOperand.h.
References MO_Immediate.
Referenced by addConstantComments(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), addPrintfRequirements(), llvm::HexagonInstrInfo::analyzeCompare(), areCombinableOperations(), llvm::HexagonInstrInfo::areMemAccessesTriviallyDisjoint(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), canCompareBeNewValueJump(), llvm::LoongArchInstrInfo::canFoldIntoAddrMode(), llvm::RISCVInstrInfo::canFoldIntoAddrMode(), canInstrSubstituteCmpInstr(), collectInlineAsmInstrOperands(), llvm::PPCInstrInfo::combineRLWINM(), llvm::RISCV::RISCVVSETVLIInfoAnalysis::computeInfoForInstr(), doubleVL(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::PPCFrameLowering::emitEpilogue(), llvm::GIMatchTableExecutor::executeMatchTable(), llvm::MachineInstr::findInlineAsmFlagIdx(), llvm::MachineInstr::findTiedOperandIdx(), llvm::AArch64TargetLowering::fixupPtrauthDiscriminator(), foldingOffsetChangesCarry(), foldIntoMemoryOps(), foldShiftedOffset(), foldShxaddIntoScaledMemory(), llvm::X86InstrInfo::getAddrModeFromMemoryOp(), llvm::HexagonInstrInfo::getBundleNoShuf(), llvm::HexagonInstrInfo::getCompoundOpcode(), llvm::X86InstrInfo::getConstValDefinedInReg(), llvm::RISCV::getDemanded(), getEffectiveImm(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::R600InstrInfo::getFlagOp(), llvm::SIRegisterInfo::getFrameIndexInstrOffset(), getImm(), getImmedFromMO(), llvm::SIInstrInfo::getImmOrMaterializedImm(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfsOffsetOperand(), llvm::X86InstrInfo::getMemOperandsWithOffsetWidth(), llvm::AArch64InstrInfo::getMemOperandWithOffsetWidth(), llvm::LanaiInstrInfo::getMemOperandWithOffsetWidth(), llvm::PPCInstrInfo::getMemOperandWithOffsetWidth(), llvm::RISCVInstrInfo::getMemOperandWithOffsetWidth(), getMinimumVLForVSLIDEDOWN_VX(), getRegImmPairPreventingCompression(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::R600InstrInfo::getSrcs(), halfVL(), hasShorterEVEXViaCDisp8(), llvm::HexagonInstrInfo::immediateExtend(), indirectCopyToAGPR(), INITIALIZE_PASS(), insertCallDefsUses(), llvm::PPCInstrInfo::isADDIInstrEligibleForFolding(), llvm::MipsInstrInfo::isAddImmediate(), isAddSub2RegAndConstOnePair(), isAnImmediateOperand(), isCandidate(), llvm::HexagonInstrInfo::isConstExtended(), isConvertibleLEA(), llvm::MachineInstr::isDebugOffsetImm(), isIdentityValue(), isImageTypeWithUnknownFormat(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::SIInstrInfo::isInlineConstant(), isInvariantStore(), llvm::RISCVInstrInfo::isLdStSafeToPair(), llvm::SIInstrInfo::isLegalToSwap(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), isLoadStoreThatCanHandleDisplacement(), llvm::SIInstrInfo::isOperandLegal(), isRelevantAddressingMode(), isSafeToFoldImmIntoCopy(), isSameScalarConst(), llvm::isScale(), isSimilarDispOp(), llvm::HexagonInstrInfo::isStoreToStackSlot(), isUImm2(), isUImm2LSB0(), isUImm7LSB000(), isValidDispOp(), llvm::MachineInstr::mayFoldInlineAsmRegOp(), llvm::SIInstrInfo::moveFlatAddrToVGPR(), llvm::SIInstrInfo::moveToVALUImpl(), needReorderStoreMI(), llvm::SparcInstrInfo::needsUnimp(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::MachineInstr::print(), llvm::BPFAsmPrinter::PrintAsmMemoryOperand(), llvm::LoongArchAsmPrinter::PrintAsmMemoryOperand(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintAsmOperand(), llvm::LoongArchAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::recomputeVPTBlockMask(), llvm::SIInstrInfo::reMaterialize(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::HexagonInstrInfo::setBundleNoShuf(), setImm(), swapRegAndNonRegOperand(), llvm::X86InstrInfo::unfoldMemoryOperand(), verifyInsExtInstruction(), llvm::RISCVInstrInfo::verifyInstruction(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 395 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::AggressiveAntiDepBreaker::BreakAntiDependencies(), canRenameMOP(), llvm::MachineInstr::copyImplicitOps(), llvm::HexagonHazardRecognizer::EmitInstruction(), llvm::PPCInstrInfo::getInstrLatency(), getMopState(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::getRegState(), insertSEH(), isCandidate(), llvm::WebAssembly::isChild(), llvm::SIInstrInfo::isIgnorableUse(), isValidExcessOperand(), llvm::WebAssemblyMCInstLower::lower(), llvm::lowerLoongArchMachineOperandToMCOperand(), llvm::ARCMCInstLower::LowerOperand(), llvm::M68kMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::XCoreMCInstLower::LowerOperand(), LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::CSKYMCInstLower::lowerOperand(), llvm::XtensaAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::SIInstrInfo::physRegUsesConstantBus(), llvm::MachineInstr::print(), print(), printImplicitRegisterFlag(), printMI(), llvm::PPCInstrInfo::replaceInstrOperandWithImm(), llvm::tryFoldSPUpdateIntoPushPop(), llvm::SIInstrInfo::verifyInstruction(), and VerifyLowRegs().
|
inline |
Definition at line 446 of file MachineOperand.h.
References assert(), and isReg().
Referenced by CreateReg(), llvm::getRegState(), print(), and readsReg().
|
inline |
Definition at line 366 of file MachineOperand.h.
References MO_IntrinsicID.
Referenced by llvm::GIMatchTableExecutor::executeMatchTable(), getIntrinsicID(), and setIntrinsicID().
|
inline |
isJTI - Tests if this is a MO_JumpTableIndex operand.
Definition at line 350 of file MachineOperand.h.
References MO_JumpTableIndex.
Referenced by getIndex(), llvm::BPFInstrInfo::getJumpTableIndex(), getJumpTableIndexFromAddr(), GetSymbolRef(), GetSymbolRef(), llvm::HexagonInstrInfo::isConstExtended(), isSimilarDispOp(), isValidDispOp(), llvm::BPFMCInstLower::LowerSymbolOperand(), llvm::LanaiMCInstLower::LowerSymbolOperand(), llvm::M68kMCInstLower::LowerSymbolOperand(), llvm::MSP430MCInstLower::LowerSymbolOperand(), LowerSymbolOperand(), llvm::AVRMCInstLower::lowerSymbolOperand(), lowerSymbolOperand(), lowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandCOFF(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::AArch64MCInstLower::lowerSymbolOperandMachO(), setIndex(), and smallData().
|
inline |
Definition at line 405 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addRegisterKilled(), ChangeToRegister(), llvm::MachineInstr::clearRegisterKills(), llvm::PPCInstrInfo::combineRLWINM(), copyFlagsToImplicitVCC(), copyRegOperand(), CreateReg(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::PPCInstrInfo::foldFrameOffset(), llvm::SIInstrInfo::foldImmediate(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), foldShxaddIntoScaledMemory(), getMopState(), llvm::getRegState(), hash_value, insertDivByZeroTrap(), insertDivByZeroTrap(), is64bitDefwithZeroHigh64bit(), llvm::MachineInstr::isIdenticalTo(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), llvm::PPCInstrInfo::isValidToBeChangedReg(), llvm::TargetInstrInfo::lowerCopy(), lowerTileCopy(), llvm::LivenessInfo::parseOperands(), preserveCondRegFlags(), print(), swapRegAndNonRegOperand(), and unmarkKillReg().
|
inline |
Definition at line 369 of file MachineOperand.h.
References MO_LaneMask.
Referenced by getLaneMask().
|
inline |
isMBB - Tests if this is a MO_MachineBasicBlock operand.
Definition at line 342 of file MachineOperand.h.
References MO_MachineBasicBlock.
Referenced by llvm::HexagonInstrInfo::analyzeBranch(), llvm::PPCInstrInfo::analyzeBranch(), llvm::XtensaInstrInfo::analyzeBranch(), getBranchDestination(), llvm::HexagonInstrInfo::getDotNewPredJumpOp(), getMBB(), llvm::M68kMCInstLower::GetSymbolFromOperand(), getTargetMBB(), llvm::HexagonInstrInfo::immediateExtend(), llvm::HexagonInstrInfo::isConstExtended(), isSimilarDispOp(), isValidDispOp(), llvm::M68kMCInstLower::LowerSymbolOperand(), LowerSymbolOperand(), lowerSymbolOperand(), lowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandCOFF(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::AArch64MCInstLower::lowerSymbolOperandMachO(), llvm::TargetInstrInfo::PredicateInstruction(), setMBB(), splitEdge(), and updateBranches().
|
inline |
Definition at line 363 of file MachineOperand.h.
References MO_MCSymbol.
Referenced by eliminateMove(), llvm::MipsAsmPrinter::emitDirectiveRelocJalr(), foldAddress(), llvm::MipsInstrInfo::genInstrWithNewOpc(), getMCSymbol(), getOffset(), isSimilarDispOp(), isValidDispOp(), isValidExcessOperand(), llvm::LoongArchAsmPrinter::PrintAsmMemoryOperand(), runQCRelaxMarking(), and setOffset().
|
inline |
isMetadata - Tests if this is a MO_Metadata operand.
Definition at line 362 of file MachineOperand.h.
References MO_Metadata.
Referenced by collectInlineAsmInstrOperands(), getMetadata(), isValidExcessOperand(), llvm::MachineInstr::print(), and setMetadata().
|
inline |
Definition at line 367 of file MachineOperand.h.
References MO_Predicate.
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::GIMatchTableExecutor::executeMatchTable(), getPredicate(), and setPredicate().
|
inline |
isReg - Tests if this is a MO_Register operand.
Definition at line 334 of file MachineOperand.h.
References MO_Register.
Referenced by addInstrRequirements(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::MachineInstr::addOperand(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterKilled(), addTargetFlag(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::HexagonSubtarget::adjustSchedDependency(), llvm::MachineInstr::allDefsAreDead(), llvm::MachineInstr::allImplicitDefsAreDead(), llvm::AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(), llvm::AnalyzeVirtRegInBundle(), appendDecorationsForReg(), llvm::HexagonSubtarget::BankConflictMutation::apply(), llvm::RegisterBankInfo::applyDefaultMapping(), llvm::BTFDebug::beginInstruction(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::buildAtomicCompareExchangeInst(), llvm::ScheduleDAGDependencyBuilder::buildDeps(), llvm::BuildMI(), llvm::ModuloScheduleExpanderMVE::canApply(), canCombine(), canCombine(), canCombine(), canCombineFPFusedMultiply(), llvm::HexagonInstrInfo::canExecuteInBundle(), llvm::AArch64InstrInfo::canFoldIntoAddrMode(), llvm::LoongArchInstrInfo::canFoldIntoAddrMode(), llvm::RISCVInstrInfo::canFoldIntoAddrMode(), llvm::canGuaranteeAssignmentAfterRemat(), llvm::HexagonPacketizerList::canPromoteToNewValueStore(), canRenameMOP(), canRenameUpToDef(), ChangeToBA(), ChangeToCPI(), ChangeToDbgInstrRef(), ChangeToES(), ChangeToFPImmediate(), ChangeToFrameIndex(), ChangeToGA(), ChangeToImmediate(), ChangeToMCSymbol(), ChangeToRegister(), ChangeToTargetIndex(), checkVOPDRegConstraints(), llvm::MachineInstr::clearKillInfo(), llvm::MachineInstr::clearRegisterKills(), collectInlineAsmInstrOperands(), collectNocallEntryArgRegs(), CompressEVEXImpl(), computeDelta(), llvm::constrainSelectedInstRegOperands(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::MachineInstr::copyImplicitOps(), copyRegOperand(), createCall(), createCallWithOps(), deduceGEPType(), llvm::X86InstrInfo::describeLoadedValue(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::HexagonHazardRecognizer::EmitInstruction(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitKCFICheck(), llvm::TargetLoweringBase::emitPatchPoint(), eraseGPOpnd(), llvm::GIMatchTableExecutor::executeMatchTable(), findDeadCallerSavedReg(), findDefIdx(), findNextInsertLocation(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::MachineInstr::findTiedOperandIdx(), findUseIdx(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), foldAddress(), llvm::SIInstrInfo::foldImmediate(), foldIntoMemoryOps(), foldLargeOffset(), llvm::X86InstrInfo::foldMemoryOperandImpl(), foldShiftedOffset(), foldShxaddIntoScaledMemory(), fuseInst(), llvm::getAddressFromInstr(), getCallTargetRegOpnd(), getDefRegMask(), llvm::RISCV::getDemanded(), getFMAPatterns(), getFMULPatterns(), getFPReg(), llvm::MachineInstrExpressionTrait::getHashValue(), getImmedFromMO(), getInstReadLaneMask(), llvm::PPCInstrInfo::getInstrLatency(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::RISCVRegisterBankInfo::getInstrMapping(), llvm::RegisterBankInfo::getInstrMappingImpl(), getMaddPatterns(), llvm::HexagonInstrInfo::getMemOperandsWithOffsetWidth(), llvm::SIInstrInfo::getMemOperandsWithOffsetWidth(), llvm::X86InstrInfo::getMemOperandsWithOffsetWidth(), llvm::AArch64InstrInfo::getMemOperandWithOffsetWidth(), llvm::LanaiInstrInfo::getMemOperandWithOffsetWidth(), llvm::PPCInstrInfo::getMemOperandWithOffsetWidth(), llvm::RISCVInstrInfo::getMemOperandWithOffsetWidth(), getMinimumVLForVSLIDEDOWN_VX(), llvm::ReachingDefInfo::getMIOperand(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::SIInstrInfo::getOpSize(), getPostIncrementOperand(), getReg(), llvm::MachineInstr::getRegClassConstraintEffect(), getRegDependency(), getRegOrUndef(), llvm::getRegState(), getShuffleComment(), getSubReg(), getTag(), getTargetFlags(), llvm::SIInstrInfo::getValueUniformity(), llvm::getVRegSubRegDef(), hasLiveThroughUse(), llvm::RISCVInstrInfo::hasReassociableOperands(), llvm::TargetInstrInfo::hasReassociableOperands(), hasRegisterDependency(), llvm::MachineInstr::hasRegisterImplicitUseOperand(), hasSameBaseOpValue(), indirectCopyToAGPR(), INITIALIZE_PASS(), INITIALIZE_PASS(), INITIALIZE_PASS(), llvm::MachineInstr::insert(), insertCallDefsUses(), insertSEH(), instrToSignature(), llvm::ARMBaseInstrInfo::isAddImmediate(), llvm::MipsInstrInfo::isAddImmediate(), llvm::RISCVInstrInfo::isAddImmediate(), isArithmeticBccPair(), llvm::GIMatchTableExecutor::isBaseWithConstantOffset(), isCandidate(), llvm::WebAssembly::isChild(), isCmpRedundantAfterLTZCNT(), isConstReg(), isDead(), isDebug(), isDef(), isEarlyClobber(), isEarlyClobberDefOrUse(), isIdenticalOp(), llvm::MachineInstr::isIdenticalTo(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), isImplicit(), llvm::MachineInstr::isIndirectDebugValue(), isInternalRead(), isInvariantStore(), isKill(), isLdStSafeToCluster(), llvm::RISCVInstrInfo::isLdStSafeToPair(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::SIInstrInfo::isLegalSingleSGPRReadInstOperand(), llvm::HexagonPacketizerList::isLegalToPacketizeTogether(), llvm::SIInstrInfo::isLegalToSwap(), llvm::SMSchedule::isLoopCarriedDefOfUse(), llvm::SIInstrInfo::isMaskedByExec(), isMatchingStartStopPair(), isMMSourceRegister(), isMMThreeBitGPRegister(), llvm::GIMatchTableExecutor::isOperandImmEqual(), llvm::SIInstrInfo::isOperandLegal(), isPhysical(), isPredicatedDef(), isRedundantFlagInstr(), isRegDef(), isRegInClass(), isRegisterLiveInCall(), isRegOrFI(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), isRelevantAddressingMode(), isRenamable(), IsSafeAndProfitableToMove(), isSVERegOp(), isTied(), isTileDef(), isTileDef(), isTileRegDef(), llvm::HexagonInstrInfo::isToBeScheduledASAP(), isTwoAddrUse(), isUndef(), isUse(), isValidExcessOperand(), isValidReg(), isVirtualRegisterOperand(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOperandsVOP3(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::WebAssemblyMCInstLower::lower(), LowerCallResults(), lowerRISCVVMachineInstrToMCInst(), markKillReg(), llvm::AMDGPU::PredicateMapping::match(), llvm::MIPatternMatch::operand_type_match::match(), llvm::CombinerHelper::matchConstantFPOp(), llvm::CombinerHelper::matchConstantOp(), llvm::CombinerHelper::matchEqualDefs(), llvm::CombinerHelper::matchHoistLogicOpWithSameOpcodeHands(), llvm::mayOverlapInLaterIter(), mergeUndefFlag(), MIIsInTerminatorSequence(), llvm::PeelingModuloScheduleExpander::moveStageBetweenBlocks(), oneUseDominatesOtherUses(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::SIInstrInfo::optimizeCompareInstr(), llvm::TargetInstrInfo::optimizeLoadInstr(), llvm::LivenessInfo::parseOperands(), parseOperands(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::MachineInstr::print(), llvm::ARMAsmPrinter::PrintAsmMemoryOperand(), llvm::BPFAsmPrinter::PrintAsmMemoryOperand(), llvm::CSKYAsmPrinter::PrintAsmMemoryOperand(), llvm::LoongArchAsmPrinter::PrintAsmMemoryOperand(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::SystemZAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), printMI(), producesFalseLanesZero(), llvm::PPCInstrInfo::promoteInstr32To64ForElimEXTSW(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), TransferTracker::redefVar(), removeRegisterOperands(), rescheduleCanonically(), runDeadRegisterDefinitions(), llvm::R600SchedStrategy::schedNode(), setImplicit(), setIsDead(), setIsDebug(), setIsDef(), setIsEarlyClobber(), setIsInternalRead(), setIsKill(), setIsRenamable(), setIsUndef(), llvm::MachineInstr::setPhysRegsDeadExcept(), setSubReg(), setTargetFlags(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::PPCInstrInfo::shouldClusterMemOps(), SinkingPreventsImplicitNullCheck(), llvm::MachineInstr::substituteRegister(), llvm::tryFoldSPUpdateIntoPushPop(), llvm::X86InstrInfo::unfoldMemoryOperand(), unmarkKillReg(), llvm::MachineInstr::untieRegOperand(), updateOperandRegConstraints(), UseReg(), llvm::SIInstrInfo::usesConstantBus(), llvm::RegisterBankInfo::InstructionMapping::verify(), llvm::RISCVInstrInfo::verifyInstruction(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), and llvm::MachineRegisterInfo::verifyUseList().
|
inline |
isRegLiveOut - Tests if this is a MO_RegisterLiveOut operand.
Definition at line 360 of file MachineOperand.h.
References MO_RegisterLiveOut.
Referenced by getRegLiveOut().
|
inline |
isRegMask - Tests if this is a MO_RegisterMask operand.
Definition at line 358 of file MachineOperand.h.
References MO_RegisterMask.
Referenced by llvm::MachineInstr::copyImplicitOps(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::ScheduleDAGInstrs::fixupKills(), getRegMask(), llvm::hash_value(), isIdenticalTo(), isValidExcessOperand(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::LanaiInstrInfo::optimizeCompareInstr(), parseOperands(), llvm::MachineInstr::setPhysRegsDeadExcept(), setRegMask(), llvm::MIRParserImpl::setupRegisterInfo(), and llvm::stableHashValue().
| bool MachineOperand::isRenamable | ( | ) | const |
isRenamable - Returns true if this register may be renamed, i.e.
it does not generate a value that is somehow read in a way that is not represented by the Machine IR (e.g. to meet an ABI or ISA requirement). This is only valid on physical register operands. Virtual registers are assumed to always be renamable regardless of the value of this field.
Operands that are renamable can freely be changed to any other register that is a member of the register class returned by MI->getRegClassConstraint().
isRenamable can return false for several different reasons:
Definition at line 135 of file MachineOperand.cpp.
References assert(), getParent(), getReg(), llvm::MachineInstr::IgnoreBundle, isDef(), isPhysical(), isReg(), isUse(), MachineInstr, and MI.
Referenced by canRenameMOP(), CreateReg(), getMopState(), llvm::getRegState(), isRewritableImplicitDef(), llvm::TargetInstrInfo::lowerCopy(), print(), and tryCompressMaskProducer().
|
inline |
Definition at line 368 of file MachineOperand.h.
References MO_ShuffleMask.
Referenced by getShuffleMask().
|
inline |
isSymbol - Tests if this is a MO_ExternalSymbol operand.
Definition at line 354 of file MachineOperand.h.
References MO_ExternalSymbol.
Referenced by foldAddress(), getOffset(), GetSymbolFromOperand(), llvm::M68kMCInstLower::GetSymbolFromOperand(), getSymbolName(), getTag(), llvm::AsmPrinter::handleCallsiteForCallgraph(), isCandidate(), llvm::HexagonInstrInfo::isConstExtended(), isSimilarDispOp(), isValidDispOp(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::matchLibcall(), llvm::WebAssembly::mayThrow(), peephole(), runQCRelaxMarking(), and setOffset().
|
inline |
isTargetIndex - Tests if this is a MO_TargetIndex operand.
Definition at line 348 of file MachineOperand.h.
References MO_TargetIndex.
Referenced by getIndex(), getOffset(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::SIInstrInfo::isOperandLegal(), setIndex(), and setOffset().
|
inline |
Definition at line 459 of file MachineOperand.h.
References assert(), and isReg().
Referenced by canRenameMOP(), ChangeToBA(), ChangeToCPI(), ChangeToDbgInstrRef(), ChangeToES(), ChangeToFPImmediate(), ChangeToFrameIndex(), ChangeToGA(), ChangeToImmediate(), ChangeToMCSymbol(), ChangeToTargetIndex(), llvm::SIInstrInfo::convertToThreeAddress(), llvm::TargetLoweringBase::emitPatchPoint(), llvm::MachineInstr::findTiedOperandIdx(), getTiedUseReg(), llvm::MachineInstr::hasTiedAndOtherReadOf(), llvm::MachineInstr::insert(), isEarlyClobberDefOrUse(), isLiveThroughDef(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), lowerRISCVVMachineInstrToMCInst(), llvm::MachineInstr::print(), print(), llvm::MachineInstr::tieOperands(), and llvm::MachineInstr::untieRegOperand().
|
inline |
Definition at line 410 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addRegisterKilled(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), allPhiOperandsUndefined(), ChangeToRegister(), llvm::RISCV::RISCVVSETVLIInfoAnalysis::computeInfoForInstr(), copyFlagsToImplicitVCC(), copyRegOperand(), createCallWithOps(), CreateReg(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::HexagonInstrInfo::expandPostRAPseudo(), expandSHXDROT(), findUseBetween(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), getInstReadLaneMask(), getMopState(), getRegOrUndef(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::ARMBaseInstrInfo::getRegSequenceLikeInputs(), llvm::getRegState(), llvm::getVRegSubRegDef(), hash_value, llvm::RISCV::hasUndefinedPassthru(), llvm::HexagonInstrInfo::insertBranch(), llvm::TargetInstrInfo::lowerCopy(), mergeUndefFlag(), llvm::SIInstrInfo::moveToVALUImpl(), preserveCondRegFlags(), print(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::MachineBasicBlock::SplitCriticalEdge(), and swapRegAndNonRegOperand().
|
inline |
Definition at line 385 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addOperand(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterKilled(), llvm::HexagonSubtarget::adjustSchedDependency(), llvm::MachineInstr::allDefsAreDead(), llvm::MachineInstr::allImplicitDefsAreDead(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::ScheduleDAGDependencyBuilder::buildDeps(), llvm::MachineInstr::clearKillInfo(), llvm::MachineInstr::clearRegisterKills(), llvm::constrainOperandRegClass(), llvm::constrainOperandRegClass(), llvm::constrainSelectedInstRegOperands(), copyRegOperand(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::MachineInstr::findTiedOperandIdx(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), getCallTargetRegOpnd(), getInstReadLaneMask(), hasRegisterDependency(), llvm::MachineInstr::hasRegisterImplicitUseOperand(), insertCallDefsUses(), isRegisterLiveInCall(), llvm::MachineInstr::isRegTiedToDefOperand(), isRenamable(), isTwoAddrUse(), isValidRegUse(), markKillReg(), llvm::LivenessInfo::parseOperands(), parseOperands(), producesFalseLanesZero(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), runVMV0Elimination(), llvm::MachineInstr::tieOperands(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Return true if this operand can validly be appended to an arbitrary operand list.
i.e. this behaves like an implicit operand.
Definition at line 483 of file MachineOperand.h.
References isImplicit(), isMCSymbol(), isMetadata(), isReg(), and isRegMask().
| void MachineOperand::print | ( | raw_ostream & | os, |
| const TargetRegisterInfo * | TRI = nullptr ) const |
Print the MachineOperand to os.
Providing a valid TRI results in a more target-specific printing. If TRI is null, the function will try to pick it up from the parent.
Definition at line 881 of file MachineOperand.cpp.
Referenced by instrToSignature(), llvm::operator<<(), llvm::MachineInstr::print(), print(), and print().
| void MachineOperand::print | ( | raw_ostream & | os, |
| LLT | TypeToPrint, | ||
| const TargetRegisterInfo * | TRI = nullptr ) const |
Same as print(os, TRI), but allows to specify the low-level type to be printed the same way the full version of print(...) does it.
Definition at line 886 of file MachineOperand.cpp.
References print(), TRI, and tryToGetTargetInfo().
| void MachineOperand::print | ( | raw_ostream & | os, |
| ModuleSlotTracker & | MST, | ||
| LLT | TypeToPrint, | ||
| std::optional< unsigned > | OpIdx, | ||
| bool | PrintDef, | ||
| bool | IsStandalone, | ||
| bool | ShouldPrintRegisterTies, | ||
| unsigned | TiedOperandIdx, | ||
| const TargetRegisterInfo * | TRI ) const |
More complex way of printing a MachineOperand.
| TypeToPrint | specifies the generic type to be printed on uses and defs. It can be determined using MachineInstr::getTypeToPrint. |
| OpIdx | - specifies the index of the operand in machine instruction. This will be used by target dependent MIR formatter. Could be std::nullopt if the index is unknown, e.g. called by dump(). |
| PrintDef | - whether we want to print def on an operand which isDef. Sometimes, if the operand is printed before '=', we don't print def. |
| IsStandalone | - whether we want a verbose output of the MO. This prints extra information that can be easily inferred when printing the whole function, but not when printing only a fragment of it. |
| ShouldPrintRegisterTies | - whether we want to print register ties. Sometimes they are easily determined by the instruction's descriptor (MachineInstr::hasComplexRegiterTies can determine if it's needed). |
| TiedOperandIdx | - if we need to print register ties this needs to provide the index of the tied register. If not, it will be ignored. |
| TRI | - provide more target-specific information to the printer. Unlike the previous function, this one will not try and get the information from it's parent. |
Definition at line 896 of file MachineOperand.cpp.
References assert(), llvm::Intrinsic::getBaseName(), getBlockAddress(), getCFIIndex(), getCImm(), getFPImm(), llvm::BlockAddress::getFunction(), getGlobal(), getImm(), getIndex(), getInstrRefInstrIndex(), getInstrRefOpIndex(), getIntrinsicID(), getLaneMask(), getMBB(), getMCSymbol(), getMetadata(), getMFIfAvailable(), getOffset(), getParent(), getPredicate(), getReg(), getRegLiveOut(), getRegMask(), getShuffleMask(), getSubReg(), getSymbolName(), getTargetIndexName(), getType(), isDead(), isDef(), isEarlyClobber(), isImplicit(), isInternalRead(), llvm::CmpInst::isIntPredicate(), isKill(), isPhysical(), isRenamable(), isTied(), isUndef(), llvm::LLT::isValid(), MachineRegisterInfo, MO_BlockAddress, MO_CFIIndex, MO_CImmediate, MO_ConstantPoolIndex, MO_DbgInstrRef, MO_ExternalSymbol, MO_FPImmediate, MO_FrameIndex, MO_GlobalAddress, MO_Immediate, MO_IntrinsicID, MO_JumpTableIndex, MO_LaneMask, MO_MachineBasicBlock, MO_MCSymbol, MO_Metadata, MO_Predicate, MO_Register, MO_RegisterLiveOut, MO_RegisterMask, MO_ShuffleMask, MO_TargetIndex, MRI, llvm::Metadata::printAsOperand(), llvm::Value::printAsOperand(), printCFI(), printFrameIndex(), llvm::MIRFormatter::printImm(), printIRBlockReference(), llvm::printJumpTableEntryReference(), llvm::PrintLaneMask(), llvm::printLLVMNameWithoutPrefix(), llvm::printMBBReference(), printOperandOffset(), llvm::printReg(), llvm::printRegClassOrBank(), PrintRegMaskNumRegs, printSymbol(), printTargetFlags(), TII, and TRI.
|
static |
Print an IRSlotNumber.
Definition at line 685 of file MachineOperand.cpp.
Referenced by printIRBlockReference(), and llvm::MIRFormatter::printIRValue().
|
static |
Print the offset with explicit +/- signs.
Definition at line 675 of file MachineOperand.cpp.
References llvm::Offset.
Referenced by llvm::MachineMemOperand::print(), and print().
|
static |
Print a stack object reference.
Definition at line 662 of file MachineOperand.cpp.
Referenced by llvm::yaml::ScalarTraits< FrameIndex >::output(), printFrameIndex(), and printStackObjectReference().
|
static |
Print a subreg index operand.
MO_Immediate operands can also be subreg idices. If it's the case, the subreg index name will be printed. MachineInstr::isOperandSubregIdx can be called to check this.
Definition at line 597 of file MachineOperand.cpp.
References TRI.
Referenced by llvm::MachineInstr::print(), and printMIOperand().
|
static |
Print a MCSymbol as an operand.
Definition at line 658 of file MachineOperand.cpp.
Referenced by llvm::MachineInstr::print(), print(), printCFI(), and printMI().
|
static |
Print operand target flags.
Definition at line 606 of file MachineOperand.cpp.
References assert(), llvm::TargetSubtargetInfo::getInstrInfo(), getMFIfAvailable(), llvm::MachineFunction::getSubtarget(), getTargetFlagName(), and TII.
Referenced by print(), and printMIOperand().
|
inline |
readsReg - Returns true if this operand reads the previous value of its register.
A use operand with the <undef> flag set doesn't read its register. A sub-register def implicitly reads the other parts of the register being redefined unless the <undef> flag is set.
This refers to reading the register value from before the current instruction or bundle. Internal bundle reads are not included.
Definition at line 476 of file MachineOperand.h.
References assert(), getSubReg(), isInternalRead(), isReg(), isUndef(), and isUse().
Referenced by llvm::AnalyzeVirtRegInBundle(), llvm::ScheduleDAGDependencyBuilder::buildDeps(), findUseIdx(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), llvm::X86InstrInfo::getPartialRegUpdateClearance(), getRegDependency(), and isLiveThroughDef().
|
inline |
Definition at line 705 of file MachineOperand.h.
References assert(), and isCImm().
Referenced by widenCImmType(), and llvm::LegalizerHelper::widenScalar().
|
inline |
Definition at line 710 of file MachineOperand.h.
|
inline |
Definition at line 700 of file MachineOperand.h.
References assert(), and isImm().
Referenced by llvm::R600InstrInfo::addFlag(), llvm::SwingSchedulerDAG::applyInstrChange(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), llvm::R600InstrInfo::clearFlag(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), llvm::X86InstrInfo::commuteInstructionImpl(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::AArch64PrologueEpilogueCommon::fixupCalleeSaveRestoreStackOffset(), llvm::AArch64TargetLowering::fixupPtrauthDiscriminator(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), llvm::fixupSEHOpcode(), llvm::PPCInstrInfo::foldFrameOffset(), foldInlineAsmMemOperand(), foldInlineAsmMemOperand(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::SystemZInstrInfo::prepareCompareSwapOperands(), processBlock(), llvm::recomputeVPTBlockMask(), llvm::SIInstrInfo::reMaterialize(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::R600InstrInfo::reverseBranchCondition(), llvm::HexagonInstrInfo::setBundleNoShuf(), swapImmOperands(), llvm::SIInstrInfo::swapSourceModifiers(), updateOperandIfDifferent(), and updateOperands().
|
inline |
Definition at line 524 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::X86InstrInfo::classifyLEAReg(), makeImplicit(), llvm::ARMBaseInstrInfo::optimizeSelect(), and llvm::LanaiInstrInfo::optimizeSelect().
|
inline |
Definition at line 723 of file MachineOperand.h.
References assert(), isCPI(), isFI(), isJTI(), and isTargetIndex().
Referenced by ChangeToCPI(), ChangeToFrameIndex(), and ChangeToTargetIndex().
|
inline |
Definition at line 734 of file MachineOperand.h.
References assert(), and isDbgInstrRef().
Referenced by ChangeToDbgInstrRef().
|
inline |
Definition at line 738 of file MachineOperand.h.
References assert(), and isDbgInstrRef().
Referenced by ChangeToDbgInstrRef().
|
inline |
Definition at line 757 of file MachineOperand.h.
References assert(), and isIntrinsicID().
|
inline |
Definition at line 535 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addRegisterDead(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), buildScratchExecCopy(), llvm::MachineInstr::clearRegisterDeads(), copyRegOperand(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::X86InstrInfo::expandPostRAPseudo(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), handleNDDOrNFInstructions(), llvm::SIInstrInfo::insertScratchExecCopy(), maybeRewriteToDrop(), llvm::X86InstrInfo::optimizeCompareInstr(), llvm::SGPRSpillBuilder::readWriteTmpVGPR(), llvm::X86FrameLowering::restoreWin32EHStackPointers(), llvm::MachineInstr::setImplicitPhysRegDefsDead(), llvm::MachineInstrBuilder::setOperandDead(), llvm::MachineInstr::setPhysRegsDeadExcept(), llvm::X86InstrInfo::setSpecialOperandAttr(), transferDeadCC(), and visitNode().
|
inline |
Definition at line 557 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addOperand().
| void MachineOperand::setIsDef | ( | bool | Val = true | ) |
Change a def to a use, or a use to a def.
Definition at line 118 of file MachineOperand.cpp.
References assert(), getMFIfAvailable(), isDebug(), isReg(), MachineRegisterInfo, and MRI.
Referenced by llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::RevertLoopDec(), and setIsUse().
|
inline |
Definition at line 552 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addOperand().
|
inline |
Definition at line 547 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::TargetInstrInfo::commuteInstructionImpl(), and INITIALIZE_PASS().
|
inline |
Definition at line 529 of file MachineOperand.h.
References assert(), isDebug(), and isReg().
Referenced by llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterKilled(), clearKillFlags(), llvm::MachineInstr::clearKillInfo(), llvm::MachineInstr::clearRegisterKills(), llvm::PPCInstrInfo::combineRLWINM(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::R600InstrInfo::copyPhysReg(), copyRegOperand(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::AArch64TargetLowering::fixupPtrauthDiscriminator(), llvm::SIInstrInfo::insertBranch(), insertDivByZeroTrap(), insertDivByZeroTrap(), is64bitDefwithZeroHigh64bit(), LowerMemcpy(), LowerMemset(), lowerTileCopy(), markKillReg(), llvm::AArch64InstrInfo::optimizeCondBranch(), preserveCondRegFlags(), llvm::ARMBlockPlacement::revertWhileToDoLoop(), tryCompressMaskProducer(), llvm::X86InstrInfo::unfoldMemoryOperand(), and unmarkKillReg().
| void MachineOperand::setIsRenamable | ( | bool | Val = true | ) |
Definition at line 153 of file MachineOperand.cpp.
References assert(), getReg(), isPhysical(), and isReg().
Referenced by llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::ARMTargetLowering::EmitKCFICheck(), and tryCompressMaskProducer().
|
inline |
Definition at line 540 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::TargetInstrInfo::commuteInstructionImpl(), copyRegOperand(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::X86InstrInfo::expandPostRAPseudo(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SIInstrInfo::insertBranch(), mergeUndefFlag(), preserveCondRegFlags(), llvm::RegisterOperands::restoreLivenessFlags(), llvm::MachineInstr::setRegisterDefReadUndef(), and substPhysReg().
|
inline |
Definition at line 519 of file MachineOperand.h.
References setIsDef().
|
inline |
Definition at line 743 of file MachineOperand.h.
References assert(), isMBB(), and MBB.
Referenced by llvm::CombinerHelper::applyOptBrCondByInvertingCond(), llvm::LoongArchInstrInfo::insertIndirectBranch(), llvm::AMDGPULegalizerInfo::legalizeIntrinsic(), llvm::PeelingModuloScheduleExpander::moveStageBetweenBlocks(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::MachineBasicBlock::replacePhiUsesWith(), llvm::MachineBasicBlock::SplitCriticalEdge(), splitEdge(), updateBranches(), and updatePHIs().
Definition at line 729 of file MachineOperand.h.
References assert(), and isMetadata().
Referenced by foldOffset(), salvageBuildVector(), llvm::salvageDebugInfoForDbgValue(), and llvm::updateDbgValueForSpill().
|
inline |
Definition at line 715 of file MachineOperand.h.
References assert(), isBlockAddress(), isCPI(), isGlobal(), isMCSymbol(), isSymbol(), isTargetIndex(), and llvm::Offset.
Referenced by ChangeToBA(), ChangeToCPI(), ChangeToES(), ChangeToGA(), ChangeToTargetIndex(), llvm::SIInstrInfo::expandPostRAPseudo(), foldIntoMemoryOps(), overwriteMachineOperandInPlace(), and runQCRelaxMarking().
|
inline |
Definition at line 762 of file MachineOperand.h.
References assert(), and isPredicate().
Referenced by llvm::CombinerHelper::applyNotCmp().
| void MachineOperand::setReg | ( | Register | Reg | ) |
Change the register this operand corresponds to.
Definition at line 72 of file MachineOperand.cpp.
References getMFIfAvailable(), getReg(), MachineRegisterInfo, and MRI.
Referenced by llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::CombinerHelper::applyCombineExtendingLoads(), llvm::RegisterBankInfo::applyDefaultMapping(), llvm::SwingSchedulerDAG::applyInstrChange(), llvm::CombinerHelper::applyOptBrCondByInvertingCond(), llvm::LegalizerHelper::bitcastDst(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), castBufferRsrcArgToV4I32(), castBufferRsrcFromV4I32(), cloneInstr(), llvm::WebAssemblyDebugValueManager::cloneSink(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::constrainOperandRegClass(), RegBankSelectHelper::constrainRegBankUse(), copyRegOperand(), copySubReg(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::M68kInstrInfo::ExpandMOVI(), ExpandMOVImmSExti8(), llvm::M68kInstrInfo::ExpandMOVSZX_RM(), llvm::M68kInstrInfo::ExpandMOVSZX_RR(), llvm::M68kInstrInfo::ExpandMOVX_RM(), llvm::M68kInstrInfo::ExpandMOVX_RR(), expandNOVLXLoad(), expandNOVLXStore(), llvm::X86InstrInfo::expandPostRAPseudo(), llvm::AArch64TargetLowering::fixupPtrauthDiscriminator(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), llvm::X86InstrInfo::foldMemoryOperandImpl(), genAlternativeDpCodeSequence(), generateAssignType(), llvm::SIInstrInfo::handleCopyToPhysHelper(), llvm::SPIRVTargetLowering::insertLogicalCopyOnResult(), is64bitDefwithZeroHigh64bit(), llvm::RISCVLegalizerInfo::legalizeCustom(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOperandsFLAT(), llvm::SIInstrInfo::legalizeOperandsSMRD(), llvm::X86InstrInfo::loadStoreTileReg(), llvm::X86CallLowering::lowerCall(), lowerTileCopy(), lowerVGPRCopyToM0(), maybeRewriteToDrop(), llvm::LegalizerHelper::moreElementsVector(), llvm::LegalizerHelper::moreElementsVectorDst(), llvm::LegalizerHelper::moreElementsVectorSrc(), llvm::PeelingModuloScheduleExpander::moveStageBetweenBlocks(), llvm::LegalizerHelper::narrowScalar(), llvm::LegalizerHelper::narrowScalarDst(), llvm::LegalizerHelper::narrowScalarSrc(), llvm::PeelSingleBlockLoop(), llvm::R600InstrInfo::PredicateInstruction(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::PPCInstrInfo::promoteInstr32To64ForElimEXTSW(), RegBankSelectHelper::reAssignRegBankOnDef(), reinsertVectorIndexAdd(), llvm::SIInstrInfo::reMaterialize(), llvm::CombinerHelper::replaceRegOpWith(), llvm::LegalizationArtifactCombiner::replaceRegOrBuildCopy(), llvm::R600InstrInfo::reverseBranchCondition(), runDeadRegisterDefinitions(), runVMV0Elimination(), salvageBuildVector(), selectCopy(), selectMI(), selectSELRMux(), substituteSimpleCopyRegs(), substPhysReg(), substVirtReg(), tryCompressMaskProducer(), visitNode(), llvm::LegalizerHelper::widenScalarDst(), llvm::LegalizerHelper::widenScalarDstUsingFPTrunc(), llvm::LegalizerHelper::widenScalarSrc(), and llvm::LegalizerHelper::widenScalarSrcUsingFPExt().
Sets value of register mask operand referencing Mask.
The operand does not take ownership of the memory referenced by Mask, it must remain valid for the lifetime of the operand. See CreateRegMask(). Any physreg with a 0 bit in the mask is clobbered by the instruction.
Definition at line 752 of file MachineOperand.h.
References assert(), and isRegMask().
|
inline |
Definition at line 499 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::TargetInstrInfo::commuteInstructionImpl(), copyRegOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), INITIALIZE_PASS(), insertDivByZeroTrap(), is64bitDefwithZeroHigh64bit(), llvm::SIInstrInfo::moveToVALUImpl(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::PPCInstrInfo::promoteInstr32To64ForElimEXTSW(), llvm::SIInstrInfo::reMaterialize(), substPhysReg(), substVirtReg(), and swapRegAndNonRegOperand().
|
inline |
Definition at line 235 of file MachineOperand.h.
References assert(), F, and isReg().
Referenced by ChangeToBA(), ChangeToCPI(), ChangeToDbgInstrRef(), ChangeToES(), ChangeToFPImmediate(), ChangeToFrameIndex(), ChangeToGA(), ChangeToImmediate(), ChangeToMCSymbol(), ChangeToTargetIndex(), llvm::MipsCallLowering::lowerCall(), swapImmOperands(), and swapRegAndNonRegOperand().
| void MachineOperand::substPhysReg | ( | MCRegister | Reg, |
| const TargetRegisterInfo & | TRI ) |
substPhysReg - Substitute the current register with the physical register Reg, taking any existing SubReg into account.
For instance, substPhysReg(eax) will change reg1024:sub_8bit to al.
Definition at line 104 of file MachineOperand.cpp.
References assert(), getSubReg(), isDef(), setIsUndef(), setReg(), setSubReg(), and TRI.
Referenced by llvm::MachineInstr::substituteRegister().
| void MachineOperand::substVirtReg | ( | Register | Reg, |
| unsigned | SubIdx, | ||
| const TargetRegisterInfo & | TRI ) |
substVirtReg - Substitute the current register with the virtual subregister Reg:SubReg.
Take any existing SubReg index into account, using TargetRegisterInfo to compose the subreg indices if necessary. Reg must be a virtual register, SubIdx can be 0.
Definition at line 94 of file MachineOperand.cpp.
References assert(), getSubReg(), setReg(), setSubReg(), and TRI.
Referenced by llvm::MachineInstr::substituteRegister().
|
friend |
Definition at line 1022 of file MachineOperand.h.
References MO_Last.
|
friend |
MachineOperand hash_value overload.
Note that this includes the same information in the hash that isIdenticalTo uses for comparison. It is thus suited for use in hash tables which use that function for equality comparisons only. This must stay exactly in sync with isIdenticalTo above.
References isDead(), isDebug(), isDef(), isKill(), isUndef(), LLVM_ABI, llvm::Offset, and Reg.
|
friend |
Definition at line 1016 of file MachineOperand.h.
References MachineInstr.
Referenced by ChangeToRegister(), getParent(), getParent(), isEarlyClobberDefOrUse(), isRenamable(), and MachineInstr.
|
friend |
Definition at line 1017 of file MachineOperand.h.
References MachineRegisterInfo.
Referenced by ChangeToRegister(), MachineRegisterInfo, print(), setIsDef(), and setReg().
| unsigned llvm::MachineOperand::OffsetLo |
Definition at line 165 of file MachineOperand.h.
| unsigned llvm::MachineOperand::RegNo |
Definition at line 164 of file MachineOperand.h.