|
LLVM
10.0.0
|
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_Last = MO_ShuffleMask } |
Public Member Functions | |
| MachineOperandType | getType () const |
| getType - Returns the MachineOperandType for this operand. More... | |
| unsigned | getTargetFlags () const |
| void | setTargetFlags (unsigned F) |
| void | addTargetFlag (unsigned F) |
| MachineInstr * | getParent () |
| getParent - Return the instruction that this operand belongs to. More... | |
| const MachineInstr * | getParent () const |
| void | clearParent () |
| clearParent - Reset the parent pointer. More... | |
| void | print (raw_ostream &os, const TargetRegisterInfo *TRI=nullptr, const TargetIntrinsicInfo *IntrinsicInfo=nullptr) const |
Print the MachineOperand to os. More... | |
| void | print (raw_ostream &os, ModuleSlotTracker &MST, LLT TypeToPrint, Optional< unsigned > OpIdx, bool PrintDef, bool IsStandalone, bool ShouldPrintRegisterTies, unsigned TiedOperandIdx, const TargetRegisterInfo *TRI, const TargetIntrinsicInfo *IntrinsicInfo) const |
| More complex way of printing a MachineOperand. More... | |
| void | print (raw_ostream &os, LLT TypeToPrint, const TargetRegisterInfo *TRI=nullptr, const TargetIntrinsicInfo *IntrinsicInfo=nullptr) const |
| Same as print(os, TRI, IntrinsicInfo), but allows to specify the low-level type to be printed the same way the full version of print(...) does it. More... | |
| void | dump () const |
| bool | isReg () const |
| isReg - Tests if this is a MO_Register operand. More... | |
| bool | isImm () const |
| isImm - Tests if this is a MO_Immediate operand. More... | |
| bool | isCImm () const |
| isCImm - Test if this is a MO_CImmediate operand. More... | |
| bool | isFPImm () const |
| isFPImm - Tests if this is a MO_FPImmediate operand. More... | |
| bool | isMBB () const |
| isMBB - Tests if this is a MO_MachineBasicBlock operand. More... | |
| bool | isFI () const |
| isFI - Tests if this is a MO_FrameIndex operand. More... | |
| bool | isCPI () const |
| isCPI - Tests if this is a MO_ConstantPoolIndex operand. More... | |
| bool | isTargetIndex () const |
| isTargetIndex - Tests if this is a MO_TargetIndex operand. More... | |
| bool | isJTI () const |
| isJTI - Tests if this is a MO_JumpTableIndex operand. More... | |
| bool | isGlobal () const |
| isGlobal - Tests if this is a MO_GlobalAddress operand. More... | |
| bool | isSymbol () const |
| isSymbol - Tests if this is a MO_ExternalSymbol operand. More... | |
| bool | isBlockAddress () const |
| isBlockAddress - Tests if this is a MO_BlockAddress operand. More... | |
| bool | isRegMask () const |
| isRegMask - Tests if this is a MO_RegisterMask operand. More... | |
| bool | isRegLiveOut () const |
| isRegLiveOut - Tests if this is a MO_RegisterLiveOut operand. More... | |
| bool | isMetadata () const |
| isMetadata - Tests if this is a MO_Metadata operand. More... | |
| bool | isMCSymbol () const |
| bool | isCFIIndex () const |
| bool | isIntrinsicID () const |
| bool | isPredicate () const |
| bool | isShuffleMask () const |
| Register | getReg () const |
| getReg - Returns the register number. More... | |
| unsigned | getSubReg () const |
| bool | isUse () const |
| bool | isDef () const |
| bool | isImplicit () const |
| bool | isDead () const |
| bool | isKill () const |
| bool | isUndef () const |
| bool | isRenamable () const |
| isRenamable - Returns true if this register may be renamed, i.e. More... | |
| bool | isInternalRead () const |
| bool | isEarlyClobber () const |
| bool | isTied () const |
| bool | isDebug () const |
| bool | readsReg () const |
| readsReg - Returns true if this operand reads the previous value of its register. More... | |
| void | setReg (Register Reg) |
| Change the register this operand corresponds to. More... | |
| void | setSubReg (unsigned subReg) |
| void | substVirtReg (Register Reg, unsigned SubIdx, const TargetRegisterInfo &) |
| substVirtReg - Substitute the current register with the virtual subregister Reg:SubReg. More... | |
| void | substPhysReg (MCRegister Reg, const TargetRegisterInfo &) |
| substPhysReg - Substitute the current register with the physical register Reg, taking any existing SubReg into account. More... | |
| void | setIsUse (bool Val=true) |
| void | setIsDef (bool Val=true) |
| Change a def to a use, or a use to a def. More... | |
| void | setImplicit (bool Val=true) |
| void | setIsKill (bool Val=true) |
| void | setIsDead (bool Val=true) |
| void | setIsUndef (bool Val=true) |
| 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 | getCFIIndex () const |
| Intrinsic::ID | getIntrinsicID () const |
| unsigned | getPredicate () const |
| ArrayRef< int > | getShuffleMask () const |
| int64_t | getOffset () const |
| Return the offset from the symbol in this operand. More... | |
| const char * | getSymbolName () const |
| bool | clobbersPhysReg (unsigned PhysReg) const |
| clobbersPhysReg - Returns true if this RegMask operand clobbers PhysReg. More... | |
| const uint32_t * | getRegMask () const |
| getRegMask - Returns a bit mask of registers preserved by this RegMask operand. More... | |
| const uint32_t * | getRegLiveOut () const |
| getRegLiveOut - Returns a bit mask of live-out registers. More... | |
| 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 | setMBB (MachineBasicBlock *MBB) |
| void | setRegMask (const uint32_t *RegMaskPtr) |
| Sets value of register mask operand referencing Mask. More... | |
| void | setPredicate (unsigned Predicate) |
| 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). More... | |
| void | ChangeToImmediate (int64_t ImmVal) |
| ChangeToImmediate - Replace this operand with a new immediate operand of the specified value. More... | |
| void | ChangeToFPImmediate (const ConstantFP *FPImm) |
| ChangeToFPImmediate - Replace this operand with a new FP immediate operand of the specified value. More... | |
| void | ChangeToES (const char *SymName, unsigned TargetFlags=0) |
| ChangeToES - Replace this operand with a new external symbol operand. More... | |
| void | ChangeToGA (const GlobalValue *GV, int64_t Offset, unsigned TargetFlags=0) |
| ChangeToGA - Replace this operand with a new global address operand. More... | |
| void | ChangeToMCSymbol (MCSymbol *Sym) |
| ChangeToMCSymbol - Replace this operand with a new MC symbol operand. More... | |
| void | ChangeToFrameIndex (int Idx) |
| Replace this operand with a frame index. More... | |
| void | ChangeToTargetIndex (unsigned Idx, int64_t Offset, unsigned TargetFlags=0) |
| Replace this operand with a target index. More... | |
| 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. More... | |
Friends | |
| class | MachineInstr |
| class | MachineRegisterInfo |
| struct | DenseMapInfo< MachineOperand > |
| hash_code | hash_value (const MachineOperand &MO) |
| MachineOperand hash_value overload. More... | |
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 50 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_Last | |
Definition at line 52 of file MachineOperand.h.
|
inline |
Definition at line 227 of file MachineOperand.h.
References assert(), F(), and isReg().
Referenced by llvm::HexagonInstrInfo::immediateExtend().
ChangeToES - Replace this operand with a new external symbol operand.
Definition at line 172 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_ExternalSymbol, setOffset(), and setTargetFlags().
Referenced by getRetpolineSymbol(), and setPredicate().
| void MachineOperand::ChangeToFPImmediate | ( | const ConstantFP * | FPImm | ) |
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 163 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), and MO_FPImmediate.
Referenced by setPredicate().
| void MachineOperand::ChangeToFrameIndex | ( | int | Idx | ) |
Replace this operand with a frame index.
Definition at line 208 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_FrameIndex, and setIndex().
Referenced by getVectorSHLImm(), isUncheckedLoadOrStoreOpcode(), setPredicate(), swapRegAndNonRegOperand(), tryToFoldACImm(), llvm::updateDbgValueForSpill(), and updateOperand().
| 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 185 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_GlobalAddress, setOffset(), and setTargetFlags().
Referenced by setPredicate(), and updateOperand().
| void MachineOperand::ChangeToImmediate | ( | int64_t | ImmVal | ) |
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 154 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), and MO_Immediate.
Referenced by llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::SystemZInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::SIInstrInfo::FoldImmediate(), llvm::X86InstrInfo::foldMemoryOperandImpl(), getLeaOP(), getLoadStoreOffsetAlign(), getVectorSHLImm(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), llvm::Mips16RegisterInfo::intRegClass(), llvm::SIInstrInfo::legalizeOperandsVOP2(), replaceFI(), llvm::PPCInstrInfo::replaceInstrOperandWithImm(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::rewriteAArch64FrameIndex(), llvm::rewriteARMFrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), llvm::setDirectAddressInInstr(), setPredicate(), shouldUseAndMask(), shrinkScalarLogicOp(), swapRegAndNonRegOperand(), tryConstantFoldOp(), tryToFoldACImm(), llvm::updateDbgValueForSpill(), and updateOperand().
| void MachineOperand::ChangeToMCSymbol | ( | MCSymbol * | Sym | ) |
ChangeToMCSymbol - Replace this operand with a new MC symbol operand.
Definition at line 198 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), and MO_MCSymbol.
Referenced by setPredicate().
| 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 234 of file MachineOperand.cpp.
References llvm::MachineRegisterInfo::addRegOperandToUseList(), assert(), getMFIfAvailable(), isDead(), isDebug(), isDef(), isReg(), isUndef(), MO_Register, Reg, and llvm::MachineRegisterInfo::removeRegOperandFromUseList().
Referenced by AssignProtectedObjSet(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), getLoadStoreOffsetAlign(), getVectorSHLImm(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), llvm::Mips16RegisterInfo::intRegClass(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::SIInstrInfo::legalizeOperandsVOP3(), llvm::SIInstrInfo::legalizeOpWithMove(), operator<<(), replaceFI(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::rewriteAArch64FrameIndex(), llvm::rewriteARMFrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), llvm::setDirectAddressInInstr(), setPredicate(), shrinkScalarLogicOp(), swapMIOperands(), swapRegAndNonRegOperand(), and llvm::X86InstrInfo::unfoldMemoryOperand().
Replace this operand with a target index.
Definition at line 218 of file MachineOperand.cpp.
References assert(), isReg(), isTied(), MO_TargetIndex, setIndex(), setOffset(), and setTargetFlags().
Referenced by llvm::WebAssemblyDebugValueManager::replaceWithLocal(), and setPredicate().
|
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 247 of file MachineOperand.h.
References dump(), llvm::ISD::FrameIndex, Name, print(), printIRSlotNumber(), printOperandOffset(), printStackObjectReference(), printSubRegIdx(), printSymbol(), printTargetFlags(), and TRI.
|
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 615 of file MachineOperand.h.
References assert().
Referenced by llvm::LiveRegUnits::addRegsInMask(), llvm::AnalyzePhysRegInBundle(), canClobberPhysRegDefs(), canClobberReachingPhysRegUse(), CheckForLiveRegDefMasked(), clobbersAllYmmAndZmmRegs(), clobbersCTR(), clobbersPhysReg(), CriticalPathStep(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), llvm::MachineInstr::findRegisterDefOperandIdx(), getAssignFnsForCC(), llvm::X86RegisterInfo::getReservedRegs(), handleRegMaskClobber(), llvm::LiveVariables::HandleVirtRegDef(), isCallableFunction(), isNopCopy(), isVirtualRegisterOperand(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::TargetLowering::parametersInCSRMatch(), llvm::PhysicalRegisterUsageInfo::print(), llvm::LivePhysRegs::removeRegsInMask(), llvm::LiveRegUnits::removeRegsNotPreserved(), llvm::LivePhysRegs::stepForward(), and false::Chain::str().
clobbersPhysReg - Returns true if this RegMask operand clobbers PhysReg.
Definition at line 622 of file MachineOperand.h.
References clobbersPhysReg(), and getRegMask().
|
inlinestatic |
Definition at line 854 of file MachineOperand.h.
References MO_BlockAddress, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addBlockAddress(), and parseGlobalValue().
|
inlinestatic |
Definition at line 901 of file MachineOperand.h.
References MO_CFIIndex.
Referenced by llvm::MachineInstrBuilder::addCFIIndex(), and parseGlobalValue().
|
inlinestatic |
Definition at line 767 of file MachineOperand.h.
References MO_CImmediate.
Referenced by llvm::MachineInstrBuilder::addCImm(), llvm::CSEMIRBuilder::buildConstant(), and verifyAddrSpace().
|
inlinestatic |
Definition at line 816 of file MachineOperand.h.
References MO_ConstantPoolIndex, setIndex(), setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addConstantPoolIndex(), llvm::X86InstrInfo::foldMemoryOperandImpl(), getUnconditionalBrDisp(), and parseGlobalValue().
|
inlinestatic |
Definition at line 846 of file MachineOperand.h.
References MO_ExternalSymbol, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addExternalSymbol(), llvm::createLibcall(), llvm::createMemLibcall(), and parseGlobalValue().
|
inlinestatic |
Definition at line 811 of file MachineOperand.h.
References MO_FrameIndex, and setIndex().
Referenced by llvm::MachineInstrBuilder::addFrameIndex(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86AddressMode::getFullAddress(), getUnderlyingArgRegs(), getUnsigned(), llvm::FastISel::selectGetElementPtr(), and llvm::LiveDebugVariables::splitRegister().
|
inlinestatic |
Definition at line 773 of file MachineOperand.h.
References MO_FPImmediate.
Referenced by llvm::MachineInstrBuilder::addFPImm(), llvm::CSEMIRBuilder::buildFConstant(), convertImplicitDefToConstZero(), and verifyAddrSpace().
|
inlinestatic |
Definition at line 838 of file MachineOperand.h.
References MO_GlobalAddress, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addGlobalAddress(), llvm::X86AddressMode::getFullAddress(), llvm::CallLowering::lowerCall(), parseGlobalValue(), and llvm::FastISel::selectPatchpoint().
|
inlinestatic |
Definition at line 761 of file MachineOperand.h.
References MO_Immediate, and setImm().
Referenced by llvm::MachineInstrBuilder::addImm(), llvm::LanaiInstrInfo::analyzeBranch(), llvm::SIInstrInfo::analyzeBranchImpl(), appendEndToFunction(), llvm::SIInstrInfo::buildExtractSubRegOrImm(), llvm::X86InstrInfo::commuteInstructionImpl(), convertImplicitDefToConstZero(), llvm::AArch64InstrInfo::describeLoadedValue(), llvm::X86InstrInfo::describeLoadedValue(), llvm::X86InstrInfo::foldMemoryOperandImpl(), getBufferFormatWithCompCount(), llvm::X86AddressMode::getFullAddress(), getLogicalBitOpcode(), getUnconditionalBrDisp(), isImplicitOperandIn(), isPseudoCallIndirect(), llvm::SIInstrInfo::moveToVALU(), parseGlobalValue(), llvm::predOps(), llvm::FastISel::selectGetElementPtr(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::HexagonInstrInfo::setBundleNoShuf(), llvm::AMDGPUInstructionSelector::setupMF(), toString(), and tryToFoldACImm().
|
inlinestatic |
Definition at line 907 of file MachineOperand.h.
References MO_IntrinsicID.
Referenced by llvm::MachineInstrBuilder::addIntrinsicID(), and parseGlobalValue().
|
inlinestatic |
Definition at line 832 of file MachineOperand.h.
References MO_JumpTableIndex, setIndex(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addJumpTableIndex(), and parseGlobalValue().
|
inlinestatic |
Definition at line 804 of file MachineOperand.h.
References MO_MachineBasicBlock, setMBB(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addMBB(), getUnsigned(), and splitBlock().
|
inlinestatic |
Definition at line 892 of file MachineOperand.h.
References MO_MCSymbol, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addSym(), NoAutoPaddingScope::changeAndComment(), and parseGlobalValue().
|
inlinestatic |
Definition at line 886 of file MachineOperand.h.
References MO_Metadata.
Referenced by llvm::MachineInstrBuilder::addMetadata(), and parseGlobalValue().
|
inlinestatic |
Definition at line 913 of file MachineOperand.h.
References MO_Predicate.
Referenced by llvm::MachineInstrBuilder::addPredicate(), and parseGlobalValue().
|
inlinestatic |
Definition at line 779 of file MachineOperand.h.
References assert(), isDead(), isDebug(), isDef(), isEarlyClobber(), isInternalRead(), isKill(), isRenamable(), isUndef(), MO_Register, Reg, RegNo, setSubReg(), and SubReg.
Referenced by llvm::MachineInstr::addImplicitDefUseOperands(), llvm::GISelInstProfileBuilder::addNodeIDRegType(), llvm::MachineInstrBuilder::addReg(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterKilled(), llvm::SIInstrInfo::buildExtractSubRegOrImm(), llvm::condCodeOp(), convertImplicitDefToConstZero(), llvm::X86InstrInfo::convertToThreeAddress(), createPHIsForSelects(), llvm::createSIWholeQuadModePass(), llvm::TargetInstrInfo::describeLoadedValue(), describeMOVrrLoadedValue(), describeORRLoadedValue(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::HexagonFrameLowering::emitPrologue(), enableAllocFrameElim(), findNextInsertLocation(), fixupGlobalSaddr(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::HexagonFrameLowering::getAlignaInstr(), getBufferFormatWithCompCount(), llvm::X86AddressMode::getFullAddress(), getLogicalBitOpcode(), getUnderlyingArgRegs(), llvm::LiveVariables::HandleVirtRegDef(), imposeStackOrdering(), INITIALIZE_PASS(), isConstant(), isCopy(), isFunctionEntryBlock(), isImplicitOperandIn(), llvm::SIInstrInfo::legalizeGenericOperand(), llvm::CallLowering::lowerCall(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::predOps(), removeExternalCFGEdges(), llvm::rewriteT2FrameIndex(), llvm::FastISel::selectGetElementPtr(), llvm::FastISel::selectIntrinsicCall(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::FastISel::selectXRayCustomEvent(), llvm::FastISel::selectXRayTypedEvent(), llvm::AMDGPUInstructionSelector::setupMF(), llvm::t1CondCodeOp(), llvm::tryFoldSPUpdateIntoPushPop(), and llvm::LiveDebugVariables::~LiveDebugVariables().
|
inlinestatic |
Definition at line 880 of file MachineOperand.h.
References assert(), llvm::BitmaskEnumDetail::Mask(), and MO_RegisterLiveOut.
Referenced by INITIALIZE_PASS(), and parseGlobalValue().
|
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 874 of file MachineOperand.h.
References assert(), llvm::BitmaskEnumDetail::Mask(), and MO_RegisterMask.
Referenced by llvm::MachineInstrBuilder::addRegMask(), parseGlobalValue(), and llvm::FastISel::selectPatchpoint().
|
inlinestatic |
Definition at line 919 of file MachineOperand.h.
References llvm::BitmaskEnumDetail::Mask(), and MO_ShuffleMask.
Referenced by llvm::MachineInstrBuilder::addShuffleMask(), and parseGlobalValue().
|
inlinestatic |
Definition at line 824 of file MachineOperand.h.
References MO_TargetIndex, setIndex(), setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addTargetIndex(), and parseGlobalValue().
| LLVM_DUMP_METHOD void MachineOperand::dump | ( | ) | const |
Definition at line 949 of file MachineOperand.cpp.
References llvm::dbgs().
Referenced by clearParent(), and rescheduleCanonically().
|
inline |
Definition at line 566 of file MachineOperand.h.
References assert(), and isBlockAddress().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::ARCMCInstLower::ARCMCInstLower(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), EmitGCCInlineAsmStr(), EmitHiLo(), llvm::LanaiMCInstLower::GetBlockAddressSymbol(), llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::SystemZMCInstLower::getExpr(), getRetOpcode(), getVectorSHLImm(), llvm::hash_value(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), isIdenticalTo(), isSimilarDispOp(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), print(), and llvm::MipsAsmPrinter::printOperand().
|
inline |
Definition at line 576 of file MachineOperand.h.
References assert(), and isCFIIndex().
Referenced by llvm::AsmPrinter::emitCFIInstruction(), getRegsUsedByPHIs(), llvm::hash_value(), INITIALIZE_PASS(), isIdenticalTo(), and print().
|
inline |
Definition at line 540 of file MachineOperand.h.
References assert(), and isCImm().
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::GISelKnownBits::computeNumSignBits(), emitDebugValueComment(), llvm::InstructionSelector::executeMatchTable(), llvm::AMDGPU::getBaseWithConstantOffset(), llvm::getConstantVRegValWithLookThrough(), getDebugLocValue(), getImmedFromMO(), getLeaOP(), getShiftTypeForInst(), getVectorSHLImm(), llvm::hash_value(), isConstant(), isIdenticalTo(), isRegOtherThanSPAndFP(), isStackPtrRelative(), llvm::LegalizerHelper::narrowScalar(), llvm::LegalizerHelper::narrowScalarShift(), print(), shouldUseAndMask(), and llvm::LegalizerHelper::widenScalar().
|
inline |
Definition at line 545 of file MachineOperand.h.
References assert(), and isFPImm().
Referenced by llvm::DwarfUnit::addConstantFPValue(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), canTurnIntoCOPY(), ConvertDoubleToBytes(), emitDebugValueComment(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::getConstantFPVRegVal(), llvm::getConstantVRegValWithLookThrough(), getDebugLocValue(), getVectorSHLImm(), llvm::hash_value(), llvm::HexagonLowerToMC(), isIdenticalTo(), isRegOtherThanSPAndFP(), isStackPtrRelative(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::WebAssemblyMCInstLower::lower(), llvm::ARMAsmPrinter::lowerOperand(), print(), shouldUseAndMask(), VisitGlobalVariableForEmission(), and llvm::LegalizerHelper::widenScalar().
|
inline |
Definition at line 561 of file MachineOperand.h.
References assert(), and isGlobal().
Referenced by llvm::MachineInstrBuilder::addDisp(), addExclusiveRegPair(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::ARCMCInstLower::ARCMCInstLower(), llvm::BTFDebug::beginInstruction(), llvm::EHStreamer::callToNoUnwindFunction(), collectCallSiteParameters(), createPHIsForCMOVsInSinkBB(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::BTFDebug::endFunctionImpl(), eraseDeadBBsAndChildren(), foldImmediates(), for(), llvm::getAddressFromInstr(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), llvm::LanaiMCInstLower::GetGlobalAddressSymbol(), llvm::BPFMCInstLower::GetGlobalAddressSymbol(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), getLeaOP(), GetSymbolFromOperand(), getVariantKind(), getVectorSHLImm(), hasAnyNonFlatUseOfReg(), llvm::hash_value(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), INITIALIZE_PASS(), llvm::BTFDebug::InstLower(), IsCallReturnTwice(), llvm::AArch64CallLowering::isEligibleForTailCallOptimization(), isIdenticalTo(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSimilarDispOp(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), llvm::MipsCallLowering::lowerCall(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), llvm::AVRMCInstLower::lowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), makeImplicit(), llvm::WebAssembly::mayThrow(), llvm::rdf::operator<<(), print(), llvm::AVRAsmPrinter::printOperand(), llvm::ARMAsmPrinter::PrintSymbolOperand(), llvm::AsmPrinter::PrintSymbolOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), queryCallee(), llvm::DetectRoundChange::runOnMachineFunction(), swapMIOperands(), and VisitGlobalVariableForEmission().
|
inline |
Definition at line 535 of file MachineOperand.h.
References assert(), and isImm().
Referenced by llvm::DwarfUnit::addConstantValue(), llvm::MachineInstrBuilder::addDisp(), addExclusiveRegPair(), llvm::R600InstrInfo::addFlag(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), addRegsToSet(), adjustDefLatency(), llvm::LanaiInstrInfo::analyzeCompare(), llvm::AArch64InstrInfo::analyzeCompare(), llvm::SystemZInstrInfo::analyzeCompare(), llvm::HexagonInstrInfo::analyzeCompare(), llvm::ARMBaseInstrInfo::analyzeCompare(), llvm::PPCInstrInfo::analyzeCompare(), llvm::X86InstrInfo::analyzeCompare(), llvm::SwingSchedulerDAG::applyInstrChange(), llvm::HexagonInstrInfo::areMemAccessesTriviallyDisjoint(), AssignProtectedObjSet(), llvm::SIInstrInfo::buildExtractSubRegOrImm(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), callWaitsOnFunctionReturn(), canBeExpandedToORR(), canCompareBeNewValueJump(), canFoldIntoCSel(), llvm::X86InstrInfo::canMakeTailCallConditional(), canTurnIntoCOPY(), NoAutoPaddingScope::changeAndComment(), llvm::X86InstrInfo::classifyLEAReg(), llvm::R600InstrInfo::clearFlag(), llvm::PPCInstrInfo::commuteInstructionImpl(), llvm::X86InstrInfo::commuteInstructionImpl(), compareMachineOp(), CompareMBBNumbers(), computeExprForSpill(), ConvertDoubleToBytes(), convertTailJumpOpcode(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::SIInstrInfo::convertToThreeAddress(), createPHIsForCMOVsInSinkBB(), createPHIsForSelects(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createSIAddIMGInitPass(), llvm::createSIModeRegisterPass(), llvm::createSparcDelaySlotFillerPass(), llvm::AArch64InstrInfo::describeLoadedValue(), llvm::X86InstrInfo::describeLoadedValue(), llvm::SparcFrameLowering::eliminateCallFramePseudoInstr(), llvm::VEFrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreFrameLowering::eliminateCallFramePseudoInstr(), llvm::ARCFrameLowering::eliminateCallFramePseudoInstr(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::VERegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::AsmPrinter::emitFrameAlloc(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), EmitGCCInlineAsmStr(), EmitHiLo(), emitIndirectDst(), emitIndirectSrc(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), EmitMSInlineAsmStr(), EmitNop(), emitPostSt(), emitSelectPseudo(), emitXBegin(), llvm::HexagonEvaluator::evaluate(), llvm::BitTracker::MachineEvaluator::evaluate(), llvm::InstructionSelector::executeMatchTable(), llvm::SIInstrInfo::expandMovDPP64(), ExpandMOVImmSExti8(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::R600InstrInfo::expandPostRAPseudo(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::SystemZInstrInfo::expandPostRAPseudo(), llvm::SparcTargetLowering::expandSelectCC(), expandSHXDROT(), llvm::X86InstrInfo::findCommutedOpIndices(), findCondCodeUsedByInstr(), llvm::MachineInstr::findInlineAsmFlagIdx(), findSingleRegDef(), findStartOfTree(), llvm::MachineInstr::findTiedOperandIdx(), findUncondBrI(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), fixupSEHOpcode(), llvm::foldFrameOffset(), llvm::SystemZInstrInfo::FoldImmediate(), llvm::PPCInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::SIInstrInfo::FoldImmediate(), foldImmediates(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), followSubRegDef(), for(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), genFusedMultiply(), llvm::getAddressFromInstr(), getADDriFromLEA(), getAdjustedCmp(), llvm::HexagonInstrInfo::getBaseAndOffset(), llvm::AMDGPU::getBaseWithConstantOffset(), llvm::SystemZInstrInfo::getBranchInfo(), getBufferFormatWithCompCount(), getBufferStoreFormatOpcode(), llvm::ARMFrameLowering::getCalleeSaves(), getCmpForPseudo(), getComparePred(), getCompareSourceReg(), llvm::HexagonInstrInfo::getCompoundCandidateGroup(), llvm::HexagonInstrInfo::getCompoundOpcode(), llvm::getConstantVRegValWithLookThrough(), getDebugLocValue(), getDSShaderTypeValue(), llvm::HexagonInstrInfo::getDuplexCandidateGroup(), getDwarfRegNum(), llvm::X86InstrInfo::getExecutionDomainCustom(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::X86InstrInfo::getFrameAdjustment(), llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), llvm::MSP430InstrInfo::getFramePoppedByCallee(), llvm::TargetInstrInfo::getFrameSize(), llvm::TargetInstrInfo::getFrameTotalSize(), llvm::SystemZInstrInfo::getFusedCompare(), getHWReg(), llvm::StackMapOpers::getID(), GetImm(), getImmedFromMO(), getINCDECFromLEA(), llvm::HexagonInstrInfo::getIncrementValue(), llvm::MachineInstr::getInlineAsmDialect(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), llvm::getInstrPredicate(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::MipsInstrInfo::getInstSizeInBytes(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), getLeaOP(), getLoadStoreOffsetAlign(), getLoadStoreOffsetSizeInBits(), getLogicalBitOpcode(), getLSMultipleTransferSize(), getMappedOp(), llvm::SIInstrInfo::getMemOperandWithOffset(), llvm::X86InstrInfo::getMemOperandWithOffset(), llvm::LanaiInstrInfo::getMemOperandWithOffsetWidth(), llvm::RISCVInstrInfo::getMemOperandWithOffsetWidth(), llvm::AArch64InstrInfo::getMemOperandWithOffsetWidth(), llvm::PPCInstrInfo::getMemOperandWithOffsetWidth(), getMemoryOpOffset(), llvm::SIRegisterInfo::getMUBUFInstrOffset(), llvm::SIInstrInfo::getNamedImmOperand(), getNewValueJumpOpcode(), llvm::PatchPointOpers::getNumCallArgs(), getNumMicroOpsSwiftLdSt(), llvm::StackMapOpers::getNumPatchBytes(), llvm::SIInstrInfo::getNumWaitStates(), getOModValue(), llvm::AArch64InstrInfo::getOutliningType(), getPostIndexedLoadStoreOpcode(), llvm::ARMBaseInstrInfo::getPredicate(), getReassignedChan(), llvm::MachineInstr::getRegClassConstraint(), getRegSeqInit(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::getRegSequenceSubReg(), getRetOpcode(), llvm::X86InstrInfo::getSPAdjust(), getSrcFromCopy(), llvm::R600InstrInfo::getSrcs(), getStoreOffset(), getTruncatedShiftCount(), getUnconditionalBrDisp(), getVariantKind(), getVectorSHLImm(), llvm::getVPTInstrPredicate(), getWinAllocaAmount(), llvm::hash_value(), HashMachineInstr(), hasLEAOffset(), llvm::SIInstrInfo::hasModifiersSet(), llvm::MachineInstr::hasUnmodeledSideEffects(), llvm::HexagonLowerToMC(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), llvm::BTFDebug::InstLower(), llvm::Mips16RegisterInfo::intRegClass(), llvm::isAArch64FrameOffsetLegal(), isAddConstantOp(), llvm::PPCInstrInfo::isADDIInstrEligibleForFolding(), llvm::AArch64InstrInfo::isAddImmediate(), llvm::ARMBaseInstrInfo::isAddImmediate(), llvm::ARMBaseInstrInfo::isAddrMode3OpMinusReg(), isAddWithImmediate(), llvm::ARMBaseInstrInfo::isAm2ScaledReg(), llvm::AArch64InstrInfo::isAsCheapAsAMove(), llvm::PPCInstrInfo::isBDNZ(), llvm::AArch64InstrInfo::isCoalescableExtInstr(), isCompareZero(), isConstant(), llvm::HexagonInstrInfo::isConstExtended(), llvm::MachineInstr::isConvergent(), llvm::MipsSEInstrInfo::isCopyInstrImpl(), llvm::AArch64InstrInfo::isCopyInstrImpl(), isCrossCopy(), llvm::AArch64InstrInfo::isFalkorShiftExtFast(), isFpMulInstruction(), llvm::PPCRegisterInfo::isFrameOffsetLegal(), llvm::AArch64InstrInfo::isGPRCopy(), llvm::AArch64InstrInfo::isGPRZero(), isGreaterThanNBitTFRI(), isIdenticalTo(), isIdentityValue(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), isImplicitlyDef(), isIncrementOrDecrement(), llvm::SIInstrInfo::isInlineConstant(), isIntersect(), isKImmOperand(), isKImmOrKUImmOperand(), isKUImmOperand(), isLdOffsetInRangeOfSt(), llvm::ARMBaseInstrInfo::isLdstScaledReg(), llvm::ARMBaseInstrInfo::isLdstScaledRegNotPlusLsl2(), llvm::ARMBaseInstrInfo::isLdstSoMinusReg(), llvm::RISCVInstrInfo::isLoadFromStackSlot(), llvm::LanaiInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::AVRInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), isLoadStoreThatCanHandleDisplacement(), isMergeableLdStUpdate(), llvm::R600InstrInfo::isPredicable(), llvm::ARMBaseInstrInfo::isPredicated(), isRedundantFlagInstr(), isRegOtherThanSPAndFP(), isRelevantAddressingMode(), isReverseInlineImm(), isSafeToFoldImmIntoCopy(), llvm::isScale(), llvm::AArch64InstrInfo::isSchedulingBoundary(), isSendMsgTraceDataOrGDS(), isSignExtendingOp(), isSimpleBD12Move(), isSimpleMove(), llvm::MachineInstr::isStackAligningInlineAsm(), isStackPtrRelative(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::RISCVInstrInfo::isStoreToStackSlot(), llvm::LanaiInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AVRInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), isSuitableForMask(), llvm::ARMBaseInstrInfo::isSwiftFastImmShift(), llvm::PPCInstrInfo::isTOCSaveMI(), isVRegCompatibleReg(), isZeroExtendingOp(), isZeroImm(), llvm::MipsInstrInfo::isZeroImm(), llvm::AArch64LegalizerInfo::legalizeIntrinsic(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::LanaiMCInstLower::Lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::LegalizerHelper::lower(), llvm::LegalizerHelper::lowerDynStackAlloc(), llvm::LegalizerHelper::lowerExtract(), llvm::LegalizerHelper::lowerInsert(), llvm::XCoreMCInstLower::LowerOperand(), llvm::ARCMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::MipsMCInstLower::LowerOperand(), LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), lowerRIEfLow(), lowerRIHigh(), lowerRILow(), llvm::LowerRISCVMachineOperandToMCOperand(), lowerSubvectorLoad(), lowerSubvectorStore(), makeImplicit(), matchSwap(), llvm::MachineInstr::mayLoad(), llvm::MachineInstr::mayStore(), Mips16WhichOp8uOr16simm(), llvm::SIInstrInfo::moveToVALU(), llvm::LegalizerHelper::narrowScalar(), llvm::LegalizerHelper::narrowScalarExtract(), llvm::LegalizerHelper::narrowScalarInsert(), llvm::PPCRegisterInfo::needsFrameBaseReg(), operator<<(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::LanaiInstrInfo::optimizeSelect(), llvm::ARMBaseInstrInfo::optimizeSelect(), optimizeVcndVcmpPair(), performCustomAdjustments(), llvm::MIPrinter::print(), print(), llvm::MachineInstr::print(), llvm::SystemZAsmPrinter::PrintAsmMemoryOperand(), llvm::AVRAsmPrinter::PrintAsmMemoryOperand(), llvm::HexagonAsmPrinter::PrintAsmMemoryOperand(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), llvm::AVRAsmPrinter::PrintAsmOperand(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintAsmOperand(), printConstant(), llvm::MipsAsmPrinter::printFCCOperand(), llvm::AVRAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), profitImm(), llvm::StackMaps::recordStackMap(), RemoveDeadAddBetweenLEAAndJT(), removeRedundantBlockingStores(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::rewriteAArch64FrameIndex(), llvm::rewriteARMFrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), rewriteP2Align(), llvm::rewriteT2FrameIndex(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::AMDGPURegisterBankInfo::selectStoreIntrinsic(), llvm::X86InstrInfo::setExecutionDomainCustom(), llvm::AMDGPUInstructionSelector::setupMF(), llvm::AArch64InstrInfo::shouldClusterMemOps(), shouldUseAndMask(), shrinkScalarCompare(), shrinkScalarLogicOp(), swapMIOperands(), swapRegAndNonRegOperand(), llvm::SIInstrInfo::swapSourceModifiers(), llvm::SystemZInstrInfo::SystemZInstrInfo(), tieOpsIfNeeded(), llvm::LegalizationArtifactCombiner::tryCombineExtract(), tryConstantFoldOp(), tryFoldInst(), tryOptimizeLEAtoMOV(), tryToFindRegisterToRename(), tryToFoldACImm(), llvm::X86InstrInfo::unfoldMemoryOperand(), updateDefinedRegisters(), updateKillStatus(), updateOperand(), llvm::HexagonPacketizerList::useCalleesSP(), llvm::HexagonPacketizerList::useCallersSP(), verifyInsExtInstruction(), llvm::RISCVInstrInfo::verifyInstruction(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), and VisitGlobalVariableForEmission().
|
inline |
Definition at line 555 of file MachineOperand.h.
References assert(), isCPI(), isFI(), isJTI(), and isTargetIndex().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::ARCMCInstLower::ARCMCInstLower(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), BBHasFallthrough(), BBIsJumpedOver(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::VERegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), EmitHiLo(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::TargetLoweringBase::emitPatchPoint(), foldImmediates(), for(), llvm::getAddressFromInstr(), getConstantFromPool(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::LanaiMCInstLower::GetConstantPoolIndexSymbol(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::LanaiMCInstLower::GetJumpTableSymbol(), getMemsetValue(), getRetOpcode(), llvm::X86InstrInfo::getSPAdjust(), getStartOrEndSlot(), getUnconditionalBrDisp(), getVectorSHLImm(), llvm::hash_value(), HashMachineInstr(), hasSameBaseOpValue(), llvm::HexagonLowerToMC(), llvm::GISelKnownBits::inferPtrAlignment(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), INITIALIZE_PASS(), insertCSRRestores(), isIdenticalTo(), llvm::RISCVInstrInfo::isLoadFromStackSlot(), llvm::MipsSEInstrInfo::isLoadFromStackSlot(), llvm::ARCInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::LanaiInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::AVRInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::SIInstrInfo::isSGPRStackAccess(), isSimilarDispOp(), isSimpleMove(), llvm::SIInstrInfo::isStackAccess(), isStackPtrRelative(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::RISCVInstrInfo::isStoreToStackSlot(), llvm::MipsSEInstrInfo::isStoreToStackSlot(), llvm::LanaiInstrInfo::isStoreToStackSlot(), llvm::ARCInstrInfo::isStoreToStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AVRInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), lookupCandidateBaseReg(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), MatchingStackOffset(), false::IntervalSorter::operator()(), llvm::MIPrinter::print(), print(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), llvm::ARMBaseInstrInfo::reMaterialize(), llvm::ScheduleDAGMILive::scheduleMI(), llvm::AArch64InstrInfo::shouldClusterMemOps(), swapRegAndNonRegOperand(), tryToFoldACImm(), and X86SelectAddress().
|
inline |
Definition at line 581 of file MachineOperand.h.
References assert(), and isIntrinsicID().
Referenced by canTurnIntoCOPY(), llvm::createMemLibcall(), llvm::InstructionSelector::executeMatchTable(), llvm::MachineInstr::getIntrinsicID(), llvm::hash_value(), isIdenticalTo(), and print().
|
inline |
Definition at line 550 of file MachineOperand.h.
References assert(), and isMBB().
Referenced by addIncomingValuesToPHIs(), allPhiOperandsUndefined(), llvm::MipsInstrInfo::analyzeBranch(), llvm::CombinerHelper::applyCombineShuffleVector(), llvm::CombinerHelper::applyElideBrByInvertingCond(), llvm::SwingSchedulerDAG::applyInstrChange(), llvm::AMDGPURegisterBankInfo::applyMappingImpl(), llvm::ARCMCInstLower::ARCMCInstLower(), BBIsJumpedOver(), canTurnIntoCOPY(), NoAutoPaddingScope::changeAndComment(), changeFCMPPredToAArch64CC(), ConvertDoubleToBytes(), llvm::LiveRangeCalc::createDeadDefs(), llvm::createHexagonHardwareLoops(), createPHIsForCMOVsInSinkBB(), dominatesAllUsesOf(), EmitGCCInlineAsmStr(), EmitHiLo(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), eraseDeadBBsAndChildren(), llvm::HexagonEvaluator::evaluate(), llvm::BitTracker::MachineEvaluator::evaluate(), llvm::AArch64InstrInfo::expandPostRAPseudo(), llvm::LegalizerHelper::fewerElementsVectorPhi(), findCorrespondingPred(), fixPHIsInSucc(), llvm::RISCVInstrInfo::getBranchDestBlock(), llvm::AVRInstrInfo::getBranchDestBlock(), llvm::AArch64InstrInfo::getBranchDestBlock(), llvm::SIInstrInfo::getBranchDestBlock(), getCmpForPseudo(), llvm::HexagonInstrInfo::getDotNewPredJumpOp(), llvm::SystemZMCInstLower::getExpr(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::PHI_iterator::getIncomingBlock(), getInitPhiReg(), getLoopPhiReg(), llvm::SystemZII::Branch::getMBBTarget(), getNewValueJumpOpcode(), getPHIDeps(), getPHIPred(), getPhiRegs(), getPHISrcRegOpIdx(), getRegsUsedByPHIs(), getTargetMBB(), getUnconditionalBrDisp(), getVariantKind(), getVectorSHLImm(), llvm::hash_value(), HashMachineInstr(), hasVulnerableLoad(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), INITIALIZE_PASS(), insertPHI(), isConstant(), isIdenticalTo(), isImmValidForOpcode(), isSimilarDispOp(), IsUnconditionalJump(), llvm::AMDGPULegalizerInfo::legalizeIntrinsic(), llvm::SIInstrInfo::legalizeOperands(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::LanaiMCInstLower::Lower(), LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), llvm::LegalizerHelper::moreElementsVectorPhi(), llvm::LegalizerHelper::narrowScalar(), llvm::rdf::operator<<(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::PeelSingleBlockLoop(), llvm::PPCInstrInfo::PredicateInstruction(), print(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::AVRAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::RegBankSelect::RepairingPlacement::RepairingPlacement(), llvm::MachineBasicBlock::replacePhiUsesWith(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), splitBlock(), splitEdge(), splitMBB(), updatePHIs(), VisitGlobalVariableForEmission(), and llvm::LegalizerHelper::widenScalar().
|
inline |
Definition at line 571 of file MachineOperand.h.
References assert(), and isMCSymbol().
Referenced by emitDirectiveRelocJalr(), llvm::AsmPrinter::emitFrameAlloc(), llvm::MipsInstrInfo::genInstrWithNewOpc(), getRetOpcode(), getRetpolineSymbol(), llvm::hash_value(), llvm::MipsMCInstLower::Initialize(), isIdenticalTo(), isSimilarDispOp(), llvm::WebAssemblyMCInstLower::lower(), llvm::AArch64MCInstLower::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), and print().
Definition at line 644 of file MachineOperand.h.
References assert(), and isMetadata().
Referenced by EmitGCCInlineAsmStr(), EmitHiLo(), llvm::MachineInstr::getDebugExpression(), llvm::MachineInstr::getDebugLabel(), llvm::MachineInstr::getDebugVariable(), llvm::hash_value(), isIdenticalTo(), llvm::LegalizerHelper::lowerReadRegister(), print(), and llvm::MachineInstr::print().
|
inline |
Return the offset from the symbol in this operand.
This always returns 0 for ExternalSymbol operands.
Definition at line 598 of file MachineOperand.h.
References assert(), isBlockAddress(), isCPI(), isGlobal(), isMCSymbol(), isSymbol(), and isTargetIndex().
Referenced by llvm::MachineInstrBuilder::addDisp(), addExclusiveRegPair(), llvm::ARCMCInstLower::ARCMCInstLower(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), foldImmediates(), for(), getConstantFromPool(), llvm::HexagonInstrInfo::getDuplexCandidateGroup(), llvm::SystemZMCInstLower::getExpr(), GetSymbolRef(), getVariantKind(), getVectorSHLImm(), llvm::hash_value(), HashMachineInstr(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), INITIALIZE_PASS(), isIdenticalTo(), lowerSymbolOperand(), llvm::AVRMCInstLower::lowerSymbolOperand(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::BPFMCInstLower::LowerSymbolOperand(), llvm::LanaiMCInstLower::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandCOFF(), llvm::AArch64MCInstLower::lowerSymbolOperandDarwin(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), makeImplicit(), print(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ARMAsmPrinter::PrintSymbolOperand(), llvm::AsmPrinter::PrintSymbolOperand(), and llvm::ARMBaseInstrInfo::produceSameValue().
|
inline |
getParent - Return the instruction that this operand belongs to.
Definition at line 236 of file MachineOperand.h.
Referenced by addSegmentsWithValNo(), llvm::AnalyzeVirtRegInBundle(), llvm::CombinerHelper::applyCombineShuffleVector(), createBBSelectReg(), createDeadDef(), CriticalPathStep(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::ModuloScheduleExpander::expand(), findSingleRegDef(), findSingleRegUse(), llvm::Localizer::getAnalysisUsage(), llvm::RegBankSelect::getAnalysisUsage(), getFoldableImm(), getImmedFromMO(), getLoadStoreOffsetSizeInBits(), getMFIfAvailable(), llvm::MachineRegisterInfo::defusechain_iterator< ReturnUses, ReturnDefs, SkipDebug, ByOperand, ByInstr, ByBundle >::getOperandNo(), getShiftTypeForInst(), GetSymbolRef(), getUsedRegMask(), getVariantKind(), INITIALIZE_PASS(), isCrossCopy(), isIdentityValue(), llvm::SIInstrInfo::isInlineConstant(), isKilled(), isKImmOperand(), isKUImmOperand(), llvm::SIInstrInfo::isLegalRegOperand(), isNoReturnDef(), isRenamable(), isStackPtrRelative(), isVirtualRegisterOperand(), moveForSingleUse(), llvm::SIInstrInfo::moveToVALU(), oneUseDominatesOtherUses(), llvm::MachineRegisterInfo::defusechain_instr_iterator< ReturnUses, ReturnDefs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator*(), llvm::MachineRegisterInfo::defusechain_iterator< ReturnUses, ReturnDefs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator++(), llvm::MachineRegisterInfo::defusechain_instr_iterator< ReturnUses, ReturnDefs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator++(), operator<<(), llvm::MIPrinter::print(), print(), rematerializeCheapDef(), replaceDominatedUses(), llvm::CombinerHelper::replaceRegOpWith(), replaceRegUsesAfterLoop(), llvm::MachineSSAUpdater::RewriteUse(), scavengeVReg(), llvm::ScheduleDAGMILive::scheduleMI(), llvm::AMDGPUInstructionSelector::select(), llvm::AMDGPUInstructionSelector::setupMF(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::SIInstrInfo::shouldClusterMemOps(), false::Chain::str(), llvm::TailDuplicator::tailDuplicateAndUpdate(), tryFoldInst(), tryToFoldACImm(), llvm::FastISel::tryToFoldLoad(), updateKillStatus(), UpdatePredRedefs(), llvm::MachineTraceMetrics::Ensemble::verify(), llvm::MachineFunction::verify(), and llvm::MachineRegisterInfo::verifyUseList().
|
inline |
Definition at line 237 of file MachineOperand.h.
|
inline |
Definition at line 586 of file MachineOperand.h.
References assert(), and isPredicate().
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::CombinerHelper::applyElideBrByInvertingCond(), canTurnIntoCOPY(), changeFCMPPredToAArch64CC(), llvm::InstructionSelector::executeMatchTable(), llvm::LegalizerHelper::fewerElementsVectorCmp(), getInsertVecEltOpInfo(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), getV_CMPOpcode(), getVectorSHLImm(), llvm::hash_value(), isIdenticalTo(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::LegalizerHelper::narrowScalar(), print(), and llvm::LegalizerHelper::widenScalar().
|
inline |
getReg - Returns the register number.
Definition at line 358 of file MachineOperand.h.
References assert(), isReg(), and Register.
Referenced by llvm::AArch64CallLowering::AArch64CallLowering(), addExclusiveRegPair(), addLiveInRegs(), llvm::AMDGPURegisterBankInfo::addMappingFromTable(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterKilled(), llvm::MachineRegisterInfo::addRegOperandToUseList(), addRegsToSet(), addSegmentsWithValNo(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::ScheduleDAGInstrs::addVRegUseDeps(), llvm::SITargetLowering::AdjustInstrPostInstrSelection(), llvm::HexagonSubtarget::adjustSchedDependency(), allPhiOperandsUndefined(), llvm::analyzeArguments(), llvm::LanaiInstrInfo::analyzeCompare(), llvm::AArch64InstrInfo::analyzeCompare(), llvm::SystemZInstrInfo::analyzeCompare(), llvm::HexagonInstrInfo::analyzeCompare(), llvm::ARMBaseInstrInfo::analyzeCompare(), llvm::PPCInstrInfo::analyzeCompare(), llvm::X86InstrInfo::analyzeCompare(), llvm::AnalyzePhysRegInBundle(), llvm::AnalyzeVirtRegInBundle(), AnyAliasLiveIn(), llvm::LiveRangeEdit::anyRematerializable(), llvm::HexagonSubtarget::CallMutation::apply(), llvm::HexagonSubtarget::BankConflictMutation::apply(), llvm::CombinerHelper::applyCombineConcatVectors(), llvm::CombinerHelper::applyCombineCopy(), llvm::CombinerHelper::applyCombineExtendingLoads(), llvm::CombinerHelper::applyCombineIndexedLoadStore(), llvm::CombinerHelper::applyCombineShuffleVector(), llvm::RegisterBankInfo::applyDefaultMapping(), llvm::CombinerHelper::applyElideBrByInvertingCond(), llvm::SwingSchedulerDAG::applyInstrChange(), llvm::AMDGPURegisterBankInfo::applyMappingImpl(), llvm::AMDGPURegisterBankInfo::applyMappingWideLoad(), llvm::CombinerHelper::applyPtrAddImmedChain(), llvm::HexagonInstrInfo::areMemAccessesTriviallyDisjoint(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), atomicReadDroppedOnZero(), attemptDebugCopyProp(), llvm::biasPhysReg(), llvm::ARMBaseInstrInfo::breakPartialRegDependency(), llvm::X86InstrInfo::breakPartialRegDependency(), llvm::SIInstrInfo::buildExtractSubReg(), llvm::BuildMI(), buildMUBUFOffsetLoadStore(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::SIInstrInfo::buildShrunkInst(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), callWaitsOnFunctionReturn(), canCombine(), canCompareBeNewValueJump(), llvm::HexagonInstrInfo::canExecuteInBundle(), canFoldCopy(), canFoldIntoCSel(), canFoldIntoSelect(), llvm::HexagonPacketizerList::canPromoteToDotCur(), llvm::HexagonPacketizerList::canPromoteToNewValueStore(), canRenameUpToDef(), llvm::SIInstrInfo::canShrink(), canTurnIntoCOPY(), NoAutoPaddingScope::changeAndComment(), llvm::MachineInstr::changeDebugValuesDefReg(), changeFCMPPredToAArch64CC(), CheckXWPInstr(), llvm::X86InstrInfo::classifyLEAReg(), llvm::HexagonPacketizerList::cleanUpDotCur(), clearKillFlags(), clobbersCTR(), collectCallSiteParameters(), llvm::MachineInstr::collectDebugValues(), llvm::AMDGPURegisterBankInfo::collectWaterfallOperands(), CombineCVTAToLocal(), llvm::WebAssemblyInstrInfo::commuteInstructionImpl(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::PPCInstrInfo::commuteInstructionImpl(), llvm::X86InstrInfo::commuteInstructionImpl(), compareMachineOp(), computeBranchTargetAndInversion(), computeBytesPoppedByCalleeForSRet(), llvm::GISelKnownBits::computeKnownBitsImpl(), llvm::GISelKnownBits::computeNumSignBits(), llvm::TargetSchedModel::computeOutputLatency(), ConsecutiveInstr(), llvm::constrainOperandRegClass(), llvm::AMDGPURegisterBankInfo::constrainOpWithReadfirstlane(), llvm::constrainSelectedInstRegOperands(), ContainsReg(), conversionLibcall(), ConvertDoubleToBytes(), convertImplicitDefToConstZero(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::SIInstrInfo::convertToThreeAddress(), copyHint(), llvm::SIInstrInfo::copyPhysReg(), copyRegOperand(), llvm::createBreakFalseDeps(), llvm::createCopyConstrainDAGMutation(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::CreateEmptyPHI(), llvm::createHexagonHardwareLoops(), llvm::createLanaiDelaySlotFillerPass(), llvm::createMemLibcall(), createPHIsForCMOVsInSinkBB(), createPHIsForSelects(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createSIPreAllocateWWMRegsPass(), llvm::createSIWholeQuadModePass(), llvm::createSparcDelaySlotFillerPass(), llvm::createX86FixupBWInsts(), llvm::createX86FixupSetCC(), llvm::createXCoreFrameToArgsOffsetEliminationPass(), CriticalPathStep(), llvm::ScheduleDAGInstrs::deadDefHasNoUse(), definesFullReg(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::HexagonInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), llvm::AArch64InstrInfo::describeLoadedValue(), llvm::X86InstrInfo::describeLoadedValue(), describeMOVrrLoadedValue(), llvm::CombinerHelper::dominates(), dumpMachineInstrRangeWithSlotIndex(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARCRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), emitBuildPairF64Pseudo(), emitDebugValueComment(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), EmitGCCInlineAsmStr(), EmitHiLo(), llvm::AsmPrinter::emitImplicitDef(), emitIndirectDst(), emitIndirectSrc(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::AVRTargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), emitKill(), emitLoadM0FromVGPRLoop(), emitLoadSRsrcFromVGPRLoop(), EmitNop(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), emitPostSt(), emitReadCycleWidePseudo(), emitSelectPseudo(), llvm::MSP430TargetLowering::EmitShiftInstr(), emitSplitF64Pseudo(), emitXBegin(), eraseDeadBBsAndChildren(), eraseGPOpnd(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::InstructionSelector::executeMatchTable(), llvm::ModuloScheduleExpander::expand(), Expand2AddrUndef(), expandLoadStackGuard(), expandMOV32r1(), llvm::SIInstrInfo::expandMovDPP64(), ExpandMOVImmSExti8(), expandNOVLXLoad(), expandNOVLXStore(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::R600InstrInfo::expandPostRAPseudo(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::AArch64InstrInfo::expandPostRAPseudo(), llvm::SystemZInstrInfo::expandPostRAPseudo(), llvm::PPCInstrInfo::expandPostRAPseudo(), llvm::SparcTargetLowering::expandSelectCC(), expandSHXDROT(), llvm::PPCInstrInfo::expandVSXMemPseudo(), llvm::CallLowering::ValueHandler::extendRegister(), llvm::DbgVariableLocation::extractFromMachineInstruction(), llvm::LegalizerHelper::fewerElementsVectorBasic(), llvm::LegalizerHelper::fewerElementsVectorBuildVector(), llvm::LegalizerHelper::fewerElementsVectorCasts(), llvm::LegalizerHelper::fewerElementsVectorCmp(), llvm::LegalizerHelper::fewerElementsVectorImplicitDef(), llvm::LegalizerHelper::fewerElementsVectorMultiEltType(), llvm::LegalizerHelper::fewerElementsVectorPhi(), llvm::LegalizerHelper::fewerElementsVectorSelect(), llvm::LegalizerHelper::fewerElementsVectorUnmergeValues(), llvm::finalizeBundle(), findDeadCallerSavedReg(), findIncDecAfter(), findIntrinsicID(), findNextInsertLocation(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::findRegisterUseOperandIdx(), findSingleRegDef(), findSingleRegUse(), findSRegBaseAndIndex(), findStartOfTree(), findUncondBrI(), llvm::SIInstrInfo::fixImplicitOperands(), llvm::fixStackStores(), fixupCalleeSaveRestoreStackOffset(), llvm::PPCInstrInfo::fixupIsDeadOrKill(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), llvm::foldFrameOffset(), llvm::PPCInstrInfo::foldFrameOffset(), llvm::SystemZInstrInfo::FoldImmediate(), llvm::PPCInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::SIInstrInfo::FoldImmediate(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::SIInstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), foldVGPRCopyIntoRegSequence(), for(), forceReg(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), genFusedMultiply(), genMaddR(), llvm::getAddressFromInstr(), llvm::Localizer::getAnalysisUsage(), llvm::RegBankSelect::getAnalysisUsage(), getAssignFnsForCC(), getBaseAddressRegister(), llvm::AMDGPU::getBaseWithConstantOffset(), getBufferFormatWithCompCount(), getBufferStoreFormatOpcode(), getCallTargetRegOpnd(), getCmpForPseudo(), getComparePred(), getCompareSourceReg(), llvm::HexagonInstrInfo::getCompoundCandidateGroup(), llvm::HexagonInstrInfo::getCompoundOpcode(), getCondFromFCMOV(), llvm::getConstantVRegValWithLookThrough(), llvm::SIRegisterInfo::getConstrainedRegClassForOperand(), getCopyRegClasses(), getDataDeps(), llvm::AMDGPURegisterBankInfo::getDefaultMappingAllVGPR(), llvm::AMDGPURegisterBankInfo::getDefaultMappingSOP(), llvm::AMDGPURegisterBankInfo::getDefaultMappingVOP(), llvm::getDefIgnoringCopies(), llvm::PPCInstrInfo::getDefMIPostRA(), getDefRegMask(), getDSShaderTypeValue(), GetDSubRegs(), llvm::HexagonInstrInfo::getDuplexCandidateGroup(), getDwarfRegNum(), llvm::X86InstrInfo::getExecutionDomainCustom(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), getFoldableImm(), getFPReg(), llvm::ARMBaseInstrInfo::getFramePred(), llvm::NVPTXAsmPrinter::getFunctionFrameSymbol(), llvm::SystemZInstrInfo::getFusedCompare(), llvm::HexagonHazardRecognizer::getHazardType(), llvm::AMDGPURegisterBankInfo::getImageMapping(), getImmedFromMO(), getImmOrMaterializedImm(), getINCDECFromLEA(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::PHI_iterator::getIncomingValue(), getInitPhiReg(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), getInsertVecEltOpInfo(), llvm::X86RegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrAlternativeMappings(), llvm::AMDGPURegisterBankInfo::getInstrAlternativeMappings(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::MipsRegisterBankInfo::getInstrMapping(), llvm::X86RegisterBankInfo::getInstrMapping(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMappingForLoad(), llvm::RegisterBankInfo::getInstrMappingImpl(), llvm::getInstrPredicate(), getInstrVecReg(), llvm::GISelKnownBits::getKnownBits(), getLaneCopyOpcode(), llvm::ScheduleDAGInstrs::getLaneMaskForMO(), getLeaOP(), getLiveLanesAt(), getLoadInfo(), getLogicalBitOpcode(), getLoopPhiReg(), getLSMultipleTransferSize(), getMappedOp(), llvm::SIInstrInfo::getMemOperandWithOffset(), llvm::X86InstrInfo::getMemOperandWithOffset(), getMopState(), getNewSource(), getNewValueJumpOpcode(), llvm::rdf::DataFlowGraph::getNextShadow(), getNumMicroOpsSwiftLdSt(), getOffsetFromIndices(), getOModValue(), llvm::PPCInstrInfo::getOperandLatency(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::SIInstrInfo::getOpRegClass(), llvm::SIInstrInfo::getOpSize(), llvm::AArch64InstrInfo::getOutliningCandidateInfo(), llvm::AArch64InstrInfo::getOutliningType(), llvm::X86GenRegisterBankInfo::getPartialMappingIdx(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), llvm::X86InstrInfo::getPartialRegUpdateClearance(), llvm::R600AsmPrinter::getPassName(), getPHIDeps(), getPHIDestReg(), getPhiRegs(), getPHISourceReg(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::GetPHIValue(), getPostIndexedLoadStoreOpcode(), getRC32(), getReassignedChan(), llvm::MachineInstrBuilder::getReg(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::RegisterBankInfo::getRegBankFromConstraints(), llvm::MachineInstr::getRegClassConstraintEffectForVReg(), getRegClassesForCopy(), getRegClassForUnfoldedLoad(), getRegClassFromGRPhysReg(), getRegSeqInit(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::ARMBaseInstrInfo::getRegSequenceLikeInputs(), llvm::getRegState(), llvm::getRegSubRegPair(), getRegsUsedByPHIs(), getRetOpcode(), getRetpolineSymbol(), getShiftTypeForInst(), getShuffleComment(), getSingleDef(), llvm::X86InstrInfo::getSPAdjust(), getSrcFromCopy(), llvm::R600InstrInfo::getSrcs(), getSubOpcode(), getTag(), getTypeFromTypeIdx(), llvm::MachineInstr::getTypeToPrint(), getUnconditionalBrDisp(), llvm::X86InstrInfo::getUndefRegClearance(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::GetUndefVal(), getUnderlyingObjects(), getUsedRegMask(), getV_CMPOpcode(), llvm::MachineSSAUpdater::GetValueInMiddleOfBlock(), llvm::SIInstrInfo::getVALUOp(), getVariantKind(), getVectorSHLImm(), llvm::getVPTInstrPredicate(), getWinAllocaAmount(), llvm::MipsTargetLowering::HandleByVal(), handleNormalInst(), llvm::LiveVariables::HandleVirtRegDef(), HandleVRSaveUpdate(), llvm::hash_value(), HashMachineInstr(), hasInefficientLEABaseReg(), llvm::X86InstrInfo::hasLiveCondCodeDef(), hasOneNonDBGUseInst(), hasRAWHazard(), llvm::TargetInstrInfo::hasReassociableOperands(), llvm::TargetInstrInfo::hasReassociableSibling(), hasRegisterDependency(), llvm::MachineInstr::hasRegisterImplicitUseOperand(), hasSameBaseOpValue(), hasUseAfterLoop(), hasVectorOperands(), llvm::HexagonLowerToMC(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), insertCopy(), insertDivByZeroTrap(), InsertLDR_STR(), insertPHI(), llvm::BTFDebug::InstLower(), llvm::rdf::CopyPropagation::interpretAsCopy(), llvm::Mips16RegisterInfo::intRegClass(), llvm::AArch64InstrInfo::isAddImmediate(), llvm::ARMBaseInstrInfo::isAddImmediate(), llvm::ARMBaseInstrInfo::isAddrMode3OpImm(), llvm::ARMBaseInstrInfo::isAddrMode3OpMinusReg(), isAddWithImmediate(), isAmbiguous(), llvm::AArch64InstrInfo::isAsCheapAsAMove(), llvm::RISCVInstrInfo::isAsCheapAsAMove(), isBackwardPropagatableCopy(), llvm::InstructionSelector::isBaseWithConstantOffset(), isCallerPreservedOrConstPhysReg(), isCandidateStore(), llvm::AArch64InstrInfo::isCandidateToMergeOrPair(), llvm::WebAssembly::isChild(), isCoalescable(), llvm::AArch64InstrInfo::isCoalescableExtInstr(), llvm::X86InstrInfo::isCoalescableExtInstr(), llvm::PPCInstrInfo::isCoalescableExtInstr(), isCompareZero(), isConstant(), llvm::MachineInstr::isConstantValuePHI(), isCopy(), isCopyFeedingInvariantStore(), isCopyFromExec(), llvm::ARMBaseInstrInfo::isCopyInstrImpl(), llvm::AArch64InstrInfo::isCopyInstrImpl(), isCopyToExec(), isCopyToReg(), llvm::IsCPSRDead< MachineInstr >(), isCrossCopy(), isCSRestore(), isDbgValueDescribedByReg(), isDebug(), isDefInSubRange(), isDescribedByReg(), isEFLAGSLive(), llvm::rdf::TargetOperandInfo::isFixedReg(), isFpMulInstruction(), llvm::AArch64InstrInfo::isFPRCopy(), isFullCopyOf(), isFullExecCopy(), llvm::AArch64InstrInfo::isGPRCopy(), llvm::AArch64InstrInfo::isGPRZero(), isIdenticalOp(), isIdenticalTo(), llvm::MachineInstr::isIdenticalTo(), llvm::MachineInstr::isIdentityCopy(), isIdentityValue(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), isImmValidForOpcode(), isImplicitlyDef(), isIncrementOrDecrement(), isIntersect(), llvm::ARMBaseInstrInfo::isLDMBaseRegInList(), isLEA(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::HexagonPacketizerList::isLegalToPacketizeTogether(), isLiveOut(), llvm::RISCVInstrInfo::isLoadFromStackSlot(), llvm::MipsSEInstrInfo::isLoadFromStackSlot(), llvm::ARCInstrInfo::isLoadFromStackSlot(), llvm::LanaiInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::AVRInstrInfo::isLoadFromStackSlot(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), isLoadStoreThatCanHandleDisplacement(), isLocalCopy(), isLogicalOpOnExec(), llvm::SMSchedule::isLoopCarriedDefOfUse(), llvm::SwingSchedulerDAG::isLoopCarriedDep(), isMMSourceRegister(), isMMThreeBitGPRegister(), IsMovepDestinationRegPair(), isNonFoldablePartialRegisterLoad(), isNopCopy(), llvm::InstructionSelector::isOperandImmEqual(), isOperandKill(), llvm::SIInstrInfo::isOperandLegal(), isORCopyInst(), isPhysicalRegCopy(), llvm::R600InstrInfo::isPredicated(), isPreISelGenericFloatingPointOpcode(), isPromotableZeroStoreInst(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), isRedundantFlagInstr(), isRegOtherThanSPAndFP(), isRelevantAddressingMode(), isRematerializable(), isRenamable(), IsSafeAndProfitableToMove(), llvm::AMDGPURegisterBankInfo::isSALUMapping(), isSameReg(), isSecondInstructionInSequence(), isSExtLoad(), llvm::SIInstrInfo::isSGPRStackAccess(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSimpleBD12Move(), isSimpleIf(), isSimpleIndexCalc(), isSimpleMove(), llvm::SIInstrInfo::isStackAccess(), isStackPtrRelative(), llvm::RISCVInstrInfo::isStoreToStackSlot(), llvm::MipsSEInstrInfo::isStoreToStackSlot(), llvm::LanaiInstrInfo::isStoreToStackSlot(), llvm::ARCInstrInfo::isStoreToStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AVRInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::X86InstrInfo::isStoreToStackSlot(), isSubRegOf(), isSuitableForMask(), llvm::HexagonInstrInfo::isToBeScheduledASAP(), llvm::PPCInstrInfo::isTOCSaveMI(), isTransformable(), isTwoAddrUse(), isUncheckedLoadOrStoreOpcode(), llvm::MachineInstr::isUndefDebugValue(), isValidCopy(), llvm::PPCInstrInfo::isValidToBeChangedReg(), llvm::SIInstrInfo::isVGPRCopy(), isVirtualRegisterOperand(), isVRegCompatibleReg(), llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast(), llvm::AMDGPULegalizerInfo::legalizeAtomicCmpXChg(), llvm::MipsLegalizerInfo::legalizeCustom(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::AMDGPULegalizerInfo::legalizeExtractVectorElt(), llvm::AMDGPULegalizerInfo::legalizeFastUnsafeFDIV(), llvm::AMDGPULegalizerInfo::legalizeFceil(), llvm::AMDGPULegalizerInfo::legalizeFDIV(), llvm::AMDGPULegalizerInfo::legalizeFDIV16(), llvm::AMDGPULegalizerInfo::legalizeFDIV32(), llvm::AMDGPULegalizerInfo::legalizeFDIV64(), llvm::AMDGPULegalizerInfo::legalizeFDIVFastIntrin(), llvm::AMDGPULegalizerInfo::legalizeFMad(), llvm::AMDGPULegalizerInfo::legalizeFrint(), llvm::SIInstrInfo::legalizeGenericOperand(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), llvm::AMDGPULegalizerInfo::legalizeImplicitArgPtr(), llvm::AMDGPULegalizerInfo::legalizeInsertVectorElt(), llvm::AArch64LegalizerInfo::legalizeIntrinsic(), llvm::AMDGPULegalizerInfo::legalizeIntrinsic(), llvm::AMDGPULegalizerInfo::legalizeIntrinsicTrunc(), llvm::AMDGPULegalizerInfo::legalizeIsAddrSpace(), llvm::AMDGPULegalizerInfo::legalizeITOFP(), llvm::AMDGPULegalizerInfo::legalizeLoad(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOperandsSMRD(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::SIInstrInfo::legalizeOperandsVOP3(), llvm::AMDGPULegalizerInfo::legalizePreloadedArgIntrin(), llvm::AMDGPULegalizerInfo::legalizeRawBufferStore(), llvm::AMDGPULegalizerInfo::legalizeSinCos(), llvm::LegalizerHelper::libcall(), llvm::MipsSEInstrInfo::loadImmediate(), llvm::Mips16InstrInfo::loadImmediate(), loadM0FromVGPR(), llvm::Localizer::Localizer(), llvm::TargetRegisterInfo::lookThruCopyLike(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::LanaiMCInstLower::Lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::LegalizerHelper::lower(), llvm::LegalizerHelper::lowerBitCount(), llvm::LegalizerHelper::lowerBitreverse(), llvm::LegalizerHelper::lowerBswap(), llvm::ARMCallLowering::lowerCall(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerDynamicAreaOffset(), llvm::LegalizerHelper::lowerDynStackAlloc(), llvm::LegalizerHelper::lowerExtract(), llvm::LegalizerHelper::lowerFCopySign(), llvm::LegalizerHelper::lowerFMad(), llvm::LegalizerHelper::lowerFMinNumMaxNum(), LowerFPToInt(), llvm::LegalizerHelper::lowerFPTOUI(), llvm::LegalizerHelper::lowerInsert(), llvm::LegalizerHelper::lowerIntrinsicRound(), llvm::LegalizerHelper::lowerMinMax(), llvm::XCoreMCInstLower::LowerOperand(), llvm::ARCMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::MipsMCInstLower::LowerOperand(), LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::LegalizerHelper::lowerReadRegister(), lowerRIEfLow(), lowerRIHigh(), lowerRILow(), llvm::LowerRISCVMachineOperandToMCOperand(), llvm::LegalizerHelper::lowerSADDO_SSUBO(), llvm::AMDGPURegisterBankInfo::lowerScalarMinMax(), llvm::LegalizerHelper::lowerShuffleVector(), llvm::LegalizerHelper::lowerSITOFP(), lowerSubvectorLoad(), lowerSubvectorStore(), llvm::LegalizerHelper::lowerU64ToF32BitOps(), llvm::LegalizerHelper::lowerUITOFP(), llvm::LegalizerHelper::lowerUnmergeValues(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), makeImplicit(), llvm::rdf::DataFlowGraph::makeRegRef(), llvm::MIPatternMatch::BinaryOp_match< LHS_P, RHS_P, Opcode, Commutable >::match(), llvm::MIPatternMatch::UnaryOp_match< SrcTy, Opcode >::match(), llvm::CombinerHelper::matchCombineConcatVectors(), llvm::CombinerHelper::matchCombineCopy(), llvm::CombinerHelper::matchCombineShuffleVector(), llvm::CombinerHelper::matchElideBrByInvertingCond(), llvm::CombinerHelper::matchPtrAddImmedChain(), matchSwap(), mayAlias(), mayCombineMisaligned(), llvm::SIInstrInfo::mayReadEXEC(), MIIsInTerminatorSequence(), Mips16WhichOp8uOr16simm(), llvm::LegalizerHelper::moreElementsVector(), moveAndTeeForMultiUse(), llvm::MachineRegisterInfo::moveOperands(), llvm::SIInstrInfo::moveToVALU(), llvm::LegalizerHelper::narrowScalar(), llvm::LegalizerHelper::narrowScalarBasic(), llvm::LegalizerHelper::narrowScalarExtract(), llvm::LegalizerHelper::narrowScalarInsert(), llvm::LegalizerHelper::narrowScalarMul(), llvm::LegalizerHelper::narrowScalarSelect(), llvm::LegalizerHelper::narrowScalarShift(), llvm::LegalizerHelper::narrowScalarShiftByConstant(), llvm::AggressiveAntiDepBreaker::Observe(), oneUseDominatesOtherUses(), operator<<(), optimizeCall(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::AArch64InstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeCompareInstr(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::X86InstrInfo::optimizeLoadInstr(), llvm::LanaiInstrInfo::optimizeSelect(), llvm::ARMBaseInstrInfo::optimizeSelect(), optimizeVcndVcmpPair(), llvm::SMSchedule::orderDependence(), parseOperands(), llvm::PeelSingleBlockLoop(), performSink(), preservesValueOf(), print(), llvm::SystemZAsmPrinter::PrintAsmMemoryOperand(), llvm::AVRAsmPrinter::PrintAsmMemoryOperand(), llvm::ARMAsmPrinter::PrintAsmMemoryOperand(), printAsmMRegister(), llvm::AVRAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::AVRAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), profitImm(), pushDepHeight(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::TargetInstrInfo::reassociateOps(), llvm::LegalizerHelper::reduceLoadStoreWidth(), regOverlapsSet(), llvm::WebAssemblyAsmPrinter::regToString(), llvm::R600SchedStrategy::releaseBottomNode(), llvm::X86InstrInfo::reMaterialize(), llvm::ARMBaseInstrInfo::reMaterialize(), llvm::TargetInstrInfo::reMaterialize(), removeCopies(), RemoveDeadAddBetweenLEAAndJT(), removeKillInfo(), llvm::MachineRegisterInfo::removeRegOperandFromUseList(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::RegBankSelect::RepairingPlacement::RepairingPlacement(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::PPCInstrInfo::replaceInstrOperandWithImm(), rescheduleCanonically(), llvm::SIRegisterInfo::resolveFrameIndex(), resultTests(), llvm::rewriteAArch64FrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), llvm::UnreachableBlockElimPass::run(), llvm::InstructionSelect::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::MachinePipeliner::runOnMachineFunction(), llvm::R600SchedStrategy::schedNode(), llvm::ScheduleDAGMILive::scheduleMI(), llvm::AMDGPUInstructionSelector::select(), selectCopy(), selectFCMPOpc(), selectMergeValues(), selectSelectOpc(), llvm::AMDGPURegisterBankInfo::selectStoreIntrinsic(), selectSubregisterCopy(), selectUnmergeValues(), llvm::ARMBaseInstrInfo::setExecutionDomain(), llvm::X86InstrInfo::setExecutionDomainCustom(), setIsRenamable(), setM0ToIndexFromSGPR(), setReg(), llvm::MipsRegisterBankInfo::setRegBank(), llvm::AMDGPUInstructionSelector::setupMF(), llvm::AArch64InstrInfo::shouldClusterMemOps(), llvm::SIInstrInfo::shouldClusterMemOps(), llvm::HexagonRegisterInfo::shouldCoalesce(), llvm::SystemZRegisterInfo::shouldCoalesce(), shouldPreventUndefRegUpdateMemFold(), shouldUseAndMask(), shrinkScalarCompare(), shrinkScalarLogicOp(), simpleLibcall(), SinkingPreventsImplicitNullCheck(), sizeToSubRegIndex(), splitMBB(), llvm::LiveDebugVariables::splitRegister(), false::Chain::str(), swapMIOperands(), swapRegAndNonRegOperand(), llvm::SystemZInstrInfo::SystemZInstrInfo(), llvm::TailDuplicator::tailDuplicateAndUpdate(), tieOpsIfNeeded(), tryAddToFoldList(), tryChangeVGPRtoSGPRinCopy(), llvm::LegalizationArtifactCombiner::tryCombineAnyExt(), llvm::LegalizationArtifactCombiner::tryCombineExtract(), llvm::LegalizationArtifactCombiner::tryCombineInstruction(), llvm::CombinerHelper::tryCombineMemCpyFamily(), llvm::LegalizationArtifactCombiner::tryCombineMerges(), llvm::LegalizationArtifactCombiner::tryCombineSExt(), llvm::LegalizationArtifactCombiner::tryCombineTrunc(), llvm::LegalizationArtifactCombiner::tryCombineZExt(), tryConstantFoldOp(), llvm::LegalizationArtifactCombiner::tryFoldImplicitDef(), tryFoldInst(), llvm::tryFoldSPUpdateIntoPushPop(), tryOptimizeLEAtoMOV(), tryToFindRegisterToRename(), tryToFoldACImm(), llvm::X86InstrInfo::unfoldMemoryOperand(), unstackifyVRegsUsedInSplitBB(), unsupportedBinOp(), llvm::AntiDepBreaker::UpdateDbgValue(), updateDefinedRegisters(), updateLiveIn(), llvm::HexagonPacketizerList::updateOffset(), updateOperand(), UpdateOperandRegClass(), updateOperandRegConstraints(), updatePhysDepsDownwards(), updatePhysDepsUpwards(), llvm::HexagonSubtarget::usePredicatedCalls(), UseReg(), llvm::SIInstrInfo::usesConstantBus(), llvm::RegisterBankInfo::InstructionMapping::verify(), verifyCFIntrinsic(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), llvm::MachineRegisterInfo::verifyUseList(), VisitGlobalVariableForEmission(), llvm::LegalizerHelper::widenScalar(), llvm::X86CallLowering::X86CallLowering(), X86SelectAddress(), and llvm::LiveDebugVariables::~LiveDebugVariables().
getRegLiveOut - Returns a bit mask of live-out registers.
Definition at line 639 of file MachineOperand.h.
References assert(), and isRegLiveOut().
Referenced by getDwarfRegNum(), and print().
getRegMask - Returns a bit mask of registers preserved by this RegMask operand.
Definition at line 628 of file MachineOperand.h.
References assert(), and isRegMask().
Referenced by clobbersPhysReg(), llvm::rdf::DataFlowGraph::getNextShadow(), llvm::hash_value(), INITIALIZE_PASS(), isCoalescable(), isIdenticalTo(), llvm::rdf::DataFlowGraph::makeRegRef(), llvm::SystemZInstrInfo::PredicateInstruction(), llvm::MIPrinter::print(), and print().
Returns number of elements needed for a regmask array.
Definition at line 634 of file MachineOperand.h.
Referenced by llvm::MachineFunction::allocateRegMask(), getMOVL(), isCallableFunction(), and llvm::AArch64RegisterInfo::UpdateCustomCallPreservedMask().
|
inline |
Definition at line 591 of file MachineOperand.h.
References assert(), and isShuffleMask().
Referenced by getInsertVecEltOpInfo(), llvm::hash_value(), isIdenticalTo(), llvm::LegalizerHelper::lowerShuffleVector(), llvm::CombinerHelper::matchCombineShuffleVector(), and print().
|
inline |
Definition at line 363 of file MachineOperand.h.
References assert(), and isReg().
Referenced by addSegmentsWithValNo(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), allPhiOperandsUndefined(), llvm::HexagonInstrInfo::areMemAccessesTriviallyDisjoint(), attemptDebugCopyProp(), llvm::SIInstrInfo::buildExtractSubReg(), canFoldCopy(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::PPCInstrInfo::commuteInstructionImpl(), computeBranchTargetAndInversion(), llvm::GISelKnownBits::computeKnownBitsImpl(), llvm::GISelKnownBits::computeNumSignBits(), copyHint(), copyRegOperand(), llvm::createSIPreAllocateWWMRegsPass(), definesFullReg(), dumpMachineInstrRangeWithSlotIndex(), emitLoadM0FromVGPRLoop(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::HexagonInstrInfo::expandPostRAPseudo(), findSRegBaseAndIndex(), llvm::SIInstrInfo::FoldImmediate(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), foldVGPRCopyIntoRegSequence(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), llvm::HexagonInstrInfo::getBaseAndOffset(), getBufferFormatWithCompCount(), getDefRegMask(), getDwarfRegNum(), llvm::X86InstrInfo::getExecutionDomainCustom(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), getImmOrMaterializedImm(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), llvm::ScheduleDAGInstrs::getLaneMaskForMO(), getLiveLanesAt(), getNewSource(), getOModValue(), llvm::SIInstrInfo::getOpSize(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), getRC32(), llvm::SystemZRegisterInfo::getRegAllocationHints(), llvm::MachineInstr::getRegClassConstraintEffect(), getRegSeqInit(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::ARMBaseInstrInfo::getRegSequenceLikeInputs(), llvm::getRegSubRegPair(), getRegsUsedByPHIs(), getSrcFromCopy(), getUsedRegMask(), llvm::hash_value(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), insertPHI(), llvm::rdf::CopyPropagation::interpretAsCopy(), isCoalescable(), llvm::X86InstrInfo::isCoalescableExtInstr(), isCopy(), isCrossCopy(), isDebug(), llvm::rdf::TargetOperandInfo::isFixedReg(), llvm::MachineInstr::isFullCopy(), isFullUndefDef(), isIdenticalTo(), llvm::MachineInstr::isIdentityCopy(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::SIInstrInfo::isOperandLegal(), isSafeToFoldImmIntoCopy(), isSameReg(), isSExtLoad(), isSimpleIf(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::X86InstrInfo::isStoreToStackSlot(), isSubRegOf(), isVirtualRegisterOperand(), isVRegCompatibleReg(), llvm::SIInstrInfo::legalizeGenericOperand(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::rdf::DataFlowGraph::makeRegRef(), matchSwap(), operator<<(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeLoadInstr(), optimizeVcndVcmpPair(), performSink(), print(), llvm::ARMAsmPrinter::printOperand(), profitImm(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::R600SchedStrategy::releaseBottomNode(), llvm::UnreachableBlockElimPass::run(), llvm::MachinePipeliner::runOnMachineFunction(), llvm::X86InstrInfo::setExecutionDomainCustom(), llvm::AMDGPUInstructionSelector::setupMF(), llvm::TailDuplicator::shouldTailDuplicate(), llvm::LiveDebugVariables::splitRegister(), substPhysReg(), substVirtReg(), swapRegAndNonRegOperand(), tryFoldInst(), tryToFoldACImm(), and updateOperand().
Definition at line 606 of file MachineOperand.h.
References assert(), and isSymbol().
Referenced by addExclusiveRegPair(), llvm::ARCMCInstLower::ARCMCInstLower(), llvm::BTFDebug::beginInstruction(), EmitGCCInlineAsmStr(), EmitHiLo(), llvm::ARMAsmPrinter::EmitInstruction(), for(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::BPFMCInstLower::GetExternalSymbolSymbol(), llvm::LanaiMCInstLower::GetExternalSymbolSymbol(), llvm::AArch64MCInstLower::GetExternalSymbolSymbol(), llvm::AArch64InstrInfo::getInstSizeInBytes(), llvm::ARCInstrInfo::getInstSizeInBytes(), llvm::MSP430InstrInfo::getInstSizeInBytes(), llvm::RISCVInstrInfo::getInstSizeInBytes(), llvm::AVRInstrInfo::getInstSizeInBytes(), llvm::MipsInstrInfo::getInstSizeInBytes(), llvm::ARMBaseInstrInfo::getInstSizeInBytes(), llvm::SystemZInstrInfo::getInstSizeInBytes(), llvm::PPCInstrInfo::getInstSizeInBytes(), llvm::SIInstrInfo::getInstSizeInBytes(), llvm::HexagonInstrInfo::getSize(), GetSymbolFromOperand(), getVariantKind(), llvm::hash_value(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), INITIALIZE_PASS(), isIdenticalTo(), isSimilarDispOp(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), makeImplicit(), llvm::WebAssembly::mayThrow(), llvm::rdf::operator<<(), optimizeCall(), print(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::AVRAsmPrinter::printOperand(), query(), and VisitGlobalVariableForEmission().
|
inline |
Definition at line 219 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstrBuilder::addDisp(), addExclusiveRegPair(), canDefBePartOfLOH(), createPHIsForCMOVsInSinkBB(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), emitDirectiveRelocJalr(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), EmitHiLo(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), foldImmediates(), llvm::X86InstrInfo::foldMemoryOperandImpl(), for(), llvm::MipsInstrInfo::genInstrWithNewOpc(), llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), GetSymbolFromOperand(), GetSymbolRef(), getVariantKind(), handleMiddleInst(), handleUse(), llvm::hash_value(), llvm::HexagonLowerToMC(), llvm::MipsMCInstLower::Initialize(), INITIALIZE_PASS(), isCandidateLoad(), llvm::HexagonInstrInfo::isConstExtended(), isIdenticalTo(), llvm::WebAssemblyMCInstLower::lower(), llvm::SystemZMCInstLower::lowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), lowerSymbolOperand(), LowerSymbolOperand(), llvm::AVRMCInstLower::lowerSymbolOperand(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::LanaiMCInstLower::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandCOFF(), llvm::AArch64MCInstLower::lowerSymbolOperandDarwin(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), makeImplicit(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ARMAsmPrinter::PrintSymbolOperand(), and printTargetFlags().
|
inline |
getType - Returns the MachineOperandType for this operand.
Definition at line 217 of file MachineOperand.h.
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::MachineInstr::addOperand(), canDefBePartOfLOH(), NoAutoPaddingScope::changeAndComment(), compareMachineOp(), ConvertDoubleToBytes(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), EmitHiLo(), llvm::SystemZMCInstLower::getExpr(), getRetOpcode(), getVariantKind(), llvm::hash_value(), HashMachineInstr(), llvm::HexagonLowerToMC(), INITIALIZE_PASS(), IsAnAddressOperand(), llvm::DenseMapInfo< MachineOperand >::isEqual(), isIdenticalTo(), llvm::SIInstrInfo::isLiteralConstantLike(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::LanaiMCInstLower::Lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::XCoreMCInstLower::LowerOperand(), llvm::ARCMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::MipsMCInstLower::LowerOperand(), LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), makeImplicit(), llvm::MIPrinter::print(), print(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::AVRAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::ScheduleDAGMILive::scheduleMI(), llvm::AArch64InstrInfo::shouldClusterMemOps(), and VisitGlobalVariableForEmission().
|
inline |
isBlockAddress - Tests if this is a MO_BlockAddress operand.
Definition at line 341 of file MachineOperand.h.
References MO_BlockAddress.
Referenced by EmitGCCInlineAsmStr(), getBlockAddress(), getOffset(), llvm::HexagonInstrInfo::isConstExtended(), isSimilarDispOp(), isValidDispOp(), and setOffset().
|
inline |
Definition at line 349 of file MachineOperand.h.
References MO_CFIIndex.
Referenced by getCFIIndex().
|
inline |
isCImm - Test if this is a MO_CImmediate operand.
Definition at line 323 of file MachineOperand.h.
References MO_CImmediate.
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), emitDebugValueComment(), llvm::InstructionSelector::executeMatchTable(), getCImm(), llvm::getConstantVRegValWithLookThrough(), getDebugLocValue(), getImmedFromMO(), getLeaOP(), getVectorSHLImm(), INITIALIZE_PASS(), isRegOtherThanSPAndFP(), setCImm(), and shouldUseAndMask().
|
inline |
isCPI - Tests if this is a MO_ConstantPoolIndex operand.
Definition at line 331 of file MachineOperand.h.
References MO_ConstantPoolIndex.
Referenced by BBIsJumpedOver(), canFoldIntoSelect(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), EmitHiLo(), for(), getConstantFromPool(), getIndex(), getOffset(), getUnconditionalBrDisp(), isAnImmediateOperand(), llvm::HexagonInstrInfo::isConstExtended(), llvm::isLeaMem(), isSimilarDispOp(), isValidDispOp(), setIndex(), and setOffset().
|
inline |
Definition at line 383 of file MachineOperand.h.
References assert(), and isReg().
Referenced by addExclusiveRegPair(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterDead(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), allPhiOperandsUndefined(), llvm::AnalyzePhysRegInBundle(), atomicReadDroppedOnZero(), canFoldIntoSelect(), ChangeToRegister(), llvm::X86InstrInfo::classifyLEAReg(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), llvm::PPCInstrInfo::commuteInstructionImpl(), ContainsReg(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), copyRegOperand(), llvm::createCopyConstrainDAGMutation(), CreateReg(), definesFullReg(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), llvm::finalizeBundle(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::PPCInstrInfo::fixupIsDeadOrKill(), llvm::ARMBaseInstrInfo::FoldImmediate(), for(), GetDSubRegs(), getFPReg(), getLiveLanesAt(), getMopState(), getNewSource(), llvm::rdf::DataFlowGraph::getNextShadow(), llvm::getRegState(), llvm::LiveVariables::HandleVirtRegDef(), llvm::X86InstrInfo::hasLiveCondCodeDef(), INITIALIZE_PASS(), InsertLDR_STR(), isCallerPreservedOrConstPhysReg(), llvm::rdf::TargetOperandInfo::isClobbering(), isCoalescable(), llvm::IsCPSRDead< MachineInstr >(), isCrossCopy(), isDataInvariant(), isDataInvariantLoad(), isFpMulInstruction(), isFullUndefDef(), llvm::MachineInstr::isIdenticalTo(), isLoadAndTestAsCmp(), isNopCopy(), isVirtualRegisterOperand(), makeImplicit(), moveAndTeeForMultiUse(), llvm::SIInstrInfo::moveToVALU(), print(), setPredicate(), llvm::X86InstrInfo::setSpecialOperandAttr(), llvm::AMDGPUInstructionSelector::setupMF(), swapRegAndNonRegOperand(), UpdateCPSRUse(), updatePhysDepsDownwards(), and VerifyLowRegs().
|
inline |
Definition at line 444 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addRegisterKilled(), ChangeToRegister(), CreateReg(), llvm::getRegState(), setIsDef(), setIsKill(), setPredicate(), llvm::AMDGPUInstructionSelector::setupMF(), and swapRegAndNonRegOperand().
|
inline |
Definition at line 373 of file MachineOperand.h.
References assert(), and isReg().
Referenced by addLiveInRegs(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterDead(), llvm::MachineRegisterInfo::addRegOperandToUseList(), addRegsToSet(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::AnalyzePhysRegInBundle(), llvm::AnalyzeVirtRegInBundle(), llvm::HexagonSubtarget::CallMutation::apply(), atomicReadDroppedOnZero(), llvm::BTFDebug::beginInstruction(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::HexagonInstrInfo::canExecuteInBundle(), canFoldIntoSelect(), ChangeToRegister(), clobbersCTR(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), computeBytesPoppedByCalleeForSRet(), llvm::constrainOperandRegClass(), ContainsReg(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), createBBSelectReg(), llvm::createLanaiDelaySlotFillerPass(), CreateReg(), llvm::createSparcDelaySlotFillerPass(), CriticalPathStep(), definesFullReg(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::HexagonInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), dumpMachineInstrRangeWithSlotIndex(), EmitGCCInlineAsmStr(), emitKill(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::HexagonEvaluator::evaluate(), llvm::ModuloScheduleExpander::expand(), llvm::finalizeBundle(), findDeadCallerSavedReg(), findDefIdx(), llvm::MachineInstr::findRegisterDefOperandIdx(), findSingleRegUse(), findUseIdx(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), llvm::RegBankSelect::getAnalysisUsage(), getDefRegMask(), llvm::PPCInstrInfo::getInstrLatency(), getInstrVecReg(), getLiveLanesAt(), getNewSource(), getNewValueJumpOpcode(), llvm::PatchPointOpers::getNextScratchIdx(), llvm::rdf::DataFlowGraph::getNextShadow(), llvm::MachineInstr::getNumExplicitDefs(), llvm::getRegState(), getRegsUsedByPHIs(), llvm::HexagonInstrInfo::getSize(), handleNormalInst(), llvm::LiveVariables::HandleVirtRegDef(), llvm::hash_value(), llvm::MachineInstr::hasImplicitDef(), llvm::X86InstrInfo::hasLiveCondCodeDef(), hasRegisterDependency(), hasUseAfterLoop(), INITIALIZE_PASS(), isCallerPreservedOrConstPhysReg(), llvm::WebAssembly::isChild(), llvm::rdf::TargetOperandInfo::isClobbering(), isCoalescable(), isCopyFeedingInvariantStore(), isCrossCopy(), isDebug(), llvm::rdf::TargetOperandInfo::isFixedReg(), isIdenticalTo(), llvm::MachineInstr::isIdenticalTo(), isLEA(), llvm::SMSchedule::isLoopCarriedDefOfUse(), isNopCopy(), llvm::MachineInstr::isRegTiedToUseOperand(), isRenamable(), IsSafeAndProfitableToMove(), isSimpleIndexCalc(), isVirtualRegisterOperand(), llvm::Mips16InstrInfo::loadImmediate(), MIIsInTerminatorSequence(), llvm::SIInstrInfo::moveToVALU(), llvm::AggressiveAntiDepBreaker::Observe(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeLoadInstr(), llvm::SMSchedule::orderDependence(), parseOperands(), llvm::PatchPointOpers::PatchPointOpers(), llvm::MIPrinter::print(), print(), llvm::MachineInstr::print(), printImplicitRegisterFlag(), llvm::R600SchedStrategy::releaseBottomNode(), RemoveDeadAddBetweenLEAAndJT(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::RegBankSelect::RepairingPlacement::RepairingPlacement(), rescheduleCanonically(), resultTests(), setPredicate(), llvm::AMDGPUInstructionSelector::setupMF(), substPhysReg(), llvm::MachineInstr::tieOperands(), tryAddToFoldList(), updateOperand(), updatePhysDepsDownwards(), updatePhysDepsUpwards(), and llvm::HexagonSubtarget::usePredicatedCalls().
|
inline |
Definition at line 434 of file MachineOperand.h.
References assert(), and isReg().
Referenced by createDeadDef(), llvm::LiveRangeCalc::createDeadDefs(), CreateReg(), CriticalPathStep(), definesFullReg(), dumpMachineInstrRangeWithSlotIndex(), getMopState(), llvm::PatchPointOpers::getNextScratchIdx(), llvm::LiveVariables::HandleVirtRegDef(), isCoalescable(), print(), and llvm::AMDGPUInstructionSelector::setupMF().
|
inline |
isFI - Tests if this is a MO_FrameIndex operand.
Definition at line 329 of file MachineOperand.h.
References MO_FrameIndex.
Referenced by llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), AssignProtectedObjSet(), canFoldIntoSelect(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), llvm::X86InstrInfo::describeLoadedValue(), llvm::HexagonFrameLowering::determineCalleeSaves(), llvm::BPFRegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::TargetLoweringBase::emitPatchPoint(), findNextInsertLocation(), foldImmediates(), frameIndexMayFold(), llvm::HexagonFrameLowering::getAlignaInstr(), getFrameIndexOperandNum(), getIndex(), llvm::SIInstrInfo::getMemOperandWithOffset(), llvm::AArch64InstrInfo::getMemOperandWithOffsetWidth(), getOModValue(), llvm::X86InstrInfo::getSPAdjust(), llvm::AArch64InstrInfo::isCandidateToMergeOrPair(), isCSRestore(), isEFLAGSLive(), llvm::PPCRegisterInfo::isFrameOffsetLegal(), llvm::ARMBaseRegisterInfo::isFrameOffsetLegal(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::isLeaMem(), llvm::SIInstrInfo::isLegalVSrcOperand(), llvm::RISCVInstrInfo::isLoadFromStackSlot(), llvm::MipsSEInstrInfo::isLoadFromStackSlot(), llvm::ARCInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::LanaiInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::AVRInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::isMem(), llvm::SIInstrInfo::isOperandLegal(), isRelevantAddressingMode(), llvm::SIInstrInfo::isSGPRStackAccess(), isSimpleMove(), llvm::SIInstrInfo::isStackAccess(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::RISCVInstrInfo::isStoreToStackSlot(), llvm::MipsSEInstrInfo::isStoreToStackSlot(), llvm::LanaiInstrInfo::isStoreToStackSlot(), llvm::ARCInstrInfo::isStoreToStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AVRInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), lookupCandidateBaseReg(), MatchingStackOffset(), llvm::AArch64RegisterInfo::needsFrameBaseReg(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), false::IntervalSorter::operator()(), llvm::ThumbRegisterInfo::resolveFrameIndex(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::AArch64RegisterInfo::resolveFrameIndex(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::ScheduleDAGMILive::scheduleMI(), setIndex(), llvm::AArch64InstrInfo::shouldClusterMemOps(), swapRegAndNonRegOperand(), tryAddToFoldList(), tryFoldInst(), tryToFoldACImm(), UpdateOperandRegClass(), llvm::SystemZInstrInfo::verifyInstruction(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
isFPImm - Tests if this is a MO_FPImmediate operand.
Definition at line 325 of file MachineOperand.h.
References MO_FPImmediate.
Referenced by llvm::DwarfUnit::addConstantFPValue(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), emitDebugValueComment(), llvm::SIInstrInfo::expandMovDPP64(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::getConstantVRegValWithLookThrough(), getDebugLocValue(), getFPImm(), INITIALIZE_PASS(), llvm::HexagonInstrInfo::isConstExtended(), isRegOtherThanSPAndFP(), setFPImm(), shouldUseAndMask(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
isGlobal - Tests if this is a MO_GlobalAddress operand.
Definition at line 337 of file MachineOperand.h.
References MO_GlobalAddress.
Referenced by addExclusiveRegPair(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::BTFDebug::beginInstruction(), llvm::EHStreamer::callToNoUnwindFunction(), collectCallSiteParameters(), createPHIsForCMOVsInSinkBB(), llvm::createSparcDelaySlotFillerPass(), EmitHiLo(), llvm::ARMAsmPrinter::EmitInstruction(), EmitNop(), llvm::BTFDebug::endFunctionImpl(), eraseDeadBBsAndChildren(), foldImmediates(), for(), llvm::getAddressFromInstr(), llvm::HexagonInstrInfo::getDuplexCandidateGroup(), getGlobal(), llvm::rdf::DataFlowGraph::getNextShadow(), getOffset(), getOModValue(), llvm::R600InstrInfo::getSrcs(), GetSymbolFromOperand(), hasLEAOffset(), INITIALIZE_PASS(), llvm::BTFDebug::InstLower(), isAnImmediateOperand(), IsCallReturnTwice(), llvm::HexagonInstrInfo::isConstExtended(), llvm::AArch64CallLowering::isEligibleForTailCallOptimization(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::isLeaMem(), llvm::SIInstrInfo::isLegalVSrcOperand(), llvm::SIInstrInfo::isOperandLegal(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSimilarDispOp(), isValidDispOp(), llvm::MipsCallLowering::lowerCall(), llvm::AVRMCInstLower::lowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::WebAssembly::mayThrow(), llvm::rdf::operator<<(), llvm::AsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintSymbolOperand(), llvm::AsmPrinter::PrintSymbolOperand(), queryCallee(), llvm::DetectRoundChange::runOnMachineFunction(), setOffset(), swapMIOperands(), tryAddToFoldList(), tryFoldInst(), tryToFoldACImm(), and llvm::SIInstrInfo::verifyInstruction().
| 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 275 of file MachineOperand.cpp.
References llvm::lltok::equal, getBlockAddress(), getCFIIndex(), getCImm(), getFPImm(), getGlobal(), getImm(), getIndex(), getIntrinsicID(), getMBB(), getMCSymbol(), getMetadata(), getMFIfAvailable(), llvm::MCRegisterInfo::getNumRegs(), getOffset(), getPredicate(), getReg(), getRegMask(), getShuffleMask(), getSubReg(), getSymbolName(), getTargetFlags(), getType(), isDef(), llvm_unreachable, MO_BlockAddress, MO_CFIIndex, MO_CImmediate, MO_ConstantPoolIndex, MO_ExternalSymbol, MO_FPImmediate, MO_FrameIndex, MO_GlobalAddress, MO_Immediate, MO_IntrinsicID, MO_JumpTableIndex, MO_MachineBasicBlock, MO_MCSymbol, MO_Metadata, MO_Predicate, MO_Register, MO_RegisterLiveOut, MO_RegisterMask, MO_ShuffleMask, MO_TargetIndex, and TRI.
Referenced by llvm::LanaiInstrInfo::areMemAccessesTriviallyDisjoint(), llvm::AArch64InstrInfo::areMemAccessesTriviallyDisjoint(), llvm::RISCVInstrInfo::areMemAccessesTriviallyDisjoint(), llvm::PPCInstrInfo::areMemAccessesTriviallyDisjoint(), createPHIsForSelects(), getOModValue(), getUnderlyingObjects(), llvm::DenseMapInfo< MachineOperand >::isEqual(), isIdenticalOp(), llvm::MachineInstr::isIdenticalTo(), isImplicitOperandIn(), llvm::SwingSchedulerDAG::isLoopCarriedDep(), memOpsHaveSameBasePtr(), offsetsDoNotOverlap(), llvm::ARMBaseInstrInfo::produceSameValue(), setPredicate(), llvm::AArch64InstrInfo::shouldClusterMemOps(), and tryFoldInst().
|
inline |
isImm - Tests if this is a MO_Immediate operand.
Definition at line 321 of file MachineOperand.h.
References MO_Immediate.
Referenced by llvm::DwarfUnit::addConstantValue(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::SystemZInstrInfo::analyzeCompare(), llvm::HexagonInstrInfo::analyzeCompare(), llvm::X86InstrInfo::analyzeCompare(), areCombinableOperations(), llvm::HexagonInstrInfo::areMemAccessesTriviallyDisjoint(), llvm::SIInstrInfo::buildExtractSubRegOrImm(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), canCompareBeNewValueJump(), canFoldIntoCSel(), NoAutoPaddingScope::changeAndComment(), ConvertDoubleToBytes(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::SIInstrInfo::copyPhysReg(), llvm::createSparcDelaySlotFillerPass(), llvm::AArch64InstrInfo::describeLoadedValue(), llvm::X86InstrInfo::describeLoadedValue(), llvm::X86RegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), EmitGCCInlineAsmStr(), EmitHiLo(), EmitNop(), llvm::HexagonEvaluator::evaluate(), llvm::InstructionSelector::executeMatchTable(), llvm::SIInstrInfo::expandMovDPP64(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::MachineInstr::findInlineAsmFlagIdx(), findSingleRegDef(), llvm::MachineInstr::findTiedOperandIdx(), findUncondBrI(), llvm::PPCInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::SIInstrInfo::FoldImmediate(), foldImmediates(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), getADDriFromLEA(), llvm::HexagonInstrInfo::getBaseAndOffset(), llvm::ARCInstrInfo::getBaseAndOffsetPosition(), llvm::HexagonInstrInfo::getBaseAndOffsetPosition(), llvm::AMDGPU::getBaseWithConstantOffset(), getBufferFormatWithCompCount(), llvm::HexagonInstrInfo::getCompoundCandidateGroup(), llvm::HexagonInstrInfo::getCompoundOpcode(), llvm::getConstantVRegValWithLookThrough(), getDebugLocValue(), llvm::HexagonInstrInfo::getDuplexCandidateGroup(), getDwarfRegNum(), llvm::X86InstrInfo::getExecutionDomainCustom(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::R600InstrInfo::getFlagOp(), GetImm(), getImm(), getImmedFromMO(), getImmOrMaterializedImm(), getINCDECFromLEA(), llvm::HexagonInstrInfo::getIncrementValue(), llvm::TargetInstrInfo::getInsertSubregInputs(), getLeaOP(), llvm::X86InstrInfo::getMemOperandWithOffset(), llvm::LanaiInstrInfo::getMemOperandWithOffsetWidth(), llvm::RISCVInstrInfo::getMemOperandWithOffsetWidth(), llvm::AArch64InstrInfo::getMemOperandWithOffsetWidth(), llvm::PPCInstrInfo::getMemOperandWithOffsetWidth(), getOModValue(), llvm::AArch64InstrInfo::getOutliningType(), getRegSeqInit(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::X86InstrInfo::getSPAdjust(), llvm::R600InstrInfo::getSrcs(), getStoreOffset(), getUnconditionalBrDisp(), getVectorSHLImm(), getWinAllocaAmount(), hasLEAOffset(), hoistAndMergeSGPRInits(), llvm::HexagonInstrInfo::immediateExtend(), INITIALIZE_PASS(), llvm::BTFDebug::InstLower(), isAddConstantOp(), llvm::AArch64InstrInfo::isAddImmediate(), llvm::ARMBaseInstrInfo::isAddImmediate(), llvm::ARMBaseInstrInfo::isAddrMode3OpMinusReg(), isAddWithImmediate(), isAnImmediateOperand(), llvm::AArch64InstrInfo::isCandidateToMergeOrPair(), isCompareZero(), llvm::HexagonInstrInfo::isConstExtended(), llvm::MipsSEInstrInfo::isCopyInstrImpl(), llvm::AArch64InstrInfo::isGPRZero(), isGreaterThanNBitTFRI(), isIdentityValue(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::MachineInstr::isIndirectDebugValue(), llvm::SIInstrInfo::isInlineConstant(), llvm::isLeaMem(), llvm::SIInstrInfo::isLegalVSrcOperand(), llvm::SIInstrInfo::isLiteralConstant(), llvm::RISCVInstrInfo::isLoadFromStackSlot(), llvm::MipsSEInstrInfo::isLoadFromStackSlot(), llvm::ARCInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::LanaiInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::AVRInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), isLoadStoreThatCanHandleDisplacement(), llvm::SIInstrInfo::isOperandLegal(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), isRegOtherThanSPAndFP(), isRelevantAddressingMode(), isSafeToFoldImmIntoCopy(), llvm::isScale(), isSimilarDispOp(), llvm::RISCVInstrInfo::isStoreToStackSlot(), llvm::MipsSEInstrInfo::isStoreToStackSlot(), llvm::LanaiInstrInfo::isStoreToStackSlot(), llvm::ARCInstrInfo::isStoreToStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AVRInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isTOCSaveMI(), isValidDispOp(), isVRegCompatibleReg(), isZeroImm(), llvm::MipsInstrInfo::isZeroImm(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::LegalizerHelper::lower(), makeImplicit(), matchSwap(), llvm::SIInstrInfo::moveToVALU(), llvm::LegalizerHelper::narrowScalar(), operator<<(), optimizeVcndVcmpPair(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::MachineInstr::print(), llvm::HexagonAsmPrinter::PrintAsmMemoryOperand(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintAsmOperand(), profitImm(), llvm::X86InstrInfo::setExecutionDomainCustom(), setImm(), llvm::R600InstrInfo::setImmOperand(), llvm::AMDGPUInstructionSelector::setupMF(), shrinkScalarCompare(), shrinkScalarLogicOp(), swapMIOperands(), swapRegAndNonRegOperand(), tryAddToFoldList(), tryConstantFoldOp(), tryFoldInst(), tryToFindRegisterToRename(), tryToFoldACImm(), llvm::SIInstrInfo::usesConstantBus(), validThroughout(), verifyInsExtInstruction(), llvm::RISCVInstrInfo::verifyInstruction(), llvm::SystemZInstrInfo::verifyInstruction(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), and VisitGlobalVariableForEmission().
|
inline |
Definition at line 378 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::MachineInstr::addOperand(), atomicReadDroppedOnZero(), llvm::TargetSchedModel::computeOperandLatency(), ContainsReg(), copyExtraImplicitOps(), llvm::MachineInstr::copyImplicitOps(), llvm::createSparcDelaySlotFillerPass(), definesFullReg(), dumpMachineInstrRangeWithSlotIndex(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::PPCInstrInfo::getDefMIPostRA(), getDwarfRegNum(), llvm::PPCInstrInfo::getInstrLatency(), getMopState(), getNewSource(), llvm::PatchPointOpers::getNextScratchIdx(), llvm::rdf::DataFlowGraph::getNextShadow(), llvm::MachineInstr::getNumExplicitDefs(), llvm::MachineInstr::getNumExplicitOperands(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::getRegState(), getRetOpcode(), llvm::MachineInstr::hasImplicitDef(), llvm::MachineInstr::hasRegisterImplicitUseOperand(), hasVulnerableLoad(), llvm::HexagonLowerToMC(), INITIALIZE_PASS(), isBackwardPropagatableCopy(), isCallerPreservedOrConstPhysReg(), llvm::WebAssembly::isChild(), isCoalescable(), isCopyFeedingInvariantStore(), isNopCopy(), isVirtualRegisterOperand(), llvm::SystemZMCInstLower::lower(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::LanaiMCInstLower::Lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::XCoreMCInstLower::LowerOperand(), llvm::ARCMCInstLower::LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), llvm::MipsMCInstLower::LowerOperand(), LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), moveAndTeeForMultiUse(), llvm::AggressiveAntiDepBreaker::Observe(), llvm::PatchPointOpers::PatchPointOpers(), llvm::MIPrinter::print(), print(), llvm::MachineInstr::print(), printImplicitRegisterFlag(), llvm::PPCInstrInfo::replaceInstrOperandWithImm(), llvm::AMDGPUInstructionSelector::setupMF(), shrinkScalarCompare(), llvm::tryFoldSPUpdateIntoPushPop(), tryToFoldACImm(), llvm::X86InstrInfo::unfoldMemoryOperand(), llvm::SIInstrInfo::usesConstantBus(), llvm::SIInstrInfo::verifyInstruction(), and VerifyLowRegs().
|
inline |
Definition at line 429 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::TargetInstrInfo::commuteInstructionImpl(), CreateReg(), getLiveLanesAt(), llvm::getRegState(), INITIALIZE_PASS(), print(), readsReg(), llvm::AMDGPUInstructionSelector::setupMF(), and VerifyLowRegs().
|
inline |
Definition at line 350 of file MachineOperand.h.
References MO_IntrinsicID.
Referenced by llvm::InstructionSelector::executeMatchTable(), llvm::AMDGPURegisterBankInfo::getDefaultMappingVOP(), and getIntrinsicID().
|
inline |
isJTI - Tests if this is a MO_JumpTableIndex operand.
Definition at line 335 of file MachineOperand.h.
References MO_JumpTableIndex.
Referenced by canFoldIntoSelect(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), getIndex(), GetSymbolRef(), getVectorSHLImm(), INITIALIZE_PASS(), llvm::HexagonInstrInfo::isConstExtended(), llvm::isLeaMem(), isSimilarDispOp(), isValidDispOp(), lowerSymbolOperand(), llvm::AVRMCInstLower::lowerSymbolOperand(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::BPFMCInstLower::LowerSymbolOperand(), llvm::LanaiMCInstLower::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandCOFF(), llvm::AArch64MCInstLower::lowerSymbolOperandDarwin(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), and setIndex().
|
inline |
Definition at line 388 of file MachineOperand.h.
References assert(), and isReg().
Referenced by addExclusiveRegPair(), llvm::MachineInstr::addRegisterKilled(), llvm::AnalyzePhysRegInBundle(), llvm::HexagonFrameLowering::assignCalleeSavedSpillSlots(), llvm::X86InstrInfo::classifyLEAReg(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::PPCInstrInfo::commuteInstructionImpl(), ContainsReg(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), copyFlagsToImplicitVCC(), copyRegOperand(), CreateReg(), llvm::SIRegisterInfo::eliminateFrameIndex(), emitBuildPairF64Pseudo(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), emitSplitF64Pseudo(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), llvm::finalizeBundle(), findIncDecAfter(), findPotentialBlockers(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::fixStackStores(), llvm::PPCInstrInfo::fixupIsDeadOrKill(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::SIInstrInfo::FoldImmediate(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), genFusedMultiply(), genMaddR(), GetDSubRegs(), getINCDECFromLEA(), getMopState(), getNewValueJumpOpcode(), getPostIndexedLoadStoreOpcode(), llvm::getRegState(), INITIALIZE_PASS(), insertDivByZeroTrap(), InsertFPConstInst(), InsertFPImmInst(), InsertLDR_STR(), InsertSPConstInst(), InsertSPImmInst(), isBackwardPropagatableCopy(), isCoalescable(), isFpMulInstruction(), llvm::MachineInstr::isIdenticalTo(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), isOperandKill(), isSimpleIndexCalc(), llvm::PPCInstrInfo::isValidToBeChangedReg(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::MipsSEInstrInfo::loadImmediate(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), operator<<(), preserveCondRegFlags(), print(), llvm::TargetInstrInfo::reassociateOps(), RemoveDeadAddBetweenLEAAndJT(), removeKillInfo(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), ReplaceFrameIndex(), setPredicate(), llvm::AMDGPUInstructionSelector::setupMF(), shrinkScalarCompare(), false::Chain::str(), swapMIOperands(), swapRegAndNonRegOperand(), llvm::SystemZInstrInfo::SystemZInstrInfo(), tryOptimizeLEAtoMOV(), UpdateCPSRUse(), updateKillStatus(), updatePhysDepsDownwards(), and VerifyLowRegs().
|
inline |
isMBB - Tests if this is a MO_MachineBasicBlock operand.
Definition at line 327 of file MachineOperand.h.
References MO_MachineBasicBlock.
Referenced by EmitGCCInlineAsmStr(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::HexagonInstrInfo::getDotNewPredJumpOp(), getMBB(), getNewValueJumpOpcode(), getTargetMBB(), llvm::SystemZII::Branch::hasMBBTarget(), llvm::HexagonInstrInfo::immediateExtend(), llvm::HexagonInstrInfo::invertAndChangeJumpTarget(), llvm::HexagonInstrInfo::isConstExtended(), isSimilarDispOp(), isValidDispOp(), lowerSymbolOperand(), llvm::rdf::operator<<(), llvm::TargetInstrInfo::PredicateInstruction(), setMBB(), and splitBlock().
|
inline |
Definition at line 348 of file MachineOperand.h.
References MO_MCSymbol.
Referenced by emitDirectiveRelocJalr(), llvm::MipsInstrInfo::genInstrWithNewOpc(), getMCSymbol(), getOffset(), isSimilarDispOp(), isValidDispOp(), and setOffset().
|
inline |
isMetadata - Tests if this is a MO_Metadata operand.
Definition at line 347 of file MachineOperand.h.
References MO_Metadata.
Referenced by EmitGCCInlineAsmStr(), EmitMSInlineAsmStr(), getMetadata(), llvm::MachineInstr::print(), and setMetadata().
|
inline |
Definition at line 351 of file MachineOperand.h.
References MO_Predicate.
Referenced by llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::InstructionSelector::executeMatchTable(), getInsertVecEltOpInfo(), getPredicate(), and setPredicate().
|
inline |
isReg - Tests if this is a MO_Register operand.
Definition at line 319 of file MachineOperand.h.
References MO_Register.
Referenced by addLiveInRegs(), llvm::GISelInstProfileBuilder::addNodeIDMachineOperand(), llvm::MachineInstr::addOperand(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterKilled(), addRegsToSet(), addTargetFlag(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::HexagonSubtarget::adjustSchedDependency(), llvm::AArch64InstrInfo::analyzeCompare(), llvm::SystemZInstrInfo::analyzeCompare(), llvm::AnalyzePhysRegInBundle(), llvm::AnalyzeVirtRegInBundle(), AnyAliasLiveIn(), llvm::LiveRangeEdit::anyRematerializable(), llvm::HexagonSubtarget::CallMutation::apply(), llvm::HexagonSubtarget::BankConflictMutation::apply(), llvm::RegisterBankInfo::applyDefaultMapping(), llvm::AMDGPURegisterBankInfo::applyMappingImage(), atomicReadDroppedOnZero(), llvm::BTFDebug::beginInstruction(), llvm::BuildMI(), llvm::ScheduleDAGInstrs::buildSchedGraph(), callWaitsOnFunctionReturn(), canCombine(), llvm::HexagonInstrInfo::canExecuteInBundle(), canFoldIntoSelect(), llvm::HexagonPacketizerList::canPromoteToNewValueStore(), llvm::SIInstrInfo::canShrink(), ChangeToES(), ChangeToFPImmediate(), ChangeToFrameIndex(), ChangeToGA(), ChangeToImmediate(), ChangeToMCSymbol(), ChangeToRegister(), ChangeToTargetIndex(), checkRegOnlyPHIInputs(), clobbersCTR(), collectCallSiteParameters(), llvm::MachineInstr::collectDebugValues(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), llvm::SIInstrInfo::commuteInstructionImpl(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::HexagonEvaluator::composeWithSubRegIndex(), computeBytesPoppedByCalleeForSRet(), computeExprForSpill(), llvm::constrainSelectedInstRegOperands(), ContainsReg(), llvm::PPCInstrInfo::convertToImmediateForm(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::SIInstrInfo::convertToThreeAddress(), copyExtraImplicitOps(), llvm::MachineInstr::copyImplicitOps(), llvm::SIInstrInfo::copyPhysReg(), copyRegOperand(), llvm::createBreakFalseDeps(), llvm::createLanaiDelaySlotFillerPass(), llvm::createSIPreAllocateWWMRegsPass(), llvm::createSIWholeQuadModePass(), llvm::createSparcDelaySlotFillerPass(), CriticalPathStep(), definesFullReg(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::HexagonInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), llvm::X86InstrInfo::describeLoadedValue(), dumpMachineInstrRangeWithSlotIndex(), earlyUseOperand(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), EmitGCCInlineAsmStr(), EmitHiLo(), emitIndirectDst(), llvm::ARMAsmPrinter::EmitInstruction(), emitKill(), eraseGPOpnd(), llvm::LiveRangeEdit::eraseVirtReg(), llvm::HexagonEvaluator::evaluate(), llvm::BitTracker::MachineEvaluator::evaluate(), llvm::InstructionSelector::executeMatchTable(), llvm::ModuloScheduleExpander::expand(), llvm::SIInstrInfo::expandMovDPP64(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::PPCInstrInfo::expandPostRAPseudo(), llvm::DbgVariableLocation::extractFromMachineInstruction(), llvm::finalizeBundle(), llvm::MipsInstrInfo::findCommutedOpIndices(), llvm::X86InstrInfo::findCommutedOpIndices(), llvm::TargetInstrInfo::findCommutedOpIndices(), findDeadCallerSavedReg(), findDefIdx(), findNextInsertLocation(), findPotentialBlockers(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::findRegisterUseOperandIdx(), findSingleRegDef(), findSingleRegUse(), findSRegBaseAndIndex(), llvm::MachineInstr::findTiedOperandIdx(), findUseIdx(), llvm::SIInstrInfo::fixImplicitOperands(), llvm::PPCInstrInfo::fixupIsDeadOrKill(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), llvm::PPCInstrInfo::FoldImmediate(), llvm::SIInstrInfo::FoldImmediate(), llvm::X86InstrInfo::foldMemoryOperandImpl(), for(), forceReg(), FuseInst(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), llvm::getAddressFromInstr(), llvm::RegBankSelect::getAnalysisUsage(), getBaseAddressRegister(), llvm::ARCInstrInfo::getBaseAndOffsetPosition(), llvm::HexagonInstrInfo::getBaseAndOffsetPosition(), getBufferFormatWithCompCount(), getCallTargetRegOpnd(), getCondFromFCMOV(), getDataDeps(), getDebugLocValue(), llvm::AMDGPURegisterBankInfo::getDefaultMappingAllVGPR(), llvm::AMDGPURegisterBankInfo::getDefaultMappingVOP(), llvm::PPCInstrInfo::getDefMIPostRA(), getDefRegMask(), getDwarfRegNum(), getFMAPatterns(), getFoldableImm(), getFPReg(), llvm::HexagonHazardRecognizer::getHazardType(), llvm::AMDGPURegisterBankInfo::getImageMapping(), getImmedFromMO(), getImmOrMaterializedImm(), getINCDECFromLEA(), getInsertVecEltOpInfo(), llvm::PPCInstrInfo::getInstrLatency(), llvm::ARMRegisterBankInfo::getInstrMapping(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), llvm::RegisterBankInfo::getInstrMappingImpl(), getInstrVecReg(), getLiveLanesAt(), getMaddPatterns(), llvm::SIInstrInfo::getMemOperandWithOffset(), llvm::HexagonInstrInfo::getMemOperandWithOffset(), llvm::X86InstrInfo::getMemOperandWithOffset(), llvm::LanaiInstrInfo::getMemOperandWithOffsetWidth(), llvm::RISCVInstrInfo::getMemOperandWithOffsetWidth(), llvm::AArch64InstrInfo::getMemOperandWithOffsetWidth(), llvm::PPCInstrInfo::getMemOperandWithOffsetWidth(), getNewSource(), getNewValueJumpOpcode(), llvm::PatchPointOpers::getNextScratchIdx(), llvm::rdf::DataFlowGraph::getNextShadow(), llvm::MachineInstr::getNumExplicitDefs(), llvm::MachineInstr::getNumExplicitOperands(), getOModValue(), llvm::HexagonInstrInfo::getOperandLatency(), llvm::SIInstrInfo::getOpSize(), llvm::AArch64InstrInfo::getOutliningCandidateInfo(), llvm::AArch64InstrInfo::getOutliningType(), llvm::X86GenRegisterBankInfo::getPartialMappingIdx(), llvm::R600AsmPrinter::getPassName(), getPostIncrementOperand(), getReg(), llvm::MachineInstr::getRegClassConstraintEffect(), llvm::MachineInstr::getRegClassConstraintEffectForVReg(), getRegOrUndef(), getRegSeqInit(), llvm::getRegState(), llvm::getRegSubRegPair(), getRegsUsedByPHIs(), getRetpolineSymbol(), getShiftTypeForInst(), getShuffleComment(), llvm::HexagonInstrInfo::getSize(), llvm::X86InstrInfo::getSPAdjust(), getStoreTarget(), getSubReg(), getTag(), getTargetFlags(), llvm::MachineInstr::getTypeToPrint(), getUnderlyingArgRegs(), getUsedRegMask(), llvm::SIInstrInfo::getVALUOp(), getVectorSHLImm(), getWinAllocaAmount(), handleNormalInst(), llvm::LiveVariables::HandleVirtRegDef(), HandleVRSaveUpdate(), hasInefficientLEABaseReg(), llvm::X86InstrInfo::hasLiveCondCodeDef(), llvm::TargetInstrInfo::hasReassociableOperands(), hasRegisterDependency(), llvm::MachineInstr::hasRegisterImplicitUseOperand(), hasSameBaseOpValue(), hasUseAfterLoop(), hasVectorOperands(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), llvm::Mips16RegisterInfo::intRegClass(), llvm::AArch64InstrInfo::isAddImmediate(), llvm::ARMBaseInstrInfo::isAddImmediate(), llvm::ARMBaseInstrInfo::isAddrMode3OpMinusReg(), llvm::RISCVInstrInfo::isAsCheapAsAMove(), isBackwardPropagatableCopy(), llvm::InstructionSelector::isBaseWithConstantOffset(), isCallerPreservedOrConstPhysReg(), llvm::AArch64InstrInfo::isCandidateToMergeOrPair(), llvm::WebAssembly::isChild(), llvm::rdf::TargetOperandInfo::isClobbering(), isCoalescable(), isCompareZero(), isCopyFeedingInvariantStore(), isCopyFromExec(), isCopyToExec(), llvm::IsCPSRDead< MachineInstr >(), isCrossCopy(), isDbgValueDescribedByReg(), isDead(), isDebug(), isDebug(), isDef(), isDefInSubRange(), isDescribedByReg(), isEarlyClobber(), isEFLAGSLive(), llvm::AArch64InstrInfo::isFPRCopy(), isFullCopyOf(), isIdenticalOp(), llvm::MachineInstr::isIdenticalTo(), isIdentityValue(), llvm::PPCInstrInfo::isImmInstrEligibleForFolding(), isImplicit(), llvm::SystemZII::Branch::isIndirect(), llvm::MachineInstr::isIndirectDebugValue(), isInternalRead(), isIntersect(), isKill(), isLEA(), llvm::isLeaMem(), llvm::SIInstrInfo::isLegalRegOperand(), llvm::HexagonPacketizerList::isLegalToPacketizeTogether(), llvm::SIInstrInfo::isLegalVSrcOperand(), isLiveOut(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), isLoadStoreThatCanHandleDisplacement(), isLogicalOpOnExec(), llvm::SMSchedule::isLoopCarriedDefOfUse(), llvm::isMem(), isMemoryOp(), isMMSourceRegister(), isMMThreeBitGPRegister(), isNopCopy(), llvm::InstructionSelector::isOperandImmEqual(), llvm::SIInstrInfo::isOperandLegal(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), isRedundantFlagInstr(), isRegOtherThanSPAndFP(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), isRelevantAddressingMode(), isRenamable(), IsSafeAndProfitableToMove(), llvm::AMDGPURegisterBankInfo::isSALUMapping(), isSameReg(), llvm::PPCInstrInfo::isSignOrZeroExtended(), isSimpleIndexCalc(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), isTied(), llvm::HexagonInstrInfo::isToBeScheduledASAP(), llvm::PPCInstrInfo::isTOCSaveMI(), isTwoAddrUse(), isUncheckedLoadOrStoreOpcode(), isUndef(), llvm::MachineInstr::isUndefDebugValue(), isUse(), isVirtualRegisterOperand(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::SIInstrInfo::legalizeOperandsVOP3(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::Mips16InstrInfo::loadImmediate(), llvm::SystemZMCInstLower::lower(), llvm::WebAssemblyMCInstLower::lower(), llvm::X86CallLowering::lowerCall(), llvm::ARMCallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::rdf::DataFlowGraph::makeRegRef(), llvm::MIPatternMatch::operand_type_match::match(), matchSwap(), memOpsHaveSameBasePtr(), mergeOperations(), MIIsInTerminatorSequence(), moveAndTeeForMultiUse(), llvm::MachineRegisterInfo::moveOperands(), llvm::SIInstrInfo::moveToVALU(), llvm::AggressiveAntiDepBreaker::Observe(), oneUseDominatesOtherUses(), operator<<(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeLoadInstr(), optimizeVcndVcmpPair(), llvm::SMSchedule::orderDependence(), parseGlobalValue(), parseOperands(), performSink(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::MIPrinter::print(), llvm::MachineInstr::print(), llvm::AVRAsmPrinter::PrintAsmMemoryOperand(), llvm::HexagonAsmPrinter::PrintAsmMemoryOperand(), llvm::ARMAsmPrinter::PrintAsmMemoryOperand(), llvm::AVRAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintAsmOperand(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::R600SchedStrategy::releaseBottomNode(), RemoveDeadAddBetweenLEAAndJT(), removeKillInfo(), removeRegisterOperands(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::RegBankSelect::RepairingPlacement::RepairingPlacement(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::PPCInstrInfo::replaceInstrOperandWithImm(), rescheduleCanonically(), resultTests(), llvm::R600SchedStrategy::schedNode(), llvm::ScheduleDAGMILive::scheduleMI(), setImplicit(), setIsDead(), setIsDebug(), setIsDef(), setIsEarlyClobber(), setIsInternalRead(), setIsKill(), setIsRenamable(), setIsUndef(), setSubReg(), setTargetFlags(), llvm::AMDGPUInstructionSelector::setupMF(), llvm::AArch64InstrInfo::shouldClusterMemOps(), shouldPreventUndefRegUpdateMemFold(), shrinkScalarCompare(), shrinkScalarLogicOp(), SinkingPreventsImplicitNullCheck(), llvm::LiveDebugVariables::splitRegister(), false::Chain::str(), llvm::SystemZInstrInfo::SystemZInstrInfo(), toString(), tryAddToFoldList(), tryConstantFoldOp(), tryFoldInst(), llvm::tryFoldSPUpdateIntoPushPop(), tryToFoldACImm(), llvm::X86InstrInfo::unfoldMemoryOperand(), llvm::MachineInstr::untieRegOperand(), llvm::AntiDepBreaker::UpdateDbgValue(), updateKillStatus(), updateOperand(), UpdateOperandRegClass(), updateOperandRegConstraints(), updatePhysDepsDownwards(), updatePhysDepsUpwards(), llvm::HexagonSubtarget::usePredicatedCalls(), UseReg(), llvm::SIInstrInfo::usesConstantBus(), llvm::RegisterBankInfo::InstructionMapping::verify(), llvm::SystemZInstrInfo::verifyInstruction(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), llvm::MachineRegisterInfo::verifyUseList(), X86SelectAddress(), and llvm::LiveDebugVariables::~LiveDebugVariables().
|
inline |
isRegLiveOut - Tests if this is a MO_RegisterLiveOut operand.
Definition at line 345 of file MachineOperand.h.
References MO_RegisterLiveOut.
Referenced by getDwarfRegNum(), and getRegLiveOut().
|
inline |
isRegMask - Tests if this is a MO_RegisterMask operand.
Definition at line 343 of file MachineOperand.h.
References MO_RegisterMask.
Referenced by llvm::MachineInstr::addOperand(), llvm::AnalyzePhysRegInBundle(), clobbersCTR(), copyExtraImplicitOps(), llvm::MachineInstr::copyImplicitOps(), CriticalPathStep(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::HexagonInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::rdf::DataFlowGraph::getNextShadow(), getRegMask(), llvm::LiveVariables::HandleVirtRegDef(), INITIALIZE_PASS(), llvm::rdf::TargetOperandInfo::isClobbering(), isCoalescable(), llvm::rdf::DataFlowGraph::makeRegRef(), llvm::LanaiInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), setRegMask(), false::Chain::str(), and UpdatePredRedefs().
| 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 116 of file MachineOperand.cpp.
References assert(), getParent(), getReg(), llvm::MachineInstr::hasExtraDefRegAllocReq(), llvm::MachineInstr::hasExtraSrcRegAllocReq(), llvm::MachineInstr::IgnoreBundle, isDef(), llvm::Register::isPhysicalRegister(), isReg(), isUse(), and MI.
Referenced by llvm::TargetInstrInfo::commuteInstructionImpl(), CreateReg(), for(), getMopState(), llvm::getRegState(), getRegUnits(), isBackwardPropagatableCopy(), isNopCopy(), isUndef(), and print().
|
inline |
Definition at line 352 of file MachineOperand.h.
References MO_ShuffleMask.
Referenced by getShuffleMask().
|
inline |
isSymbol - Tests if this is a MO_ExternalSymbol operand.
Definition at line 339 of file MachineOperand.h.
References MO_ExternalSymbol.
Referenced by addExclusiveRegPair(), EmitGCCInlineAsmStr(), EmitHiLo(), llvm::ARMAsmPrinter::EmitInstruction(), for(), llvm::rdf::DataFlowGraph::getNextShadow(), getOffset(), llvm::HexagonInstrInfo::getSize(), GetSymbolFromOperand(), getSymbolName(), INITIALIZE_PASS(), llvm::HexagonInstrInfo::isConstExtended(), isSimilarDispOp(), isValidDispOp(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::WebAssembly::mayThrow(), llvm::rdf::operator<<(), optimizeCall(), and setOffset().
|
inline |
isTargetIndex - Tests if this is a MO_TargetIndex operand.
Definition at line 333 of file MachineOperand.h.
References MO_TargetIndex.
Referenced by emitDebugValueComment(), getDebugLocValue(), getIndex(), getOffset(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::SIInstrInfo::isLegalVSrcOperand(), llvm::SIInstrInfo::isOperandLegal(), setIndex(), and setOffset().
|
inline |
Definition at line 439 of file MachineOperand.h.
References assert(), and isReg().
Referenced by canFoldIntoSelect(), ChangeToES(), ChangeToFPImmediate(), ChangeToFrameIndex(), ChangeToGA(), ChangeToImmediate(), ChangeToMCSymbol(), ChangeToTargetIndex(), llvm::ARMBaseInstrInfo::commuteInstructionImpl(), llvm::MachineInstr::findTiedOperandIdx(), isBackwardPropagatableCopy(), isCoalescable(), isNopCopy(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), llvm::MIPrinter::print(), print(), llvm::MachineInstr::print(), llvm::rdf::CopyPropagation::run(), shrinkScalarCompare(), false::Chain::str(), llvm::MachineInstr::tieOperands(), tieOpsIfNeeded(), llvm::MachineInstr::untieRegOperand(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 393 of file MachineOperand.h.
References assert(), isReg(), and isRenamable().
Referenced by addExclusiveRegPair(), llvm::MachineInstr::addRegisterKilled(), addSegmentsWithValNo(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), allPhiOperandsUndefined(), ChangeToRegister(), llvm::X86InstrInfo::classifyLEAReg(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::X86InstrInfo::convertToThreeAddress(), copyFlagsToImplicitVCC(), copyRegOperand(), llvm::createBreakFalseDeps(), CreateReg(), llvm::createSIWholeQuadModePass(), definesFullReg(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), emitLoadM0FromVGPRLoop(), emitLoadSRsrcFromVGPRLoop(), llvm::SIInstrInfo::expandMovDPP64(), llvm::HexagonInstrInfo::expandPostRAPseudo(), llvm::SIInstrInfo::expandPostRAPseudo(), expandSHXDROT(), llvm::finalizeBundle(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), for(), GetDSubRegs(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), getLiveLanesAt(), getLogicalBitOpcode(), getMopState(), llvm::rdf::DataFlowGraph::getNextShadow(), getRegOrUndef(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::ARMBaseInstrInfo::getRegSequenceLikeInputs(), llvm::getRegState(), llvm::X86InstrInfo::getUndefRegClearance(), INITIALIZE_PASS(), InsertLDR_STR(), isBackwardPropagatableCopy(), isCoalescable(), llvm::IsCPSRDead< MachineInstr >(), isLocalCopy(), isMemoryOp(), isNopCopy(), isUseSafeToFold(), isVirtualRegisterOperand(), makeImplicit(), mayCombineMisaligned(), mergeOperations(), optimizeVcndVcmpPair(), preserveCondRegFlags(), print(), readsReg(), readsVCCZ(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::R600SchedStrategy::releaseBottomNode(), replaceDominatedUses(), llvm::UnreachableBlockElimPass::run(), setPredicate(), llvm::AMDGPUInstructionSelector::setupMF(), shouldPreventUndefRegUpdateMemFold(), shrinkScalarCompare(), swapRegAndNonRegOperand(), llvm::SystemZInstrInfo::SystemZInstrInfo(), tryToFoldACImm(), and updateOperand().
|
inline |
Definition at line 368 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addOperand(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterKilled(), llvm::HexagonSubtarget::adjustSchedDependency(), llvm::HexagonSubtarget::CallMutation::apply(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::HexagonInstrInfo::canExecuteInBundle(), llvm::AMDGPURegisterBankInfo::collectWaterfallOperands(), llvm::constrainOperandRegClass(), llvm::constrainSelectedInstRegOperands(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), copyRegOperand(), llvm::createBreakFalseDeps(), llvm::createLanaiDelaySlotFillerPass(), llvm::createSparcDelaySlotFillerPass(), CriticalPathStep(), llvm::BitTracker::MachineEvaluator::evaluate(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::MachineInstr::findTiedOperandIdx(), llvm::PPCInstrInfo::fixupIsDeadOrKill(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), llvm::TargetInstrInfo::foldMemoryOperand(), for(), llvm::TargetInstrInfo::genAlternativeCodeSequence(), getCallTargetRegOpnd(), llvm::PPCInstrInfo::getDefMIPostRA(), getLiveLanesAt(), llvm::rdf::DataFlowGraph::getNextShadow(), getUsedRegMask(), handleNormalInst(), llvm::LiveVariables::HandleVirtRegDef(), hasRegisterDependency(), llvm::MachineInstr::hasRegisterImplicitUseOperand(), INITIALIZE_PASS(), isBackwardPropagatableCopy(), isCoalescable(), isCopyFeedingInvariantStore(), llvm::IsCPSRDead< MachineInstr >(), isCrossCopy(), isDebug(), isFullCopyOf(), isFullUndefDef(), llvm::MachineInstr::isRegTiedToDefOperand(), isRenamable(), isSimpleIndexCalc(), isTwoAddrUse(), moveAndTeeForMultiUse(), llvm::SMSchedule::orderDependence(), parseOperands(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), RemoveDeadAddBetweenLEAAndJT(), resultTests(), llvm::SystemZInstrInfo::SystemZInstrInfo(), llvm::MachineInstr::tieOperands(), updateDefinedRegisters(), llvm::HexagonSubtarget::usePredicatedCalls(), llvm::SIInstrInfo::usesConstantBus(), and llvm::SIInstrInfo::verifyInstruction().
| void MachineOperand::print | ( | raw_ostream & | os, |
| const TargetRegisterInfo * | TRI = nullptr, |
||
| const TargetIntrinsicInfo * | IntrinsicInfo = nullptr |
||
| ) | const |
Print the MachineOperand to os.
Providing a valid TRI and IntrinsicInfo results in a more target-specific printing. If TRI and IntrinsicInfo are null, the function will try to pick it up from the parent.
Definition at line 706 of file MachineOperand.cpp.
References TRI.
Referenced by clearParent(), llvm::operator<<(), llvm::MIPrinter::print(), print(), llvm::MachineInstr::print(), and llvm::MachineFunction::verify().
| void MachineOperand::print | ( | raw_ostream & | os, |
| ModuleSlotTracker & | MST, | ||
| LLT | TypeToPrint, | ||
| Optional< unsigned > | OpIdx, | ||
| bool | PrintDef, | ||
| bool | IsStandalone, | ||
| bool | ShouldPrintRegisterTies, | ||
| unsigned | TiedOperandIdx, | ||
| const TargetRegisterInfo * | TRI, | ||
| const TargetIntrinsicInfo * | IntrinsicInfo | ||
| ) | 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 None 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. |
| IntrinsicInfo | - same as TRI. |
Definition at line 722 of file MachineOperand.cpp.
References assert(), llvm::MachineRegisterInfo::def_empty(), E, llvm::StringRef::empty(), llvm::ISD::FrameIndex, getBlockAddress(), getCFIIndex(), getCImm(), getFPImm(), llvm::BlockAddress::getFunction(), getGlobal(), getImm(), getIndex(), getIntrinsicID(), getMBB(), getMCSymbol(), getMetadata(), getMFIfAvailable(), llvm::TargetIntrinsicInfo::getName(), llvm::Intrinsic::getName(), llvm::MCRegisterInfo::getNumRegs(), getOffset(), getParent(), getPredicate(), llvm::CmpInst::getPredicateName(), getReg(), getRegLiveOut(), getRegMask(), getShuffleMask(), getSubReg(), llvm::TargetRegisterInfo::getSubRegIndexName(), getSymbolName(), getTargetIndexName(), getType(), isDead(), isDef(), isEarlyClobber(), isImplicit(), isInternalRead(), llvm::CmpInst::isIntPredicate(), isKill(), llvm::Register::isPhysicalRegister(), isRenamable(), isTied(), isUndef(), llvm::LLT::isValid(), llvm::Register::isVirtualRegister(), llvm::BitmaskEnumDetail::Mask(), MO_BlockAddress, MO_CFIIndex, MO_CImmediate, MO_ConstantPoolIndex, MO_ExternalSymbol, MO_FPImmediate, MO_FrameIndex, MO_GlobalAddress, MO_Immediate, MO_IntrinsicID, MO_JumpTableIndex, MO_MachineBasicBlock, MO_MCSymbol, MO_Metadata, MO_Predicate, MO_Register, MO_RegisterLiveOut, MO_RegisterMask, MO_ShuffleMask, MO_TargetIndex, MRI, Name, llvm::None, llvm::Metadata::printAsOperand(), llvm::Value::printAsOperand(), printCFI(), printFrameIndex(), llvm::MIRFormatter::printImm(), printIRBlockReference(), llvm::printJumpTableEntryReference(), llvm::printLLVMNameWithoutPrefix(), llvm::printMBBReference(), printOperandOffset(), llvm::printReg(), llvm::printRegClassOrBank(), PrintRegMaskNumRegs, printSymbol(), printTargetFlags(), Reg, SubReg, TII, and TRI.
| void MachineOperand::print | ( | raw_ostream & | os, |
| LLT | TypeToPrint, | ||
| const TargetRegisterInfo * | TRI = nullptr, |
||
| const TargetIntrinsicInfo * | IntrinsicInfo = nullptr |
||
| ) | const |
Same as print(os, TRI, IntrinsicInfo), but allows to specify the low-level type to be printed the same way the full version of print(...) does it.
Definition at line 711 of file MachineOperand.cpp.
References llvm::None, print(), and tryToGetTargetInfo().
|
static |
Print an IRSlotNumber.
Definition at line 592 of file MachineOperand.cpp.
Referenced by clearParent(), printIRBlockReference(), and llvm::MIRFormatter::printIRValue().
|
static |
Print the offset with explicit +/- signs.
Definition at line 582 of file MachineOperand.cpp.
Referenced by clearParent(), llvm::MachineMemOperand::print(), and print().
|
static |
Print a stack object reference.
Definition at line 569 of file MachineOperand.cpp.
References llvm::StringRef::empty(), and llvm::ISD::FrameIndex.
Referenced by clearParent(), printFrameIndex(), and llvm::MIPrinter::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 504 of file MachineOperand.cpp.
References llvm::TargetRegisterInfo::getSubRegIndexName().
Referenced by clearParent(), llvm::MIPrinter::print(), and llvm::MachineInstr::print().
|
static |
Print a MCSymbol as an operand.
Definition at line 565 of file MachineOperand.cpp.
Referenced by clearParent(), llvm::MIPrinter::print(), print(), llvm::MachineInstr::print(), and printCFI().
|
static |
Print operand target flags.
Definition at line 513 of file MachineOperand.cpp.
References assert(), llvm::HexagonInstrInfo::decomposeMachineOperandsTargetFlags(), llvm::TargetSubtargetInfo::getInstrInfo(), getMFIfAvailable(), llvm::HexagonInstrInfo::getSerializableBitmaskMachineOperandTargetFlags(), llvm::MachineFunction::getSubtarget(), getTargetFlagName(), getTargetFlags(), llvm::BitmaskEnumDetail::Mask(), Name, and TII.
Referenced by clearParent(), llvm::MIPrinter::print(), and print().
|
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 456 of file MachineOperand.h.
References assert(), getSubReg(), isInternalRead(), isReg(), isUndef(), isUse(), Reg, and setReg().
Referenced by llvm::AnalyzePhysRegInBundle(), llvm::AnalyzeVirtRegInBundle(), llvm::LiveRangeEdit::anyRematerializable(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::createCopyConstrainDAGMutation(), llvm::ConnectedVNInfoEqClasses::Distribute(), findUseIdx(), getDataDeps(), getLiveLanesAt(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), llvm::X86InstrInfo::getPartialRegUpdateClearance(), getTag(), llvm::LiveVariables::HandleVirtRegDef(), isCrossCopy(), updatePhysDepsDownwards(), and updatePhysDepsUpwards().
|
inline |
Definition at line 658 of file MachineOperand.h.
References assert(), and isCImm().
Referenced by llvm::LegalizerHelper::widenScalar().
|
inline |
Definition at line 663 of file MachineOperand.h.
References assert(), and isFPImm().
Referenced by llvm::LegalizerHelper::widenScalar().
|
inline |
Definition at line 653 of file MachineOperand.h.
References assert(), and isImm().
Referenced by llvm::R600InstrInfo::addFlag(), llvm::SwingSchedulerDAG::applyInstrChange(), AssignProtectedObjSet(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), canTurnIntoCOPY(), llvm::R600InstrInfo::clearFlag(), llvm::PPCInstrInfo::commuteInstructionImpl(), llvm::PPCInstrInfo::convertToImmediateForm(), CreateImm(), createPHIsForSelects(), llvm::createSIWholeQuadModePass(), llvm::WebAssemblyRegisterInfo::eliminateFrameIndex(), llvm::LanaiRegisterInfo::eliminateFrameIndex(), llvm::SystemZInstrInfo::expandPostRAPseudo(), findSingleRegDef(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), fixupSEHOpcode(), getBufferFormatWithCompCount(), getCallOpcode(), getLSMultipleTransferSize(), getOModValue(), llvm::AArch64InstrInfo::getOutliningType(), getReassignedChan(), getUnconditionalBrDisp(), getVectorSHLImm(), hasOneNonDBGUseInst(), INITIALIZE_PASS(), isIntersect(), matchSwap(), llvm::LegalizerHelper::narrowScalar(), llvm::PPCInstrInfo::optimizeCompareInstr(), performCustomAdjustments(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::R600InstrInfo::PredicateInstruction(), llvm::TargetInstrInfo::PredicateInstruction(), rewriteP2Align(), llvm::HexagonInstrInfo::setBundleNoShuf(), llvm::setDirectAddressInInstr(), llvm::X86InstrInfo::setExecutionDomainCustom(), llvm::X86InstrInfo::setFrameAdjustment(), llvm::R600InstrInfo::setImmOperand(), shrinkScalarLogicOp(), llvm::SIInstrInfo::swapSourceModifiers(), llvm::SystemZInstrInfo::SystemZInstrInfo(), tieOpsIfNeeded(), llvm::HexagonPacketizerList::undoChangedOffset(), updateOperand(), llvm::HexagonPacketizerList::useCalleesSP(), and llvm::HexagonPacketizerList::useCallersSP().
Definition at line 493 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::X86InstrInfo::classifyLEAReg(), GetDSubRegs(), makeImplicit(), llvm::LanaiInstrInfo::optimizeSelect(), llvm::ARMBaseInstrInfo::optimizeSelect(), and updateDefinedRegisters().
|
inline |
Definition at line 676 of file MachineOperand.h.
References assert(), isCPI(), isFI(), isJTI(), and isTargetIndex().
Referenced by BBIsJumpedOver(), ChangeToFrameIndex(), ChangeToTargetIndex(), CreateCPI(), CreateFI(), CreateJTI(), CreateTargetIndex(), getUnconditionalBrDisp(), and false::IntervalSorter::operator()().
Definition at line 504 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addRegisterDead(), AnyAliasLiveIn(), atomicReadDroppedOnZero(), calculateSetFPREG(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), copyRegOperand(), llvm::MSP430FrameLowering::eliminateCallFramePseudoInstr(), llvm::AVRFrameLowering::eliminateCallFramePseudoInstr(), llvm::AVRRegisterInfo::eliminateFrameIndex(), llvm::AVRFrameLowering::emitEpilogue(), llvm::MSP430FrameLowering::emitEpilogue(), emitIncrement(), llvm::AVRFrameLowering::emitPrologue(), llvm::MSP430FrameLowering::emitPrologue(), llvm::X86FrameLowering::emitSPUpdate(), llvm::LiveRangeEdit::eraseVirtReg(), findStartOfTree(), llvm::PPCInstrInfo::fixupIsDeadOrKill(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::LiveVariables::HandleVirtRegDef(), hasVulnerableLoad(), INITIALIZE_PASS(), isCallerPreservedOrConstPhysReg(), isCoalescable(), isCrossCopy(), isFullUndefDef(), maybeRewriteToDrop(), llvm::X86InstrInfo::optimizeCompareInstr(), llvm::LiveVariables::removeVirtualRegisterDead(), replaceDominatedUses(), llvm::X86FrameLowering::restoreWin32EHStackPointers(), llvm::X86InstrInfo::setSpecialOperandAttr(), transferDeadCC(), and VerifyLowRegs().
Definition at line 526 of file MachineOperand.h.
References assert(), and isReg().
Referenced by AssignProtectedObjSet(), INITIALIZE_PASS(), and toString().
Change a def to a use, or a use to a def.
Definition at line 99 of file MachineOperand.cpp.
References llvm::MachineRegisterInfo::addRegOperandToUseList(), assert(), getMFIfAvailable(), isDebug(), isReg(), MRI, and llvm::MachineRegisterInfo::removeRegOperandFromUseList().
Referenced by emitPostSt(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), setIsUse(), and VerifyLowRegs().
Definition at line 521 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::MachineInstr::addOperand(), and llvm::LiveVariables::HandleVirtRegDef().
Definition at line 516 of file MachineOperand.h.
References assert(), and isReg().
Referenced by llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::finalizeBundle(), and INITIALIZE_PASS().
Definition at line 498 of file MachineOperand.h.
References assert(), isDebug(), and isReg().
Referenced by addExclusiveRegPair(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterKilled(), addSegmentsWithValNo(), AnyAliasLiveIn(), clearKillFlags(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::PPCInstrInfo::commuteInstructionImpl(), llvm::R600InstrInfo::copyPhysReg(), llvm::SIInstrInfo::copyPhysReg(), copyRegOperand(), earlyUseOperand(), emitLoadSRsrcFromVGPRLoop(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), findPotentialBlockers(), findStartOfTree(), llvm::PPCInstrInfo::fixupIsDeadOrKill(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::SIInstrInfo::FoldImmediate(), getNewValueJumpOpcode(), getRegClassForUnfoldedLoad(), getRegsUsedByPHIs(), llvm::LiveVariables::HandleVirtRegDef(), INITIALIZE_PASS(), llvm::SIInstrInfo::insertBranch(), insertDivByZeroTrap(), llvm::CoalescerPair::isCoalescable(), isCoalescable(), isCopy(), isEFLAGSLive(), isFullCopyOf(), isFullUndefDef(), llvm::SIInstrInfo::legalizeOperands(), matchSwap(), llvm::AArch64InstrInfo::optimizeCondBranch(), preserveCondRegFlags(), RemoveDeadAddBetweenLEAAndJT(), removeKillInfo(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), shrinkScalarCompare(), llvm::SystemZInstrInfo::SystemZInstrInfo(), tryToFoldACImm(), llvm::X86InstrInfo::unfoldMemoryOperand(), updateDefinedRegisters(), updateKillStatus(), and VerifyLowRegs().
Definition at line 134 of file MachineOperand.cpp.
References assert(), getMFIfAvailable(), getReg(), llvm::Register::isPhysicalRegister(), and isReg().
Referenced by llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::createSIPreAllocateWWMRegsPass(), isBackwardPropagatableCopy(), isCoalescable(), isNopCopy(), and setIsUndef().
Definition at line 509 of file MachineOperand.h.
References assert(), isReg(), and setIsRenamable().
Referenced by llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::TargetInstrInfo::commuteInstructionImpl(), copyRegOperand(), definesFullReg(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), emitLoadM0FromVGPRLoop(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), getNewSource(), llvm::SIInstrInfo::insertBranch(), isCrossCopy(), isFullCopyOf(), mergeOperations(), preserveCondRegFlags(), setM0ToIndexFromSGPR(), shrinkScalarCompare(), substPhysReg(), and updateOperand().
Definition at line 488 of file MachineOperand.h.
References setIsDef().
|
inline |
Definition at line 687 of file MachineOperand.h.
References assert(), and isMBB().
Referenced by llvm::CombinerHelper::applyElideBrByInvertingCond(), CreateMBB(), createPHIsForCMOVsInSinkBB(), fixPHIsInSucc(), getRegsUsedByPHIs(), getUnconditionalBrDisp(), llvm::HexagonInstrInfo::invertAndChangeJumpTarget(), IsUnconditionalJump(), llvm::AMDGPULegalizerInfo::legalizeIntrinsic(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::MachineBasicBlock::replacePhiUsesWith(), setPhiPred(), splitBlock(), splitEdge(), and updatePHIs().
Definition at line 682 of file MachineOperand.h.
References assert(), and isMetadata().
Referenced by AssignProtectedObjSet(), and llvm::updateDbgValueForSpill().
|
inline |
Definition at line 668 of file MachineOperand.h.
References assert(), isBlockAddress(), isCPI(), isGlobal(), isMCSymbol(), isSymbol(), and isTargetIndex().
Referenced by ChangeToES(), ChangeToGA(), ChangeToTargetIndex(), CreateBA(), CreateCPI(), CreateES(), CreateGA(), CreateMCSymbol(), CreateTargetIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), INITIALIZE_PASS(), and parseGlobalValue().
|
inline |
Definition at line 701 of file MachineOperand.h.
References assert(), ChangeToES(), ChangeToFPImmediate(), ChangeToFrameIndex(), ChangeToGA(), ChangeToImmediate(), ChangeToMCSymbol(), ChangeToRegister(), ChangeToTargetIndex(), hash_value, isDead(), isDebug(), isDef(), isIdenticalTo(), isKill(), isPredicate(), isUndef(), and llvm::Other.
Referenced by llvm::CombinerHelper::applyElideBrByInvertingCond().
| void MachineOperand::setReg | ( | Register | Reg | ) |
Change the register this operand corresponds to.
Definition at line 53 of file MachineOperand.cpp.
References llvm::MachineRegisterInfo::addRegOperandToUseList(), getMFIfAvailable(), getReg(), MRI, Reg, and llvm::MachineRegisterInfo::removeRegOperandFromUseList().
Referenced by addSegmentsWithValNo(), llvm::CombinerHelper::applyCombineExtendingLoads(), llvm::RegisterBankInfo::applyDefaultMapping(), llvm::SwingSchedulerDAG::applyInstrChange(), llvm::AMDGPURegisterBankInfo::applyMappingImpl(), llvm::AMDGPURegisterBankInfo::applyMappingWideLoad(), llvm::CombinerHelper::applyPtrAddImmedChain(), atomicReadDroppedOnZero(), attemptDebugCopyProp(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), llvm::WebAssemblyDebugValueManager::clone(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::PPCInstrInfo::commuteInstructionImpl(), computeBytesPoppedByCalleeForSRet(), llvm::AMDGPURegisterBankInfo::constrainOpWithReadfirstlane(), llvm::constrainSelectedInstRegOperands(), copyRegOperand(), createBBSelectReg(), llvm::createBreakFalseDeps(), llvm::createR600ExpandSpecialInstrsPass(), llvm::createSIPreAllocateWWMRegsPass(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), emitLoadSRsrcFromVGPRLoop(), emitPostSt(), ExpandMOVImmSExti8(), expandNOVLXLoad(), expandNOVLXStore(), llvm::ARMBaseInstrInfo::expandPostRAPseudo(), findStartOfTree(), llvm::SIInstrInfo::fixImplicitOperands(), llvm::fixStackStores(), llvm::SwingSchedulerDAG::fixupRegisterOverlaps(), llvm::PPCInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::SIInstrInfo::FoldImmediate(), llvm::X86InstrInfo::foldMemoryOperandImpl(), foldVGPRCopyIntoRegSequence(), llvm::Localizer::getAnalysisUsage(), getCallOpcode(), getInsertVecEltOpInfo(), getRegClassFromGRPhysReg(), getRegsUsedByPHIs(), getTag(), getVectorSHLImm(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), InsertLDR_STR(), insertPHI(), isBackwardPropagatableCopy(), isCoalescable(), isEFLAGSLive(), isFullCopyOf(), isFullUndefDef(), isNopCopy(), llvm::SIInstrInfo::legalizeGenericOperand(), llvm::AArch64LegalizerInfo::legalizeIntrinsic(), llvm::AMDGPULegalizerInfo::legalizeLoad(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOperandsSMRD(), llvm::AMDGPULegalizerInfo::legalizeRawBufferStore(), llvm::LegalizerHelper::lowerBitCount(), llvm::LegalizerHelper::lowerBswap(), llvm::X86CallLowering::lowerCall(), llvm::AArch64CallLowering::lowerCall(), llvm::MachineRegisterInfo::markUsesInDebugValueAsUndef(), maybeRewriteToDrop(), moveAndTeeForMultiUse(), moveForSingleUse(), llvm::SIInstrInfo::moveToVALU(), llvm::LegalizerHelper::narrowScalar(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::PeelSingleBlockLoop(), performSink(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::R600InstrInfo::PredicateInstruction(), llvm::TargetInstrInfo::PredicateInstruction(), readsReg(), rematerializeCheapDef(), RemoveDeadAddBetweenLEAAndJT(), replaceDominatedUses(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::CombinerHelper::replaceRegOpWith(), replaceRegUsesAfterLoop(), llvm::MachineRegisterInfo::replaceRegWith(), llvm::MachineSSAUpdater::RewriteUse(), llvm::rdf::CopyPropagation::run(), llvm::MachinePipeliner::runOnMachineFunction(), selectCopy(), selectSubregisterCopy(), llvm::setDirectAddressInInstr(), shrinkScalarCompare(), llvm::LiveDebugVariables::splitRegister(), false::Chain::str(), substPhysReg(), substVirtReg(), llvm::SystemZInstrInfo::SystemZInstrInfo(), tieOpsIfNeeded(), tryToFoldACImm(), llvm::AntiDepBreaker::UpdateDbgValue(), updateDefinedRegisters(), updateOperand(), and llvm::LegalizerHelper::widenScalar().
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 696 of file MachineOperand.h.
References assert(), and isRegMask().
|
inline |
Definition at line 469 of file MachineOperand.h.
References assert(), isReg(), substPhysReg(), and substVirtReg().
Referenced by attemptDebugCopyProp(), canTurnIntoCOPY(), llvm::TargetInstrInfo::commuteInstructionImpl(), llvm::PPCInstrInfo::commuteInstructionImpl(), copyRegOperand(), CreateReg(), llvm::createSIPreAllocateWWMRegsPass(), definesFullReg(), llvm::SIInstrInfo::FoldImmediate(), foldImmediates(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), getNewSource(), getRegClassFromGRPhysReg(), getRegsUsedByPHIs(), getVectorSHLImm(), insertDivByZeroTrap(), insertPHI(), isCoalescable(), llvm::SIInstrInfo::legalizeGenericOperand(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::rdf::CopyPropagation::run(), llvm::MachinePipeliner::runOnMachineFunction(), sizeToSubRegIndex(), llvm::LiveDebugVariables::splitRegister(), substPhysReg(), substVirtReg(), swapRegAndNonRegOperand(), tryToFoldACImm(), and llvm::LiveDebugVariables::~LiveDebugVariables().
|
inline |
Definition at line 222 of file MachineOperand.h.
References assert(), F(), and isReg().
Referenced by NoAutoPaddingScope::changeAndComment(), ChangeToES(), ChangeToGA(), ChangeToTargetIndex(), CreateBA(), CreateCPI(), CreateES(), CreateGA(), CreateJTI(), CreateMBB(), CreateMCSymbol(), CreateTargetIndex(), getVectorSHLImm(), isUncheckedLoadOrStoreOpcode(), llvm::MipsCallLowering::lowerCall(), parseGlobalValue(), and swapMIOperands().
| 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 85 of file MachineOperand.cpp.
References assert(), getSubReg(), llvm::TargetRegisterInfo::getSubReg(), isDef(), llvm::MCRegister::isPhysical(), setIsUndef(), setReg(), and setSubReg().
Referenced by addSegmentsWithValNo(), getRegClassFromGRPhysReg(), llvm::MachineRegisterInfo::replaceRegWith(), setSubReg(), and llvm::LiveDebugVariables::splitRegister().
| 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 75 of file MachineOperand.cpp.
References assert(), llvm::TargetRegisterInfo::composeSubRegIndices(), getSubReg(), llvm::Register::isVirtual(), setReg(), and setSubReg().
Referenced by setSubReg(), and updateOperand().
|
friend |
Definition at line 939 of file MachineOperand.h.
|
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.
Referenced by llvm::DenseMapInfo< MachineOperand >::getHashValue(), llvm::operator<<(), and setPredicate().
|
friend |
Definition at line 925 of file MachineOperand.h.
|
friend |
Definition at line 926 of file MachineOperand.h.
| unsigned llvm::MachineOperand::OffsetLo |
Definition at line 158 of file MachineOperand.h.
| unsigned llvm::MachineOperand::RegNo |
Definition at line 157 of file MachineOperand.h.
Referenced by CreateReg().
1.8.13