|
LLVM
3.7.0
|
MachineOperand class - Representation of each machine instruction operand. More...
#include <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 } |
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 |
| void | print (raw_ostream &os, ModuleSlotTracker &MST, const TargetRegisterInfo *TRI=nullptr) 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 |
| unsigned | 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 | 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 (unsigned Reg) |
| Change the register this operand corresponds to. More... | |
| void | setSubReg (unsigned subReg) |
| void | substVirtReg (unsigned Reg, unsigned SubIdx, const TargetRegisterInfo &) |
| substVirtReg - Substitute the current register with the virtual subregister Reg:SubReg. More... | |
| void | substPhysReg (unsigned 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 | 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 |
| 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 | setFPImm (const ConstantFP *CFP) |
| void | setOffset (int64_t Offset) |
| void | setIndex (int Idx) |
| void | setMBB (MachineBasicBlock *MBB) |
| bool | isIdenticalTo (const MachineOperand &Other) const |
| isIdenticalTo - Return true if this operand is identical to the specified operand. 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 char TargetFlags=0) |
| ChangeToES - Replace this operand with a new external symbol operand. More... | |
| void | ChangeToMCSymbol (MCSymbol *Sym) |
| ChangeToMCSymbol - Replace this operand with a new MC symbol operand. More... | |
| void | ChangeToRegister (unsigned 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 |
| 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 44 of file MachineOperand.h.
| enum llvm::MachineOperand::MachineOperandType : unsigned char |
| 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. |
Definition at line 46 of file MachineOperand.h.
|
inline |
Definition at line 199 of file MachineOperand.h.
Referenced by llvm::HexagonInstrInfo::immediateExtend().
ChangeToES - Replace this operand with a new external symbol operand.
Definition at line 145 of file MachineInstr.cpp.
References isReg(), isTied(), MO_ExternalSymbol, setOffset(), and setTargetFlags().
| 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 136 of file MachineInstr.cpp.
References isReg(), isTied(), and MO_FPImmediate.
| 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 127 of file MachineInstr.cpp.
References ImmVal, isReg(), isTied(), and MO_Immediate.
Referenced by llvm::SIInstrInfo::commuteInstruction(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::SIInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), foldImmediates(), llvm::X86InstrInfo::foldMemoryOperandImpl(), replaceFI(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::rewriteAArch64FrameIndex(), llvm::rewriteARMFrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), and updateOperand().
| void MachineOperand::ChangeToMCSymbol | ( | MCSymbol * | Sym | ) |
ChangeToMCSymbol - Replace this operand with a new MC symbol operand.
Definition at line 157 of file MachineInstr.cpp.
References isReg(), isTied(), MO_MCSymbol, and Sym.
| void MachineOperand::ChangeToRegister | ( | unsigned | 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 170 of file MachineInstr.cpp.
References llvm::MachineRegisterInfo::addRegOperandToUseList(), llvm::MachineBasicBlock::getParent(), getParent(), isDead(), isDebug(), isDef(), isKill(), isReg(), isUndef(), MBB, llvm::AArch64CC::MI, MO_Register, Reg, and llvm::MachineRegisterInfo::removeRegOperandFromUseList().
Referenced by llvm::SIInstrInfo::commuteInstruction(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::SIInstrInfo::moveSMRDToVALU(), replaceFI(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::rewriteAArch64FrameIndex(), llvm::rewriteARMFrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), and llvm::X86InstrInfo::unfoldMemoryOperand().
|
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 219 of file MachineOperand.h.
|
inlinestatic |
clobbersPhysReg - Returns true if this RegMask clobbers PhysReg.
It is sometimes necessary to detach the register mask pointer from its machine operand. This static method can be used for such detached bit mask pointers.
Definition at line 475 of file MachineOperand.h.
Referenced by llvm::MachineOperandIteratorBase::analyzePhysReg(), callClobbersAnyYmmReg(), canClobberPhysRegDefs(), canClobberReachingPhysRegUse(), CheckForLiveRegDefMasked(), clobbersAllYmmRegs(), clobbersCTR(), clobbersPhysReg(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::X86RegisterInfo::getReservedRegs(), initReachingDef(), llvm::X86InstrInfo::isSafeToClobberEFLAGS(), llvm::AArch64InstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::LivePhysRegs::removeRegsInMask(), and llvm::ThumbRegisterInfo::saveScavengerRegister().
clobbersPhysReg - Returns true if this RegMask operand clobbers PhysReg.
Definition at line 482 of file MachineOperand.h.
References clobbersPhysReg(), and getRegMask().
|
inlinestatic |
Definition at line 673 of file MachineOperand.h.
References BA, MO_BlockAddress, OffsetedInfo, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addBlockAddress().
|
inlinestatic |
Definition at line 720 of file MachineOperand.h.
References CFIIndex, and MO_CFIIndex.
Referenced by llvm::MachineInstrBuilder::addCFIIndex().
|
inlinestatic |
Definition at line 585 of file MachineOperand.h.
References CI, and MO_CImmediate.
Referenced by llvm::MachineInstrBuilder::addCImm().
|
inlinestatic |
Definition at line 634 of file MachineOperand.h.
References MO_ConstantPoolIndex, setIndex(), setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addConstantPoolIndex(), and llvm::X86InstrInfo::foldMemoryOperandImpl().
|
inlinestatic |
Definition at line 665 of file MachineOperand.h.
References MO_ExternalSymbol, OffsetedInfo, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addExternalSymbol().
|
inlinestatic |
Definition at line 629 of file MachineOperand.h.
References MO_FrameIndex, and setIndex().
Referenced by llvm::MachineInstrBuilder::addFrameIndex(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86AddressMode::getFullAddress(), and llvm::FastISel::selectIntrinsicCall().
|
inlinestatic |
Definition at line 591 of file MachineOperand.h.
References CFP, and MO_FPImmediate.
Referenced by llvm::MachineInstrBuilder::addFPImm().
|
inlinestatic |
Definition at line 657 of file MachineOperand.h.
References GV, MO_GlobalAddress, OffsetedInfo, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addGlobalAddress(), llvm::X86AddressMode::getFullAddress(), and llvm::FastISel::selectPatchpoint().
|
inlinestatic |
Definition at line 579 of file MachineOperand.h.
References MO_Immediate, and setImm().
Referenced by llvm::MachineInstrBuilder::addImm(), llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::HexagonInstrInfo::AnalyzeBranch(), llvm::SparcInstrInfo::AnalyzeBranch(), llvm::MSP430InstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::SystemZInstrInfo::AnalyzeBranch(), llvm::X86InstrInfo::AnalyzeBranchPredicate(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86AddressMode::getFullAddress(), llvm::SIInstrInfo::moveSMRDToVALU(), llvm::SIInstrInfo::moveToVALU(), parseCondBranch(), llvm::FastISel::selectPatchpoint(), and llvm::FastISel::selectStackmap().
|
inlinestatic |
Definition at line 650 of file MachineOperand.h.
References MO_JumpTableIndex, setIndex(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addJumpTableIndex().
|
inlinestatic |
Definition at line 622 of file MachineOperand.h.
References MO_MachineBasicBlock, setMBB(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addMBB().
|
inlinestatic |
Definition at line 711 of file MachineOperand.h.
References MO_MCSymbol, setOffset(), setTargetFlags(), and Sym.
Referenced by llvm::MachineInstrBuilder::addSym().
|
inlinestatic |
Definition at line 705 of file MachineOperand.h.
References MD, and MO_Metadata.
Referenced by llvm::MachineInstrBuilder::addMetadata().
|
inlinestatic |
Definition at line 597 of file MachineOperand.h.
References isDead(), isDebug(), isDef(), isEarlyClobber(), isInternalRead(), isKill(), isUndef(), MO_Register, Reg, RegNo, and setSubReg().
Referenced by addCalleeSaveRegistersAsImpOperand(), llvm::MachineInstrBuilder::addReg(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterKilled(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::R600InstrInfo::AnalyzeBranch(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86AddressMode::getFullAddress(), INITIALIZE_PASS(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::rewriteT2FrameIndex(), llvm::FastISel::selectIntrinsicCall(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), and llvm::tryFoldSPUpdateIntoPushPop().
|
inlinestatic |
Definition at line 699 of file MachineOperand.h.
References MO_RegisterLiveOut, and RegMask.
|
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 693 of file MachineOperand.h.
References MO_RegisterMask, and RegMask.
Referenced by llvm::MachineInstrBuilder::addRegMask(), and llvm::FastISel::selectPatchpoint().
|
inlinestatic |
Definition at line 642 of file MachineOperand.h.
References MO_TargetIndex, setIndex(), setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addTargetIndex().
|
inline |
Definition at line 441 of file MachineOperand.h.
References isBlockAddress().
Referenced by llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::SystemZMCInstLower::getExpr(), llvm::hash_value(), llvm::HexagonLowerToMC(), isIdenticalTo(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), LowerSymbolOperand(), and llvm::MipsAsmPrinter::printOperand().
|
inline |
Definition at line 451 of file MachineOperand.h.
References isCFIIndex().
Referenced by llvm::AsmPrinter::emitCFIInstruction(), llvm::hash_value(), and isIdenticalTo().
|
inline |
Definition at line 415 of file MachineOperand.h.
References isCImm().
Referenced by emitDebugValueComment(), getDebugLocValue(), llvm::hash_value(), and isIdenticalTo().
|
inline |
Definition at line 420 of file MachineOperand.h.
References isFPImm().
Referenced by llvm::DwarfUnit::addConstantFPValue(), emitDebugValueComment(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), getDebugLocValue(), llvm::hash_value(), llvm::HexagonLowerToMC(), isIdenticalTo(), and llvm::ARMAsmPrinter::lowerOperand().
|
inline |
Definition at line 436 of file MachineOperand.h.
References isGlobal().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::EHStreamer::callToNoUnwindFunction(), llvm::PPCFrameLowering::emitEpilogue(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMFrameLowering::fixTCReturn(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), llvm::BPFMCInstLower::GetGlobalAddressSymbol(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), GetSymbolFromOperand(), llvm::hash_value(), llvm::HexagonLowerToMC(), isIdenticalTo(), llvm::ARMAsmPrinter::lowerOperand(), LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), printSymbolOperand(), and llvm::ARMBaseInstrInfo::produceSameValue().
|
inline |
Definition at line 410 of file MachineOperand.h.
References isImm().
Referenced by llvm::DwarfUnit::addConstantValue(), llvm::MachineInstrBuilder::addDisp(), llvm::R600InstrInfo::addFlag(), adjustDefLatency(), llvm::SITargetLowering::AdjustInstrPostInstrSelection(), llvm::HexagonInstrInfo::analyzeCompare(), llvm::SystemZInstrInfo::analyzeCompare(), llvm::AArch64InstrInfo::analyzeCompare(), llvm::PPCInstrInfo::analyzeCompare(), llvm::ARMBaseInstrInfo::analyzeCompare(), llvm::X86InstrInfo::analyzeCompare(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), canCompareBeNewValueJump(), canFoldIntoCSel(), canShrink(), llvm::R600InstrInfo::clearFlag(), llvm::SIInstrInfo::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::commuteInstruction(), compareMachineOp(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::SparcFrameLowering::eliminateCallFramePseudoInstr(), llvm::MSP430FrameLowering::eliminateCallFramePseudoInstr(), llvm::XCoreFrameLowering::eliminateCallFramePseudoInstr(), llvm::Thumb1FrameLowering::eliminateCallFramePseudoInstr(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitEpilogue(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::AsmPrinter::emitFrameAlloc(), EmitGCCInlineAsmStr(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), EmitMSInlineAsmStr(), llvm::HexagonEvaluator::evaluate(), llvm::BitTracker::MachineEvaluator::evaluate(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::SparcTargetLowering::expandSelectCC(), llvm::X86InstrInfo::findCommutedOpIndices(), llvm::MachineInstr::findInlineAsmFlagIdx(), llvm::MachineInstr::findTiedOperandIdx(), llvm::SIInstrInfo::FoldImmediate(), llvm::PPCInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), foldImmediates(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), llvm::SystemZInstrInfo::getBranchInfo(), llvm::SystemZInstrInfo::getCompareAndBranch(), getDebugLocValue(), llvm::TargetInstrInfo::getExtractSubregInputs(), getFPOffsetInPrologue(), llvm::ARMBaseRegisterInfo::getFrameIndexInstrOffset(), llvm::StatepointOpers::getID(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), llvm::getInstrPredicate(), llvm::MipsInstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), llvm::PPCInstrInfo::GetInstSizeInBytes(), llvm::NVPTXInstrInfo::getLdStCodeAddrSpace(), llvm::SIInstrInfo::getMemOpBaseRegImmOfs(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfs(), llvm::X86InstrInfo::getMemOpBaseRegImmOfs(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfsWidth(), getMemoryOpOffset(), getNumMicroOpsSwiftLdSt(), llvm::StatepointOpers::getNumPatchBytes(), llvm::ARMBaseInstrInfo::getPredicate(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::TargetInstrInfo::getSPAdjust(), llvm::X86InstrInfo::getSPAdjust(), getSrcFromCopy(), llvm::R600InstrInfo::getSrcs(), getTruncatedShiftCount(), llvm::PatchPointOpers::getVarIdx(), llvm::StatepointOpers::getVarIdx(), llvm::AArch64InstrInfo::hasExtendedReg(), llvm::hash_value(), HashMachineInstr(), llvm::SIInstrInfo::hasModifiersSet(), llvm::AArch64InstrInfo::hasShiftedReg(), llvm::HexagonLowerToMC(), INITIALIZE_PASS(), invertBccCondition(), llvm::isAArch64FrameOffsetLegal(), llvm::AArch64InstrInfo::isAsCheapAsAMove(), llvm::AArch64InstrInfo::isCoalescableExtInstr(), isCompareZero(), llvm::HexagonInstrInfo::isConstExtended(), llvm::PPCRegisterInfo::isFrameOffsetLegal(), llvm::AArch64InstrInfo::isGPRCopy(), llvm::AArch64InstrInfo::isGPRZero(), isGreaterThanNBitTFRI(), isIdenticalTo(), llvm::SIInstrInfo::isInlineConstant(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), isMatchingDecrement(), isMatchingIncrement(), isMatchingUpdateInsn(), llvm::HexagonInstrInfo::isPredicable(), llvm::R600InstrInfo::isPredicable(), llvm::ARMBaseInstrInfo::isPredicated(), isRedundantFlagInstr(), llvm::isScale(), llvm::AArch64InstrInfo::isScaledAddr(), isShift(), isSimpleBD12Move(), isSimpleMove(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), isSuitableForMask(), llvm::ARMBaseInstrInfo::isSwiftFastImmShift(), isZeroImm(), llvm::MipsInstrInfo::isZeroImm(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::XCoreMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), lowerRIEfLow(), lowerRIHigh(), lowerRILow(), lowerSubvectorLoad(), lowerSubvectorStore(), llvm::MachineInstr::mayLoad(), llvm::MachineInstr::mayStore(), llvm::SIInstrInfo::moveSMRDToVALU(), llvm::SIInstrInfo::moveToVALU(), llvm::PPCRegisterInfo::needsFrameBaseReg(), llvm::AArch64InstrInfo::optimizeCompareInstr(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::ARMBaseInstrInfo::optimizeSelect(), llvm::MachineInstr::print(), llvm::SystemZAsmPrinter::PrintAsmMemoryOperand(), llvm::HexagonAsmPrinter::PrintAsmMemoryOperand(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), llvm::SystemZAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::printFCCOperand(), printIntelMemReference(), printLeaMemReference(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), printOperand(), printPCRelImm(), llvm::MipsAsmPrinter::printUnsignedImm(), llvm::MipsAsmPrinter::printUnsignedImm8(), llvm::StackMaps::recordStackMap(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::R600InstrInfo::ReverseBranchCondition(), llvm::rewriteAArch64FrameIndex(), llvm::rewriteARMFrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::AArch64InstrInfo::shouldClusterLoads(), llvm::SIInstrInfo::splitSMRD(), switch(), and llvm::X86InstrInfo::unfoldMemoryOperand().
|
inline |
Definition at line 430 of file MachineOperand.h.
References isCPI(), isFI(), isJTI(), and isTargetIndex().
Referenced by llvm::ARMBaseInstrInfo::duplicate(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::NVPTXRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::HexagonRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::TargetLoweringBase::emitPatchPoint(), getConstantFromPool(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::hash_value(), HashMachineInstr(), llvm::HexagonLowerToMC(), isIdenticalTo(), llvm::MipsSEInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), isSimpleMove(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::MipsSEInstrInfo::isStoreToStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), LowerSymbolOperand(), MatchingStackOffset(), llvm::BranchFolder::OptimizeFunction(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), printSymbolOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), and llvm::ARMBaseInstrInfo::reMaterialize().
|
inline |
Definition at line 425 of file MachineOperand.h.
References isMBB().
Referenced by llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::NVPTXInstrInfo::AnalyzeBranch(), llvm::HexagonInstrInfo::AnalyzeBranch(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::AArch64InstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::SystemZInstrInfo::AnalyzeBranch(), llvm::R600InstrInfo::AnalyzeBranch(), BBIsJumpedOver(), EmitGCCInlineAsmStr(), llvm::HexagonEvaluator::evaluate(), findCorrespondingPred(), getDestBlock(), llvm::HexagonInstrInfo::getDotNewPredJumpOp(), llvm::SystemZMCInstLower::getExpr(), getPHIDeps(), getPHISrcRegOpIdx(), getTargetMBB(), llvm::hash_value(), HashMachineInstr(), llvm::HexagonLowerToMC(), isIdenticalTo(), llvm::SIInstrInfo::legalizeOperands(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), LowerSymbolOperand(), llvm::AArch64InstrInfo::optimizeCondBranch(), parseCondBranch(), llvm::PPCInstrInfo::PredicateInstruction(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), and llvm::MachineBasicBlock::transferSuccessorsAndUpdatePHIs().
|
inline |
Definition at line 446 of file MachineOperand.h.
References isMCSymbol().
Referenced by llvm::AsmPrinter::emitFrameAlloc(), llvm::hash_value(), isIdenticalTo(), and llvm::AArch64MCInstLower::lowerOperand().
Definition at line 499 of file MachineOperand.h.
References isMetadata().
Referenced by llvm::MachineInstr::emitError(), llvm::MachineInstr::getDebugExpression(), llvm::MachineInstr::getDebugVariable(), llvm::hash_value(), isIdenticalTo(), and llvm::MachineInstr::print().
|
inline |
Return the offset from the symbol in this operand.
This always returns 0 for ExternalSymbol operands.
Definition at line 458 of file MachineOperand.h.
References isBlockAddress(), isCPI(), isGlobal(), isMCSymbol(), isSymbol(), and isTargetIndex().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::PPCFrameLowering::emitEpilogue(), llvm::ARMFrameLowering::fixTCReturn(), llvm::SystemZMCInstLower::getExpr(), GetSymbolRef(), llvm::hash_value(), HashMachineInstr(), isIdenticalTo(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::BPFMCInstLower::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandDarwin(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), printSymbolOperand(), and llvm::ARMBaseInstrInfo::produceSameValue().
|
inline |
getParent - Return the instruction that this operand belongs to.
Definition at line 208 of file MachineOperand.h.
Referenced by llvm::MachineOperandIteratorBase::analyzeVirtReg(), ChangeToRegister(), createDeadDef(), llvm::MachineInstr::emitError(), llvm::MachineInstr::eraseFromBundle(), llvm::MachineInstr::eraseFromParent(), llvm::MachineInstr::eraseFromParentAndMarkDBGValuesForRemoval(), llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::getOperandNo(), llvm::MachineInstr::getRegClassConstraint(), GetSymbolRef(), llvm::MachineInstr::isIdenticalTo(), llvm::MachineInstr::isInvariantLoad(), isKilled(), isNoReturnDef(), llvm::MachineRegisterInfo::defusechain_instr_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator*(), llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator++(), llvm::MachineRegisterInfo::defusechain_instr_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator++(), llvm::MachineRegisterInfo::defusechain_instr_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator->(), llvm::MachineInstr::print(), llvm::MachineInstr::removeFromBundle(), llvm::MachineInstr::removeFromParent(), llvm::MachineSSAUpdater::RewriteUse(), setIsDef(), setReg(), llvm::FastISel::tryToFoldLoad(), UpdatePredRedefs(), and llvm::MachineRegisterInfo::verifyUseList().
|
inline |
Definition at line 209 of file MachineOperand.h.
|
inline |
getReg - Returns the register number.
Definition at line 267 of file MachineOperand.h.
References isReg().
Referenced by addLiveInRegs(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterDefReadUndef(), llvm::MachineInstr::addRegisterKilled(), llvm::MachineRegisterInfo::addRegOperandToUseList(), llvm::ScheduleDAGInstrs::addSchedBarrierDeps(), llvm::ScheduleDAGInstrs::addVRegDefDeps(), llvm::ScheduleDAGInstrs::addVRegUseDeps(), llvm::SITargetLowering::AdjustInstrPostInstrSelection(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::HexagonInstrInfo::analyzeCompare(), llvm::SystemZInstrInfo::analyzeCompare(), llvm::AArch64InstrInfo::analyzeCompare(), llvm::PPCInstrInfo::analyzeCompare(), llvm::ARMBaseInstrInfo::analyzeCompare(), llvm::X86InstrInfo::analyzeCompare(), llvm::MachineOperandIteratorBase::analyzePhysReg(), llvm::MachineOperandIteratorBase::analyzeVirtReg(), biasPhysRegCopy(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::ARMBaseInstrInfo::breakPartialRegDependency(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), canCombineWithMUL(), canCompareBeNewValueJump(), canFoldCopy(), canFoldIntoCSel(), canFoldIntoMOVCC(), llvm::X86InstrInfo::classifyLEAReg(), llvm::MachineInstr::clearRegisterDeads(), llvm::MachineInstr::clearRegisterKills(), clobbersCTR(), collectDebugValues(), CombineCVTAToLocal(), llvm::SIInstrInfo::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfo::commuteInstruction(), compareMachineOp(), computeOthers(), llvm::TargetSchedModel::computeOutputLatency(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), copyHint(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::CreateEmptyPHI(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::HexagonInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), llvm::BPFRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ThumbRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), emitDebugValueComment(), llvm::PPCTargetLowering::emitEHSjLjLongJmp(), llvm::PPCTargetLowering::emitEHSjLjSetJmp(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::AsmPrinter::emitImplicitDef(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::R600TargetLowering::EmitInstrWithCustomInserter(), llvm::BPFTargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), emitKill(), EmitMonitor(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), EmitPCMPSTRI(), EmitPCMPSTRM(), llvm::MSP430TargetLowering::EmitShiftInstr(), EmitXBegin(), eraseGPOpnd(), eraseIfDead(), Expand2AddrUndef(), llvm::SparcTargetLowering::expandAtomicRMW(), expandLoadStackGuard(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::SparcTargetLowering::expandSelectCC(), llvm::finalizeBundle(), findDeadCallerSavedReg(), findHoistingInsertPosAndDeps(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::findRegisterUseOperandIdx(), finishConvertToThreeAddress(), llvm::ARMFrameLowering::fixTCReturn(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::SIInstrInfo::FoldImmediate(), llvm::PPCInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), for(), forceReg(), llvm::RegScavenger::forward(), llvm::X86InstrInfo::genAlternativeCodeSequence(), genMadd(), genMaddR(), getCallTargetRegOpnd(), getDataDeps(), getDebugLocValue(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), getFPOffsetInPrologue(), getFPReg(), llvm::MachineInstrExpressionTrait::getHashValue(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), llvm::getInstrPredicate(), llvm::SIInstrInfo::getMemOpBaseRegImmOfs(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfs(), llvm::X86InstrInfo::getMemOpBaseRegImmOfs(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfsWidth(), getNumMicroOpsSwiftLdSt(), llvm::PPCInstrInfo::getOperandLatency(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::SIInstrInfo::getOpRegClass(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), llvm::X86InstrInfo::getPartialRegUpdateClearance(), getPHIDeps(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::GetPHIValue(), GetPostIncrementOperand(), getPredicatedRegister(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::ARMBaseInstrInfo::getRegSequenceLikeInputs(), getShuffleComment(), getSrcFromCopy(), llvm::R600InstrInfo::getSrcs(), llvm::X86InstrInfo::getUndefRegClearance(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::GetUndefVal(), llvm::MachineSSAUpdater::GetValueInMiddleOfBlock(), HandleVRSaveUpdate(), llvm::hash_value(), HashMachineInstr(), hasLiveCondCodeDef(), hasRAWHazard(), hasReassocSibling(), hasVGPROperands(), hasVirtualRegDefsInBasicBlock(), hasYmmReg(), llvm::HexagonLowerToMC(), INITIALIZE_PASS(), llvm::HexagonInstrInfo::InsertBranch(), insertDivByZeroTrap(), isCandidateStore(), llvm::AArch64InstrInfo::isCoalescableExtInstr(), llvm::PPCInstrInfo::isCoalescableExtInstr(), llvm::X86InstrInfo::isCoalescableExtInstr(), llvm::MachineInstr::isConstantValuePHI(), isCopyToReg(), llvm::IsCPSRDead< MachineInstr >(), isCSRestore(), isDescribedByReg(), llvm::AArch64InstrInfo::isFPRCopy(), isFullCopyOf(), llvm::AArch64InstrInfo::isGPRCopy(), llvm::AArch64InstrInfo::isGPRZero(), isIdenticalTo(), llvm::MachineInstr::isIdenticalTo(), llvm::MachineInstr::isIdentityCopy(), llvm::MipsSEInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::X86InstrInfo::isLoadFromStackSlot(), isLocalCopy(), isMatchingDecrement(), isMatchingIncrement(), isMatchingUpdateInsn(), llvm::NVPTXInstrInfo::isMoveInstr(), isNonFoldablePartialRegisterLoad(), isNopCopy(), isOperandKill(), llvm::SIInstrInfo::isOperandLegal(), isPhysicalRegCopy(), llvm::R600InstrInfo::isPredicated(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), isRedundantFlagInstr(), IsSafeAndProfitableToMove(), llvm::X86InstrInfo::isSafeToClobberEFLAGS(), isSecondInstructionInSequence(), isShift(), isSimpleBD12Move(), isSimpleIndexCalc(), isSimpleMove(), isSourceDefinedByImplicitDef(), llvm::MipsSEInstrInfo::isStoreToStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::X86InstrInfo::isStoreToStackSlot(), isSuitableForMask(), isTwoAddrUse(), isVGPR(), llvm::X86InstrInfo::isX86_64ExtendedReg(), llvm::SIInstrInfo::legalizeOperands(), llvm::Mips16InstrInfo::loadImmediate(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::PPCRegisterInfo::lowerCRBitRestore(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRRestore(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::XCoreMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), lowerRIEfLow(), lowerRIHigh(), lowerRILow(), lowerSubvectorLoad(), lowerSubvectorStore(), llvm::PPCRegisterInfo::lowerVRSAVERestore(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), MaySpeculate(), MIIsInTerminatorSequence(), llvm::MachineRegisterInfo::moveOperands(), llvm::SIInstrInfo::moveSMRDToVALU(), llvm::SIInstrInfo::moveToVALU(), llvm::AArch64InstrInfo::optimizeCompareInstr(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeCompareInstr(), llvm::AArch64InstrInfo::optimizeCondBranch(), llvm::X86InstrInfo::optimizeLoadInstr(), llvm::ARMBaseInstrInfo::optimizeSelect(), print(), llvm::MachineInstr::print(), llvm::SystemZAsmPrinter::PrintAsmMemoryOperand(), llvm::ARMAsmPrinter::PrintAsmMemoryOperand(), printAsmMRegister(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), printIntelMemReference(), printLeaMemReference(), printMemReference(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), printOperand(), llvm::ARMBaseInstrInfo::produceSameValue(), llvm::MachineInstr::readsWritesVirtualRegister(), reassociateOps(), registerADRCandidate(), llvm::ARMBaseInstrInfo::reMaterialize(), llvm::TargetInstrInfo::reMaterialize(), llvm::X86InstrInfo::reMaterialize(), removeCopies(), removeIPMBasedCompare(), removeKillInfo(), llvm::MachineRegisterInfo::removeRegOperandFromUseList(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::PPCFrameLowering::replaceFPWithRealFP(), resultTests(), llvm::R600InstrInfo::ReverseBranchCondition(), llvm::rewriteAArch64FrameIndex(), llvm::ThumbRegisterInfo::rewriteFrameIndex(), llvm::rewriteT2FrameIndex(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::ThumbRegisterInfo::saveScavengerRegister(), llvm::RegScavenger::scavengeRegister(), llvm::R600SchedStrategy::schedNode(), llvm::FastISel::selectIntrinsicCall(), llvm::ARMBaseInstrInfo::setExecutionDomain(), llvm::MachineInstr::setPhysRegsDeadExcept(), setReg(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::SIInstrInfo::splitSMRD(), llvm::MachineInstr::substituteRegister(), switch(), llvm::ScheduleDAGInstrs::toggleKillFlag(), TrackDefUses(), trackRegDefsUses(), transferImpOps(), llvm::tryFoldSPUpdateIntoPushPop(), tryOrrMovk(), trySequenceOfOnes(), tryToreplicateChunks(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRDef(), UpdateCPSRUse(), llvm::AntiDepBreaker::UpdateDbgValue(), updateOperand(), UpdateOperandRegClass(), updatePhysDepsDownwards(), updatePhysDepsUpwards(), UpdatePredRedefs(), UseReg(), llvm::SIInstrInfo::usesConstantBus(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), and llvm::MachineRegisterInfo::verifyUseList().
|
inline |
getRegLiveOut - Returns a bit mask of live-out registers.
Definition at line 494 of file MachineOperand.h.
References isRegLiveOut().
|
inline |
getRegMask - Returns a bit mask of registers preserved by this RegMask operand.
Definition at line 488 of file MachineOperand.h.
References isRegMask().
Referenced by clobbersPhysReg(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::hash_value(), isIdenticalTo(), and trackRegDefsUses().
|
inline |
Definition at line 272 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterDefReadUndef(), canFoldCopy(), llvm::SIInstrInfo::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfo::commuteInstruction(), llvm::SystemZInstrInfo::convertToThreeAddress(), copyHint(), llvm::HexagonEvaluator::evaluate(), llvm::SIInstrInfo::FoldImmediate(), llvm::X86InstrInfo::foldMemoryOperandImpl(), foldPatchpoint(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), llvm::MachineInstr::getRegClassConstraintEffect(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::ARMBaseInstrInfo::getRegSequenceLikeInputs(), getSrcFromCopy(), llvm::hash_value(), INITIALIZE_PASS(), llvm::X86InstrInfo::isCoalescableExtInstr(), llvm::MachineInstr::isFullCopy(), isIdenticalTo(), llvm::MachineInstr::isIdentityCopy(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::X86InstrInfo::isStoreToStackSlot(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), llvm::PPCInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeLoadInstr(), print(), llvm::ARMAsmPrinter::printOperand(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), resultTests(), llvm::SIInstrInfo::splitSMRD(), substPhysReg(), substVirtReg(), and updateOperand().
|
inline |
Definition at line 466 of file MachineOperand.h.
References isSymbol().
Referenced by llvm::ARMFrameLowering::fixTCReturn(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::AArch64MCInstLower::GetExternalSymbolSymbol(), llvm::AArch64InstrInfo::GetInstSizeInBytes(), llvm::MSP430InstrInfo::GetInstSizeInBytes(), llvm::MipsInstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), llvm::SystemZInstrInfo::getInstSizeInBytes(), llvm::PPCInstrInfo::GetInstSizeInBytes(), GetSymbolFromOperand(), llvm::hash_value(), llvm::HexagonLowerToMC(), isIdenticalTo(), llvm::ARMAsmPrinter::lowerOperand(), LowerSymbolOperand(), and llvm::AArch64MCInstLower::lowerSymbolOperandELF().
|
inline |
Definition at line 191 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstrBuilder::addDisp(), llvm::X86InstrInfo::canFoldMemoryOperand(), computeOthers(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::ARMFrameLowering::fixTCReturn(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), GetSymbolFromOperand(), GetSymbolRef(), llvm::hash_value(), isCandidateLoad(), llvm::HexagonInstrInfo::isConstExtended(), isIdenticalTo(), llvm::SystemZMCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), LowerSymbolOperand(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandDarwin(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), printSymbolOperand(), registerADRCandidate(), and switch().
|
inline |
getType - Returns the MachineOperandType for this operand.
Definition at line 189 of file MachineOperand.h.
Referenced by llvm::MachineInstrBuilder::addDisp(), canDefBePartOfLOH(), compareMachineOp(), llvm::SystemZMCInstLower::getExpr(), llvm::hash_value(), HashMachineInstr(), llvm::HexagonLowerToMC(), IsAnAddressOperand(), isIdenticalTo(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::XCoreMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), LowerSymbolOperand(), print(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintAsmOperand(), printLeaMemReference(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), printOperand(), printPCRelImm(), and printSymbolOperand().
|
inline |
isBlockAddress - Tests if this is a MO_BlockAddress operand.
Definition at line 252 of file MachineOperand.h.
References MO_BlockAddress.
Referenced by llvm::HexagonEvaluator::evaluate(), getBlockAddress(), getOffset(), llvm::HexagonInstrInfo::isConstExtended(), and setOffset().
|
inline |
Definition at line 260 of file MachineOperand.h.
References MO_CFIIndex.
Referenced by getCFIIndex().
|
inline |
isCImm - Test if this is a MO_CImmediate operand.
Definition at line 234 of file MachineOperand.h.
References MO_CImmediate.
Referenced by emitDebugValueComment(), getCImm(), and getDebugLocValue().
|
inline |
isCPI - Tests if this is a MO_ConstantPoolIndex operand.
Definition at line 242 of file MachineOperand.h.
References MO_ConstantPoolIndex.
Referenced by canFoldIntoMOVCC(), llvm::HexagonEvaluator::evaluate(), getConstantFromPool(), getIndex(), getOffset(), llvm::HexagonInstrInfo::isConstExtended(), llvm::isLeaMem(), setIndex(), and setOffset().
|
inline |
Definition at line 292 of file MachineOperand.h.
References isReg().
Referenced by llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterDead(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::MachineInstr::allDefsAreDead(), llvm::MachineOperandIteratorBase::analyzePhysReg(), canFoldIntoMOVCC(), ChangeToRegister(), llvm::PPCInstrInfo::commuteInstruction(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), CreateReg(), llvm::finalizeBundle(), findHoistingInsertPosAndDeps(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::ARMBaseInstrInfo::FoldImmediate(), hasLiveCondCodeDef(), llvm::IsCPSRDead< MachineInstr >(), llvm::MachineInstr::isIdenticalTo(), llvm::X86InstrInfo::isSafeToClobberEFLAGS(), print(), tryOrrMovk(), trySequenceOfOnes(), tryToreplicateChunks(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRDef(), updatePhysDepsDownwards(), and UpdatePredRedefs().
|
inline |
Definition at line 322 of file MachineOperand.h.
References isReg().
Referenced by ChangeToRegister(), CreateReg(), hasYmmReg(), setIsDef(), and setIsKill().
|
inline |
Definition at line 282 of file MachineOperand.h.
References isReg().
Referenced by addLiveInRegs(), llvm::ScheduleDAGInstrs::addPhysRegDataDeps(), llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterDefReadUndef(), llvm::MachineRegisterInfo::addRegOperandToUseList(), llvm::ScheduleDAGInstrs::addSchedBarrierDeps(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::MachineOperandIteratorBase::analyzePhysReg(), llvm::MachineOperandIteratorBase::analyzeVirtReg(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::ScheduleDAGInstrs::buildSchedGraph(), canFoldIntoMOVCC(), ChangeToRegister(), llvm::MachineInstr::clearRegisterDeads(), clobbersCTR(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), CreateReg(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::HexagonInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), emitKill(), llvm::HexagonEvaluator::evaluate(), llvm::finalizeBundle(), findDeadCallerSavedReg(), findDefIdx(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::ScheduleDAGInstrs::fixupKills(), for(), llvm::RegScavenger::forward(), llvm::MachineInstrExpressionTrait::getHashValue(), llvm::PPCInstrInfo::getInstrLatency(), GetPostIncrementOperand(), llvm::hash_value(), hasLiveCondCodeDef(), isIdenticalTo(), llvm::MachineInstr::isIdenticalTo(), llvm::MachineInstr::isRegTiedToUseOperand(), IsSafeAndProfitableToMove(), llvm::X86InstrInfo::isSafeToClobberEFLAGS(), llvm::Mips16InstrInfo::loadImmediate(), MaySpeculate(), MIIsInTerminatorSequence(), llvm::AArch64InstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeLoadInstr(), llvm::PatchPointOpers::PatchPointOpers(), llvm::HexagonInstrInfo::PredicateInstruction(), print(), llvm::MachineInstr::print(), printImplicitRegisterFlag(), llvm::LiveVariables::removeVirtualRegisterDead(), resultTests(), llvm::MachineInstr::setPhysRegsDeadExcept(), llvm::MachineInstr::tieOperands(), trackRegDefsUses(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRUse(), updatePhysDepsDownwards(), and updatePhysDepsUpwards().
|
inline |
Definition at line 312 of file MachineOperand.h.
References isReg().
Referenced by createDeadDef(), CreateReg(), dumpMachineInstrRangeWithSlotIndex(), and print().
|
inline |
isFI - Tests if this is a MO_FrameIndex operand.
Definition at line 240 of file MachineOperand.h.
References MO_FrameIndex.
Referenced by canFoldIntoMOVCC(), llvm::BPFRegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::TargetLoweringBase::emitPatchPoint(), getFrameIndexOperandNum(), getIndex(), isCSRestore(), llvm::PPCRegisterInfo::isFrameOffsetLegal(), llvm::ARMBaseRegisterInfo::isFrameOffsetLegal(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::isLeaMem(), llvm::MipsSEInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::isMem(), llvm::SIInstrInfo::isOperandLegal(), isSimpleMove(), llvm::SystemZInstrInfo::isStackSlotCopy(), llvm::MipsSEInstrInfo::isStoreToStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), MatchingStackOffset(), llvm::AArch64RegisterInfo::needsFrameBaseReg(), llvm::ARMBaseRegisterInfo::needsFrameBaseReg(), llvm::ThumbRegisterInfo::resolveFrameIndex(), llvm::AArch64RegisterInfo::resolveFrameIndex(), llvm::PPCRegisterInfo::resolveFrameIndex(), llvm::ARMBaseRegisterInfo::resolveFrameIndex(), llvm::SelectionDAGISel::runOnMachineFunction(), setIndex(), UpdateOperandRegClass(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
isFPImm - Tests if this is a MO_FPImmediate operand.
Definition at line 236 of file MachineOperand.h.
References MO_FPImmediate.
Referenced by llvm::DwarfUnit::addConstantFPValue(), emitDebugValueComment(), llvm::SIInstrInfo::expandPostRAPseudo(), getDebugLocValue(), getFPImm(), setFPImm(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
isGlobal - Tests if this is a MO_GlobalAddress operand.
Definition at line 248 of file MachineOperand.h.
References MO_GlobalAddress.
Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::EHStreamer::callToNoUnwindFunction(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::HexagonEvaluator::evaluate(), llvm::ARMFrameLowering::fixTCReturn(), getGlobal(), getOffset(), GetSymbolFromOperand(), llvm::HexagonInstrInfo::isConstExtended(), llvm::isLeaMem(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), and setOffset().
| bool MachineOperand::isIdenticalTo | ( | const MachineOperand & | Other | ) | const |
isIdenticalTo - Return true if this operand is identical to the specified operand.
Note: This method ignores isKill and isDead properties.
Note that this should stay in sync with the hash_value overload below.
Definition at line 211 of file MachineInstr.cpp.
References getBlockAddress(), getCFIIndex(), getCImm(), getFPImm(), getGlobal(), getImm(), getIndex(), getMBB(), getMCSymbol(), getMetadata(), getOffset(), getReg(), getRegMask(), 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_JumpTableIndex, MO_MachineBasicBlock, MO_MCSymbol, MO_Metadata, MO_Register, MO_RegisterLiveOut, MO_RegisterMask, and MO_TargetIndex.
Referenced by llvm::MachineInstr::isIdenticalTo(), and llvm::ARMBaseInstrInfo::produceSameValue().
|
inline |
isImm - Tests if this is a MO_Immediate operand.
Definition at line 232 of file MachineOperand.h.
References MO_Immediate.
Referenced by llvm::DwarfUnit::addConstantValue(), llvm::SystemZInstrInfo::analyzeCompare(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), canFoldIntoCSel(), llvm::SIInstrInfo::commuteInstruction(), llvm::SIInstrInfo::convertToThreeAddress(), llvm::X86RegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::PPCFrameLowering::emitEpilogue(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::HexagonEvaluator::evaluate(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::MachineInstr::findInlineAsmFlagIdx(), llvm::MachineInstr::findTiedOperandIdx(), llvm::SIInstrInfo::FoldImmediate(), llvm::PPCInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), foldImmediates(), llvm::AArch64InstrInfo::genAlternativeCodeSequence(), getDebugLocValue(), llvm::TargetInstrInfo::getExtractSubregInputs(), llvm::R600InstrInfo::getFlagOp(), getImm(), llvm::TargetInstrInfo::getInsertSubregInputs(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfs(), llvm::X86InstrInfo::getMemOpBaseRegImmOfs(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfsWidth(), llvm::TargetInstrInfo::getRegSequenceInputs(), llvm::AArch64InstrInfo::hasExtendedReg(), llvm::AArch64InstrInfo::hasShiftedReg(), llvm::HexagonInstrInfo::immediateExtend(), isCompareZero(), llvm::HexagonInstrInfo::isConstExtended(), llvm::AArch64InstrInfo::isGPRZero(), isGreaterThanNBitTFRI(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::MachineInstr::isIndirectDebugValue(), llvm::SIInstrInfo::isInlineConstant(), llvm::isLeaMem(), llvm::SIInstrInfo::isLiteralConstant(), llvm::MipsSEInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::HexagonInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::AArch64InstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), isMatchingUpdateInsn(), llvm::SIInstrInfo::isOperandLegal(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::isScale(), llvm::MipsSEInstrInfo::isStoreToStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::HexagonInstrInfo::isStoreToStackSlot(), llvm::AArch64InstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::SIInstrInfo::isTriviallyReMaterializable(), isZeroImm(), llvm::MipsInstrInfo::isZeroImm(), llvm::SIInstrInfo::moveSMRDToVALU(), llvm::SIInstrInfo::moveToVALU(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::MachineInstr::print(), llvm::HexagonAsmPrinter::PrintAsmMemoryOperand(), llvm::MipsAsmPrinter::PrintAsmMemoryOperand(), llvm::SystemZAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), printIntelMemReference(), llvm::MipsAsmPrinter::printUnsignedImm(), llvm::MipsAsmPrinter::printUnsignedImm8(), setImm(), llvm::R600InstrInfo::setImmOperand(), switch(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 287 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterKilled(), llvm::AggressiveAntiDepBreaker::BreakAntiDependencies(), llvm::TargetSchedModel::computeOperandLatency(), llvm::MachineInstr::copyImplicitOps(), EmitPCMPSTRI(), EmitPCMPSTRM(), llvm::PPCInstrInfo::getInstrLatency(), llvm::MachineInstr::getNumExplicitOperands(), llvm::ARMBaseInstrInfo::getOperandLatency(), llvm::HexagonLowerToMC(), INITIALIZE_PASS(), llvm::SystemZMCInstLower::lower(), llvm::MSP430MCInstLower::Lower(), llvm::BPFMCInstLower::Lower(), llvm::XCoreMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::AArch64MCInstLower::lowerOperand(), LowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::PatchPointOpers::PatchPointOpers(), llvm::HexagonInstrInfo::PredicateInstruction(), print(), llvm::MachineInstr::print(), printImplicitRegisterFlag(), llvm::X86InstrInfo::unfoldMemoryOperand(), llvm::SIInstrInfo::usesConstantBus(), and VerifyLowRegs().
|
inline |
Definition at line 307 of file MachineOperand.h.
References isReg().
Referenced by llvm::TargetInstrInfo::commuteInstruction(), CreateReg(), INITIALIZE_PASS(), print(), and readsReg().
|
inline |
isJTI - Tests if this is a MO_JumpTableIndex operand.
Definition at line 246 of file MachineOperand.h.
References MO_JumpTableIndex.
Referenced by canFoldIntoMOVCC(), llvm::HexagonEvaluator::evaluate(), getIndex(), GetSymbolRef(), llvm::HexagonInstrInfo::isConstExtended(), llvm::isLeaMem(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::BPFMCInstLower::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandDarwin(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::BranchFolder::OptimizeFunction(), and setIndex().
|
inline |
Definition at line 297 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstr::addRegisterKilled(), llvm::MachineOperandIteratorBase::analyzePhysReg(), ChangeToRegister(), llvm::X86InstrInfo::classifyLEAReg(), llvm::MachineInstr::clearRegisterKills(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfo::commuteInstruction(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::SystemZInstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::convertToThreeAddress(), CreateReg(), llvm::AArch64TargetLowering::EmitF128CSEL(), llvm::finalizeBundle(), llvm::MachineInstr::findRegisterUseOperandIdx(), finishConvertToThreeAddress(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::SIInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::TargetInstrInfo::foldMemoryOperand(), genMadd(), genMaddR(), insertDivByZeroTrap(), InsertFPConstInst(), InsertFPImmInst(), InsertSPConstInst(), InsertSPImmInst(), llvm::MachineInstr::isIdenticalTo(), isOperandKill(), llvm::X86InstrInfo::isSafeToClobberEFLAGS(), llvm::PPCRegisterInfo::lowerCRBitSpilling(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::PPCRegisterInfo::lowerVRSAVESpilling(), print(), reassociateOps(), removeKillInfo(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::SIInstrInfo::splitSMRD(), llvm::ScheduleDAGInstrs::toggleKillFlag(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRUse(), and updatePhysDepsDownwards().
|
inline |
isMBB - Tests if this is a MO_MachineBasicBlock operand.
Definition at line 238 of file MachineOperand.h.
References MO_MachineBasicBlock.
Referenced by llvm::HexagonInstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::SystemZInstrInfo::AnalyzeBranch(), getMBB(), getTargetMBB(), llvm::HexagonInstrInfo::immediateExtend(), llvm::HexagonInstrInfo::isConstExtended(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::SystemZInstrInfo::RemoveBranch(), and setMBB().
|
inline |
Definition at line 259 of file MachineOperand.h.
References MO_MCSymbol.
Referenced by getMCSymbol(), getOffset(), and setOffset().
|
inline |
isMetadata - Tests if this is a MO_Metadata operand.
Definition at line 258 of file MachineOperand.h.
References MO_Metadata.
Referenced by llvm::MachineInstr::emitError(), EmitGCCInlineAsmStr(), EmitMSInlineAsmStr(), getMetadata(), and llvm::MachineInstr::print().
|
inline |
isReg - Tests if this is a MO_Register operand.
Definition at line 230 of file MachineOperand.h.
References MO_Register.
Referenced by addLiveInRegs(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterDefReadUndef(), llvm::MachineInstr::addRegisterKilled(), llvm::ScheduleDAGInstrs::addSchedBarrierDeps(), addTargetFlag(), llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::MachineInstr::allDefsAreDead(), llvm::SystemZInstrInfo::analyzeCompare(), llvm::MachineOperandIteratorBase::analyzePhysReg(), llvm::MachineOperandIteratorBase::analyzeVirtReg(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::ScheduleDAGInstrs::buildSchedGraph(), canCombineWithMUL(), canFoldIntoMOVCC(), ChangeToES(), ChangeToFPImmediate(), ChangeToImmediate(), ChangeToMCSymbol(), ChangeToRegister(), llvm::MachineInstr::clearKillInfo(), llvm::MachineInstr::clearRegisterDeads(), llvm::MachineInstr::clearRegisterKills(), clobbersCTR(), collectDebugValues(), llvm::SIInstrInfo::commuteInstruction(), llvm::TargetInstrInfo::commuteInstruction(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::MachineInstr::copyImplicitOps(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::HexagonInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), earlyUseOperand(), emitDebugValueComment(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), emitKill(), EmitPCMPSTRI(), EmitPCMPSTRM(), eraseGPOpnd(), llvm::HexagonEvaluator::evaluate(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::finalizeBundle(), llvm::SIInstrInfo::findCommutedOpIndices(), llvm::TargetInstrInfo::findCommutedOpIndices(), findDeadCallerSavedReg(), findDefIdx(), findHoistingInsertPosAndDeps(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::MachineInstr::findTiedOperandIdx(), findUseIdx(), finishConvertToThreeAddress(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::SIInstrInfo::FoldImmediate(), llvm::PPCInstrInfo::FoldImmediate(), llvm::X86InstrInfo::foldMemoryOperandImpl(), for(), forceReg(), llvm::RegScavenger::forward(), FuseInst(), getCallTargetRegOpnd(), getDataDeps(), getDebugLocValue(), getFPReg(), llvm::MachineInstrExpressionTrait::getHashValue(), llvm::PPCInstrInfo::getInstrLatency(), llvm::AArch64InstrInfo::getMachineCombinerPatterns(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfs(), llvm::AArch64InstrInfo::getMemOpBaseRegImmOfsWidth(), llvm::MachineInstr::getNumExplicitOperands(), GetPostIncrementOperand(), getPredicatedRegister(), getReg(), llvm::MachineInstr::getRegClassConstraint(), llvm::MachineInstr::getRegClassConstraintEffect(), getShuffleComment(), getSubReg(), getTargetFlags(), llvm::SIInstrInfo::getVALUOp(), HandleVRSaveUpdate(), hasLiveCondCodeDef(), hasVGPROperands(), hasVirtualRegDefsInBasicBlock(), hasYmmReg(), INITIALIZE_PASS(), llvm::IsCPSRDead< MachineInstr >(), isDead(), isDebug(), isDef(), isDescribedByReg(), isEarlyClobber(), llvm::AArch64InstrInfo::isFPRCopy(), llvm::MachineInstr::isIdenticalTo(), isImplicit(), llvm::MachineInstr::isIndirectDebugValue(), isInternalRead(), isKill(), llvm::isLeaMem(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::isMem(), isMemoryOp(), llvm::NVPTXInstrInfo::isMoveInstr(), llvm::SIInstrInfo::isOperandLegal(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), IsSafeAndProfitableToMove(), llvm::X86InstrInfo::isSafeToClobberEFLAGS(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), isTied(), isTwoAddrUse(), isUndef(), isUse(), isVGPR(), llvm::X86InstrInfo::isX86_64ExtendedReg(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOpWithMove(), llvm::Mips16InstrInfo::loadImmediate(), llvm::SystemZMCInstLower::lower(), MaySpeculate(), MIIsInTerminatorSequence(), llvm::MachineRegisterInfo::moveOperands(), llvm::SIInstrInfo::moveSMRDToVALU(), llvm::SIInstrInfo::moveToVALU(), llvm::AArch64InstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeCompareInstr(), llvm::X86InstrInfo::optimizeLoadInstr(), llvm::HexagonInstrInfo::PredicateInstruction(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::MachineInstr::print(), llvm::HexagonAsmPrinter::PrintAsmMemoryOperand(), llvm::ARMAsmPrinter::PrintAsmMemoryOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), removeKillInfo(), llvm::MachineInstr::RemoveOperand(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::PPCFrameLowering::replaceFPWithRealFP(), resultTests(), llvm::ThumbRegisterInfo::saveScavengerRegister(), llvm::RegScavenger::scavengeRegister(), llvm::R600SchedStrategy::schedNode(), llvm::FastISel::selectIntrinsicCall(), setImplicit(), setIsDead(), setIsDebug(), setIsDef(), setIsEarlyClobber(), setIsInternalRead(), setIsKill(), setIsUndef(), llvm::MachineInstr::setPhysRegsDeadExcept(), setSubReg(), setTargetFlags(), llvm::MachineInstr::substituteRegister(), switch(), TrackDefUses(), trackRegDefsUses(), transferImpOps(), llvm::X86InstrInfo::unfoldMemoryOperand(), llvm::MachineInstr::untieRegOperand(), UpdateCPSRDef(), UpdateCPSRUse(), llvm::AntiDepBreaker::UpdateDbgValue(), updateOperand(), UpdateOperandRegClass(), updatePhysDepsDownwards(), updatePhysDepsUpwards(), UpdatePredRedefs(), UseReg(), llvm::SIInstrInfo::usesConstantBus(), llvm::SIInstrInfo::verifyInstruction(), VerifyLowRegs(), and llvm::MachineRegisterInfo::verifyUseList().
|
inline |
isRegLiveOut - Tests if this is a MO_RegisterLiveOut operand.
Definition at line 256 of file MachineOperand.h.
References MO_RegisterLiveOut.
Referenced by getRegLiveOut().
|
inline |
isRegMask - Tests if this is a MO_RegisterMask operand.
Definition at line 254 of file MachineOperand.h.
References MO_RegisterMask.
Referenced by llvm::MachineOperandIteratorBase::analyzePhysReg(), callClobbersAnyYmmReg(), clobbersCTR(), llvm::MachineInstr::copyImplicitOps(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::PPCInstrInfo::DefinesPredicate(), findHoistingInsertPosAndDeps(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::ScheduleDAGInstrs::fixupKills(), getRegMask(), hasYmmReg(), llvm::X86InstrInfo::isSafeToClobberEFLAGS(), llvm::AArch64InstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::ThumbRegisterInfo::saveScavengerRegister(), llvm::MachineInstr::setPhysRegsDeadExcept(), trackRegDefsUses(), and UpdatePredRedefs().
|
inline |
isSymbol - Tests if this is a MO_ExternalSymbol operand.
Definition at line 250 of file MachineOperand.h.
References MO_ExternalSymbol.
Referenced by llvm::HexagonEvaluator::evaluate(), llvm::ARMFrameLowering::fixTCReturn(), getOffset(), GetSymbolFromOperand(), getSymbolName(), llvm::HexagonInstrInfo::isConstExtended(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), and setOffset().
|
inline |
isTargetIndex - Tests if this is a MO_TargetIndex operand.
Definition at line 244 of file MachineOperand.h.
References MO_TargetIndex.
Referenced by getIndex(), getOffset(), llvm::SIInstrInfo::isImmOperandLegal(), llvm::SIInstrInfo::isOperandLegal(), setIndex(), and setOffset().
|
inline |
Definition at line 317 of file MachineOperand.h.
References isReg().
Referenced by canFoldIntoMOVCC(), ChangeToES(), ChangeToFPImmediate(), ChangeToImmediate(), ChangeToMCSymbol(), llvm::MachineInstr::findTiedOperandIdx(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), print(), llvm::MachineInstr::RemoveOperand(), llvm::MachineInstr::tieOperands(), and llvm::MachineInstr::untieRegOperand().
|
inline |
Definition at line 302 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstr::addRegisterKilled(), ChangeToRegister(), llvm::X86InstrInfo::classifyLEAReg(), llvm::TargetInstrInfo::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), CreateReg(), llvm::finalizeBundle(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::RegScavenger::forward(), llvm::X86InstrInfo::getUndefRegClearance(), llvm::HexagonInstrInfo::InsertBranch(), llvm::IsCPSRDead< MachineInstr >(), isLocalCopy(), isMemoryOp(), print(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::ThumbRegisterInfo::saveScavengerRegister(), llvm::RegScavenger::scavengeRegister(), llvm::MachineBasicBlock::SplitCriticalEdge(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRDef(), and UpdateCPSRUse().
|
inline |
Definition at line 277 of file MachineOperand.h.
References isReg().
Referenced by llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterKilled(), llvm::MachineInstr::allDefsAreDead(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::MachineInstr::clearKillInfo(), llvm::MachineInstr::clearRegisterKills(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), findHoistingInsertPosAndDeps(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::MachineInstr::findTiedOperandIdx(), llvm::ScheduleDAGInstrs::fixupKills(), llvm::RegScavenger::forward(), getCallTargetRegOpnd(), GetPostIncrementOperand(), getPredicatedRegister(), llvm::MachineInstr::getRegClassConstraint(), INITIALIZE_PASS(), llvm::IsCPSRDead< MachineInstr >(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::X86InstrInfo::isSafeToClobberEFLAGS(), isTwoAddrUse(), print(), readsReg(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::RegScavenger::scavengeRegister(), llvm::MachineInstr::tieOperands(), TrackDefUses(), trackRegDefsUses(), transferImpOps(), UpdateCPSRDef(), and llvm::SIInstrInfo::usesConstantBus().
| void MachineOperand::print | ( | raw_ostream & | os, |
| const TargetRegisterInfo * | TRI = nullptr |
||
| ) | const |
Definition at line 300 of file MachineInstr.cpp.
Referenced by llvm::operator<<(), and llvm::MachineInstr::print().
| void MachineOperand::print | ( | raw_ostream & | os, |
| ModuleSlotTracker & | MST, | ||
| const TargetRegisterInfo * | TRI = nullptr |
||
| ) | const |
Definition at line 306 of file MachineInstr.cpp.
References getReg(), getSubReg(), getType(), isDead(), isDef(), isEarlyClobber(), isImplicit(), isInternalRead(), isKill(), isTied(), isUndef(), isUse(), and MO_Register.
|
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 334 of file MachineOperand.h.
References getSubReg(), isInternalRead(), isReg(), isUndef(), and isUse().
Referenced by llvm::ScheduleDAGInstrs::addSchedBarrierDeps(), llvm::MachineOperandIteratorBase::analyzePhysReg(), llvm::MachineOperandIteratorBase::analyzeVirtReg(), llvm::ScheduleDAGInstrs::buildSchedGraph(), llvm::ConnectedVNInfoEqClasses::Distribute(), findUseIdx(), getDataDeps(), llvm::ARMBaseInstrInfo::getPartialRegUpdateClearance(), llvm::X86InstrInfo::getPartialRegUpdateClearance(), updatePhysDepsDownwards(), and updatePhysDepsUpwards().
|
inline |
Definition at line 513 of file MachineOperand.h.
|
inline |
Definition at line 508 of file MachineOperand.h.
References isImm().
Referenced by llvm::R600InstrInfo::addFlag(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), llvm::R600InstrInfo::clearFlag(), llvm::SIInstrInfo::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::commuteInstruction(), CreateImm(), llvm::ARMBaseInstrInfo::duplicate(), llvm::R600InstrInfo::InsertBranch(), invertBccCondition(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::R600InstrInfo::PredicateInstruction(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::R600InstrInfo::ReverseBranchCondition(), and llvm::R600InstrInfo::setImmOperand().
Definition at line 370 of file MachineOperand.h.
Referenced by llvm::X86InstrInfo::classifyLEAReg(), and llvm::ARMBaseInstrInfo::optimizeSelect().
|
inline |
Definition at line 526 of file MachineOperand.h.
References isCPI(), isFI(), isJTI(), and isTargetIndex().
Referenced by CreateCPI(), CreateFI(), CreateJTI(), CreateTargetIndex(), and llvm::ARMBaseInstrInfo::duplicate().
Definition at line 381 of file MachineOperand.h.
Referenced by llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::clearRegisterDeads(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::MSP430FrameLowering::eliminateCallFramePseudoInstr(), llvm::MSP430FrameLowering::emitEpilogue(), emitIncrement(), llvm::MSP430FrameLowering::emitPrologue(), llvm::X86FrameLowering::emitSPUpdate(), llvm::X86InstrInfo::optimizeCompareInstr(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::MachineInstr::setPhysRegsDeadExcept(), and UpdatePredRedefs().
Definition at line 401 of file MachineOperand.h.
Referenced by llvm::FastISel::selectIntrinsicCall().
Change a def to a use, or a use to a def.
Definition at line 92 of file MachineInstr.cpp.
References llvm::MachineRegisterInfo::addRegOperandToUseList(), llvm::MachineBasicBlock::getParent(), getParent(), isDebug(), isReg(), MBB, llvm::AArch64CC::MI, llvm::MachineRegisterInfo::removeRegOperandFromUseList(), and Val.
Referenced by llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), and setIsUse().
Definition at line 396 of file MachineOperand.h.
Definition at line 391 of file MachineOperand.h.
Referenced by llvm::TargetInstrInfo::commuteInstruction(), llvm::finalizeBundle(), and INITIALIZE_PASS().
Definition at line 375 of file MachineOperand.h.
References isDebug(), isReg(), and Val.
Referenced by llvm::ScheduleDAGInstrs::addPhysRegDeps(), llvm::MachineInstr::addRegisterKilled(), llvm::MachineInstr::clearKillInfo(), llvm::MachineInstr::clearRegisterKills(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfo::commuteInstruction(), llvm::R600InstrInfo::copyPhysReg(), earlyUseOperand(), llvm::SIInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), insertDivByZeroTrap(), removeKillInfo(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::ScheduleDAGInstrs::toggleKillFlag(), and llvm::X86InstrInfo::unfoldMemoryOperand().
Definition at line 386 of file MachineOperand.h.
Referenced by llvm::MachineInstr::addRegisterDefReadUndef(), and llvm::TargetInstrInfo::commuteInstruction().
Definition at line 366 of file MachineOperand.h.
References setIsDef(), and Val.
|
inline |
Definition at line 532 of file MachineOperand.h.
Referenced by CreateMBB(), llvm::HexagonInstrInfo::InsertBranch(), llvm::TargetInstrInfo::PredicateInstruction(), and llvm::MachineBasicBlock::transferSuccessorsAndUpdatePHIs().
|
inline |
Definition at line 518 of file MachineOperand.h.
References isBlockAddress(), isCPI(), isGlobal(), isMCSymbol(), isSymbol(), and isTargetIndex().
Referenced by ChangeToES(), CreateBA(), CreateCPI(), CreateES(), CreateGA(), CreateMCSymbol(), CreateTargetIndex(), and llvm::X86RegisterInfo::eliminateFrameIndex().
| void MachineOperand::setReg | ( | unsigned | Reg | ) |
Change the register this operand corresponds to.
Definition at line 50 of file MachineInstr.cpp.
References llvm::MachineRegisterInfo::addRegOperandToUseList(), llvm::MachineBasicBlock::getParent(), getParent(), getReg(), MBB, llvm::AArch64CC::MI, Reg, and llvm::MachineRegisterInfo::removeRegOperandFromUseList().
Referenced by llvm::ARMTargetLowering::AdjustInstrPostInstrSelection(), llvm::AggressiveAntiDepBreaker::BreakAntiDependencies(), llvm::R600InstrInfo::buildSlotOfVectorInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfo::commuteInstruction(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::SIInstrInfo::FoldImmediate(), llvm::PPCInstrInfo::FoldImmediate(), llvm::ARMBaseInstrInfo::FoldImmediate(), llvm::X86InstrInfo::foldMemoryOperandImpl(), INITIALIZE_PASS(), llvm::SIInstrInfo::legalizeOperands(), llvm::MachineRegisterInfo::markUsesInDebugValueAsUndef(), llvm::SIInstrInfo::moveSMRDToVALU(), llvm::ARMBaseInstrInfo::optimizeCompareInstr(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::R600InstrInfo::PredicateInstruction(), llvm::TargetInstrInfo::PredicateInstruction(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::MachineRegisterInfo::replaceRegWith(), llvm::R600InstrInfo::ReverseBranchCondition(), llvm::MachineSSAUpdater::RewriteUse(), substPhysReg(), substVirtReg(), and llvm::AntiDepBreaker::UpdateDbgValue().
|
inline |
Definition at line 347 of file MachineOperand.h.
References isReg().
Referenced by llvm::SIInstrInfo::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfo::commuteInstruction(), CreateReg(), llvm::SIInstrInfo::FoldImmediate(), llvm::X86InstrInfo::foldMemoryOperandImpl(), insertDivByZeroTrap(), substPhysReg(), and substVirtReg().
|
inline |
Definition at line 194 of file MachineOperand.h.
Referenced by ChangeToES(), CreateBA(), CreateCPI(), CreateES(), CreateGA(), CreateJTI(), CreateMBB(), CreateMCSymbol(), and CreateTargetIndex().
| void MachineOperand::substPhysReg | ( | unsigned | 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 80 of file MachineInstr.cpp.
References getSubReg(), llvm::MCRegisterInfo::getSubReg(), llvm::TargetRegisterInfo::isPhysicalRegister(), setReg(), and setSubReg().
Referenced by llvm::MachineRegisterInfo::replaceRegWith(), and llvm::MachineInstr::substituteRegister().
| void MachineOperand::substVirtReg | ( | unsigned | 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 70 of file MachineInstr.cpp.
References llvm::TargetRegisterInfo::composeSubRegIndices(), getSubReg(), llvm::TargetRegisterInfo::isVirtualRegister(), setReg(), and setSubReg().
Referenced by llvm::MachineInstr::substituteRegister(), and updateOperand().
|
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.
Referenced by llvm::MachineInstrExpressionTrait::getHashValue().
|
friend |
Definition at line 726 of file MachineOperand.h.
|
friend |
Definition at line 727 of file MachineOperand.h.
| const BlockAddress* llvm::MachineOperand::BA |
Definition at line 177 of file MachineOperand.h.
Referenced by CreateBA().
| unsigned llvm::MachineOperand::CFIIndex |
Definition at line 162 of file MachineOperand.h.
Referenced by CreateCFIIndex().
| const ConstantFP* llvm::MachineOperand::CFP |
Definition at line 156 of file MachineOperand.h.
Referenced by CreateFPImm(), and setFPImm().
| const ConstantInt* llvm::MachineOperand::CI |
Definition at line 157 of file MachineOperand.h.
Referenced by CreateCImm(), and llvm::MachineInstr::emitError().
| const GlobalValue* llvm::MachineOperand::GV |
Definition at line 176 of file MachineOperand.h.
Referenced by CreateGA().
| int64_t llvm::MachineOperand::ImmVal |
Definition at line 158 of file MachineOperand.h.
Referenced by ChangeToImmediate().
| int llvm::MachineOperand::Index |
Definition at line 174 of file MachineOperand.h.
| MachineBasicBlock* llvm::MachineOperand::MBB |
Definition at line 155 of file MachineOperand.h.
Referenced by ChangeToRegister(), llvm::MachineInstr::emitError(), llvm::MachineInstr::eraseFromParentAndMarkDBGValuesForRemoval(), llvm::MachineInstr::print(), setIsDef(), setMBB(), and setReg().
Definition at line 160 of file MachineOperand.h.
Referenced by CreateMetadata().
| MachineOperand* llvm::MachineOperand::Next |
Definition at line 167 of file MachineOperand.h.
| struct { ... } llvm::MachineOperand::OffsetedInfo |
OffsetedInfo - This struct contains the offset and an object identifier.
this represent the object as with an optional offset from it.
Referenced by CreateBA(), CreateES(), and CreateGA().
| int llvm::MachineOperand::OffsetHi |
Definition at line 180 of file MachineOperand.h.
| unsigned llvm::MachineOperand::OffsetLo |
Definition at line 146 of file MachineOperand.h.
| MachineOperand* llvm::MachineOperand::Prev |
Definition at line 166 of file MachineOperand.h.
| struct { ... } llvm::MachineOperand::Reg |
Referenced by llvm::MachineRegisterInfo::addRegOperandToUseList(), ChangeToRegister(), llvm::MachineInstr::clearRegisterDeads(), CreateReg(), llvm::MachineInstr::eraseFromParentAndMarkDBGValuesForRemoval(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::ARMBaseInstrInfo::getExtractSubregLikeInputs(), llvm::ARMBaseInstrInfo::getInsertSubregLikeInputs(), llvm::MachineInstr::getRegClassConstraintEffectForVReg(), llvm::MachineInstr::isConstantValuePHI(), llvm::MachineRegisterInfo::moveOperands(), llvm::MachineInstr::readsWritesVirtualRegister(), llvm::MachineRegisterInfo::removeRegOperandFromUseList(), and setReg().
| const uint32_t* llvm::MachineOperand::RegMask |
Definition at line 159 of file MachineOperand.h.
Referenced by CreateRegLiveOut(), and CreateRegMask().
| unsigned llvm::MachineOperand::RegNo |
Definition at line 145 of file MachineOperand.h.
Referenced by CreateReg().
| MCSymbol* llvm::MachineOperand::Sym |
Definition at line 161 of file MachineOperand.h.
Referenced by ChangeToMCSymbol(), and CreateMCSymbol().
| const char* llvm::MachineOperand::SymbolName |
Definition at line 175 of file MachineOperand.h.
| union { ... } llvm::MachineOperand::Val |
Referenced by setImplicit(), setIsDead(), setIsDebug(), setIsDef(), setIsEarlyClobber(), setIsInternalRead(), setIsKill(), setIsUndef(), and setIsUse().
1.8.6