LLVM API Documentation
#include <MachineOperand.h>
Public Types | |
| enum | MachineOperandType { MO_Register, MO_Immediate, MO_FPImmediate, MO_MachineBasicBlock, MO_FrameIndex, MO_ConstantPoolIndex, MO_JumpTableIndex, MO_ExternalSymbol, MO_GlobalAddress, MO_Metadata } |
Public Member Functions | |
| MachineOperandType | getType () const |
| unsigned char | getTargetFlags () const |
| void | setTargetFlags (unsigned char F) |
| void | addTargetFlag (unsigned char F) |
| MachineInstr * | getParent () |
| const MachineInstr * | getParent () const |
| void | print (std::ostream &os, const TargetMachine *TM=0) const |
| void | print (raw_ostream &os, const TargetMachine *TM=0) const |
| bool | isReg () const |
| isReg - Tests if this is a MO_Register operand. | |
| bool | isImm () const |
| isImm - Tests if this is a MO_Immediate operand. | |
| bool | isFPImm () const |
| isFPImm - Tests if this is a MO_FPImmediate operand. | |
| bool | isMBB () const |
| isMBB - Tests if this is a MO_MachineBasicBlock operand. | |
| bool | isFI () const |
| isFI - Tests if this is a MO_FrameIndex operand. | |
| bool | isCPI () const |
| isCPI - Tests if this is a MO_ConstantPoolIndex operand. | |
| bool | isJTI () const |
| isJTI - Tests if this is a MO_JumpTableIndex operand. | |
| bool | isGlobal () const |
| isGlobal - Tests if this is a MO_GlobalAddress operand. | |
| bool | isSymbol () const |
| isSymbol - Tests if this is a MO_ExternalSymbol operand. | |
| bool | isMetadata () const |
| isMetadata - Tests if this is a MO_Metadata operand. | |
| unsigned | getReg () const |
| getReg - Returns the register number. | |
| unsigned | getSubReg () const |
| bool | isUse () const |
| bool | isDef () const |
| bool | isImplicit () const |
| bool | isDead () const |
| bool | isKill () const |
| bool | isUndef () const |
| bool | isEarlyClobber () const |
| MachineOperand * | getNextOperandForReg () const |
| void | setReg (unsigned Reg) |
| void | setSubReg (unsigned subReg) |
| void | setIsUse (bool Val=true) |
| void | setIsDef (bool Val=true) |
| void | setImplicit (bool Val=true) |
| void | setIsKill (bool Val=true) |
| void | setIsDead (bool Val=true) |
| void | setIsUndef (bool Val=true) |
| void | setIsEarlyClobber (bool Val=true) |
| int64_t | getImm () const |
| const ConstantFP * | getFPImm () const |
| MachineBasicBlock * | getMBB () const |
| int | getIndex () const |
| GlobalValue * | getGlobal () const |
| MDNode * | getMDNode () const |
| int64_t | getOffset () const |
| const char * | getSymbolName () const |
| void | setImm (int64_t immVal) |
| void | setOffset (int64_t Offset) |
| void | setIndex (int Idx) |
| void | setMBB (MachineBasicBlock *MBB) |
| bool | isIdenticalTo (const MachineOperand &Other) const |
| void | ChangeToImmediate (int64_t ImmVal) |
| void | ChangeToRegister (unsigned Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false) |
Static Public Member Functions | |
| static MachineOperand | CreateImm (int64_t Val) |
| static MachineOperand | CreateFPImm (const ConstantFP *CFP) |
| static MachineOperand | CreateReg (unsigned Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false, bool isEarlyClobber=false, unsigned SubReg=0) |
| static MachineOperand | CreateMBB (MachineBasicBlock *MBB, unsigned char TargetFlags=0) |
| static MachineOperand | CreateFI (unsigned Idx) |
| static MachineOperand | CreateCPI (unsigned Idx, int Offset, unsigned char TargetFlags=0) |
| static MachineOperand | CreateJTI (unsigned Idx, unsigned char TargetFlags=0) |
| static MachineOperand | CreateGA (GlobalValue *GV, int64_t Offset, unsigned char TargetFlags=0) |
| static MachineOperand | CreateMDNode (MDNode *N, int64_t Offset, unsigned char TargetFlags=0) |
| static MachineOperand | CreateES (const char *SymName, int64_t Offset=0, unsigned char TargetFlags=0) |
Friends | |
| class | MachineInstr |
| class | MachineRegisterInfo |
Definition at line 34 of file MachineOperand.h.
| MO_Register | Register operand. |
| MO_Immediate | Immediate operand. |
| MO_FPImmediate | Floating-point immediate operand. |
| MO_MachineBasicBlock | MachineBasicBlock reference. |
| MO_FrameIndex | Abstract Stack Frame Index. |
| MO_ConstantPoolIndex | Address of indexed Constant in Constant Pool. |
| MO_JumpTableIndex | Address of indexed Jump Table for switch. |
| MO_ExternalSymbol | Name of external global symbol. |
| MO_GlobalAddress | Address of a global value. |
| MO_Metadata | Metadata info. |
Definition at line 36 of file MachineOperand.h.
| MachineOperandType llvm::MachineOperand::getType | ( | ) | const [inline] |
getType - Returns the MachineOperandType for this operand.
Definition at line 124 of file MachineOperand.h.
Referenced by HashMachineInstr(), isIdenticalTo(), print(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::printOperand(), and llvm::X86ATTAsmPrinter::printSymbolOperand().
| unsigned char llvm::MachineOperand::getTargetFlags | ( | ) | const [inline] |
Definition at line 126 of file MachineOperand.h.
Referenced by CanRematLoadWithDispOperand(), gvNeedsNonLazyPtr(), isIdenticalTo(), llvm::X86InstrInfo::isInvariantLoad(), llvm::X86ATTAsmPrinter::LowerExternalSymbolOperand(), llvm::X86ATTAsmPrinter::LowerGlobalAddressOperand(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86IntelAsmPrinter::printOp(), and llvm::X86ATTAsmPrinter::printSymbolOperand().
| void llvm::MachineOperand::setTargetFlags | ( | unsigned char | F | ) | [inline] |
Definition at line 127 of file MachineOperand.h.
Referenced by CreateCPI(), CreateES(), CreateGA(), CreateJTI(), CreateMBB(), and CreateMDNode().
| void llvm::MachineOperand::addTargetFlag | ( | unsigned char | F | ) | [inline] |
Definition at line 128 of file MachineOperand.h.
| MachineInstr* llvm::MachineOperand::getParent | ( | ) | [inline] |
getParent - Return the instruction that this operand belongs to.
Definition at line 133 of file MachineOperand.h.
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), ChangeToImmediate(), ChangeToRegister(), llvm::LiveIntervals::getNumConflictsWithPhysReg(), print(), setReg(), and llvm::LiveIntervals::spillPhysRegAroundRegDefsUses().
| const MachineInstr* llvm::MachineOperand::getParent | ( | ) | const [inline] |
Definition at line 134 of file MachineOperand.h.
| void MachineOperand::print | ( | std::ostream & | OS, | |
| const TargetMachine * | TM = 0 | |||
| ) | const |
print - Print the specified machine operand.
Definition at line 186 of file MachineInstr.cpp.
Referenced by llvm::operator<<(), and llvm::MachineInstr::print().
| void MachineOperand::print | ( | raw_ostream & | os, | |
| const TargetMachine * | TM = 0 | |||
| ) | const |
Definition at line 191 of file MachineInstr.cpp.
References llvm::TargetRegisterInfo::get(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), getParent(), getReg(), llvm::TargetMachine::getRegisterInfo(), getSubReg(), llvm::MachineFunction::getTarget(), getType(), isDead(), isDef(), isEarlyClobber(), isImplicit(), isKill(), isUndef(), llvm::TargetRegisterInfo::isVirtualRegister(), MBB, MF, MI, MO_Register, and llvm::TargetRegisterDesc::Name.
| bool llvm::MachineOperand::isReg | ( | ) | const [inline] |
isReg - Tests if this is a MO_Register operand.
Definition at line 144 of file MachineOperand.h.
References MO_Register.
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::LiveIntervals::addIntervalsForSpillsFast(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterKilled(), AssignPhysToVirtReg(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), ChangeToImmediate(), ChangeToRegister(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::ScheduleDAGInstrs::ComputeOperandLatency(), llvm::LiveIntervals::conflictsWithPhysRegDef(), llvm::LiveIntervals::conflictsWithPhysRegRef(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::MachineInstr::copyKillDeadInfo(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::X86InstrInfo::determineREX(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::TargetInstrInfoImpl::findCommutedOpIndices(), FindFreeRegister(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), FoldsStackSlotModRef(), llvm::RegScavenger::forward(), FuseInst(), getFPReg(), getNextOperandForReg(), llvm::MachineInstr::getNumExplicitOperands(), getReg(), getSubReg(), hasLiveCondCodeDef(), InvalidateKills(), InvalidateRegDef(), isDead(), llvm::TargetInstrInfoImpl::isDeadInstruction(), isDef(), isEarlyClobber(), isImplicit(), isKill(), llvm::isLeaMem(), isLiveInButUnusedBefore(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::SystemZInstrInfo::isLoadFromStackSlot(), llvm::PIC16InstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::isMem(), isMemoryOp(), llvm::X86InstrInfo::isMoveInstr(), llvm::SystemZInstrInfo::isMoveInstr(), llvm::SPUInstrInfo::isMoveInstr(), llvm::SparcInstrInfo::isMoveInstr(), llvm::PPCInstrInfo::isMoveInstr(), llvm::MSP430InstrInfo::isMoveInstr(), llvm::MipsInstrInfo::isMoveInstr(), llvm::ARMBaseInstrInfo::isMoveInstr(), llvm::AlphaInstrInfo::isMoveInstr(), isReadModWriteImplicitDef(), isReadModWriteImplicitKill(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), IsSafeAndProfitableToMove(), isSafeToClobberEFLAGS(), isSafeToDelete(), llvm::MachineInstr::isSafeToReMat(), llvm::X86InstrInfo::isStoreToStackSlot(), llvm::SystemZInstrInfo::isStoreToStackSlot(), llvm::PIC16InstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), isTwoAddrUse(), isUndef(), isUse(), llvm::X86InstrInfo::isX86_64ExtendedReg(), LookForDuplicate(), llvm::TargetInstrInfoImpl::PredicateInstruction(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::printInlineAsm(), llvm::X86IntelAsmPrinter::printOperand(), llvm::LiveIntervals::processImplicitDefs(), ReMaterialize(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::RegScavenger::scavengeRegister(), setImplicit(), setIsDead(), setIsDef(), setIsEarlyClobber(), setIsKill(), setIsUndef(), setIsUse(), setSubReg(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRDef(), UpdateCPSRUse(), UpdateKills(), and VerifyLowRegs().
| bool llvm::MachineOperand::isImm | ( | ) | const [inline] |
isImm - Tests if this is a MO_Immediate operand.
Definition at line 146 of file MachineOperand.h.
References MO_Immediate.
Referenced by llvm::X86InstrInfo::convertToThreeAddress(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::emitEpilogue(), llvm::SystemZRegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), getImm(), GetInstSizeWithDesc(), llvm::isLeaMem(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::SystemZInstrInfo::isLoadFromStackSlot(), llvm::SPUInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::MipsInstrInfo::isLoadFromStackSlot(), llvm::BlackfinInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::SPUInstrInfo::isMoveInstr(), llvm::PPCInstrInfo::isMoveInstr(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), llvm::isScale(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::X86InstrInfo::isStoreToStackSlot(), llvm::SystemZInstrInfo::isStoreToStackSlot(), llvm::SPUInstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::MipsInstrInfo::isStoreToStackSlot(), llvm::BlackfinInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), isZeroImm(), llvm::TargetInstrInfoImpl::PredicateInstruction(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), llvm::X86ATTAsmPrinter::printLeaMemReference(), and setImm().
| bool llvm::MachineOperand::isFPImm | ( | ) | const [inline] |
isFPImm - Tests if this is a MO_FPImmediate operand.
Definition at line 148 of file MachineOperand.h.
References MO_FPImmediate.
Referenced by getFPImm().
| bool llvm::MachineOperand::isMBB | ( | ) | const [inline] |
isMBB - Tests if this is a MO_MachineBasicBlock operand.
Definition at line 150 of file MachineOperand.h.
References MO_MachineBasicBlock.
Referenced by llvm::PPCInstrInfo::AnalyzeBranch(), GetInstSizeWithDesc(), getMBB(), llvm::TargetInstrInfoImpl::PredicateInstruction(), setMBB(), and llvm::SplitCriticalMachineEdge().
| bool llvm::MachineOperand::isFI | ( | ) | const [inline] |
isFI - Tests if this is a MO_FrameIndex operand.
Definition at line 152 of file MachineOperand.h.
References MO_FrameIndex.
Referenced by ComputeReloadLoc(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::AlphaRegisterInfo::eliminateFrameIndex(), getIndex(), isCSRestore(), llvm::X86InstrInfo::isInvariantLoad(), llvm::SystemZInstrInfo::isInvariantLoad(), llvm::isLeaMem(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::SystemZInstrInfo::isLoadFromStackSlot(), llvm::SPUInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::MipsInstrInfo::isLoadFromStackSlot(), llvm::BlackfinInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::AlphaInstrInfo::isLoadFromStackSlot(), llvm::isMem(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::X86InstrInfo::isStoreToStackSlot(), llvm::SystemZInstrInfo::isStoreToStackSlot(), llvm::SPUInstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::MipsInstrInfo::isStoreToStackSlot(), llvm::BlackfinInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::AlphaInstrInfo::isStoreToStackSlot(), llvm::VirtRegMap::RemoveMachineInstrFromMaps(), and setIndex().
| bool llvm::MachineOperand::isCPI | ( | ) | const [inline] |
isCPI - Tests if this is a MO_ConstantPoolIndex operand.
Definition at line 154 of file MachineOperand.h.
References MO_ConstantPoolIndex.
Referenced by CanRematLoadWithDispOperand(), getDisplacementFieldSize(), getIndex(), GetInstSizeWithDesc(), getMemModRMByteSize(), getOffset(), llvm::XCoreInstrInfo::isInvariantLoad(), llvm::X86InstrInfo::isInvariantLoad(), llvm::SystemZInstrInfo::isInvariantLoad(), llvm::isLeaMem(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), llvm::X86IntelAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printLeaMemReference(), setIndex(), and setOffset().
| bool llvm::MachineOperand::isJTI | ( | ) | const [inline] |
isJTI - Tests if this is a MO_JumpTableIndex operand.
Definition at line 156 of file MachineOperand.h.
References MO_JumpTableIndex.
Referenced by getDisplacementFieldSize(), getIndex(), GetInstSizeWithDesc(), getMemModRMByteSize(), llvm::isLeaMem(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), llvm::X86IntelAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printLeaMemReference(), and setIndex().
| bool llvm::MachineOperand::isGlobal | ( | ) | const [inline] |
isGlobal - Tests if this is a MO_GlobalAddress operand.
Definition at line 158 of file MachineOperand.h.
References MO_GlobalAddress.
Referenced by CanRematLoadWithDispOperand(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), getDisplacementFieldSize(), getGlobal(), GetInstSizeWithDesc(), getMemModRMByteSize(), getOffset(), llvm::X86InstrInfo::isInvariantLoad(), llvm::SystemZInstrInfo::isInvariantLoad(), llvm::isLeaMem(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), llvm::X86IntelAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printLeaMemReference(), and setOffset().
| bool llvm::MachineOperand::isSymbol | ( | ) | const [inline] |
isSymbol - Tests if this is a MO_ExternalSymbol operand.
Definition at line 160 of file MachineOperand.h.
References MO_ExternalSymbol.
Referenced by GetInstSizeWithDesc(), getOffset(), getSymbolName(), llvm::PIC16InstrInfo::isLoadFromStackSlot(), llvm::PIC16InstrInfo::isStoreToStackSlot(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::printInlineAsm(), llvm::X86ATTAsmPrinter::printLeaMemReference(), and setOffset().
| bool llvm::MachineOperand::isMetadata | ( | ) | const [inline] |
isMetadata - Tests if this is a MO_Metadata operand.
Definition at line 162 of file MachineOperand.h.
References MO_Metadata.
Referenced by setOffset().
| unsigned llvm::MachineOperand::getReg | ( | ) | const [inline] |
getReg - Returns the register number.
Definition at line 169 of file MachineOperand.h.
References isReg().
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::LiveIntervals::addIntervalsForSpillsFast(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterKilled(), AssignPhysToVirtReg(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::Thumb1InstrInfo::canFoldMemoryOperand(), llvm::SPUInstrInfo::canFoldMemoryOperand(), llvm::PPCInstrInfo::canFoldMemoryOperand(), llvm::ARMBaseInstrInfo::canFoldMemoryOperand(), CanTurnIntoImplicitDef(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::ScheduleDAGInstrs::ComputeOperandLatency(), llvm::LiveIntervals::conflictsWithPhysRegDef(), llvm::LiveIntervals::conflictsWithPhysRegRef(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::X86InstrInfo::determineREX(), llvm::ARMBaseRegisterInfo::eliminateCallFramePseudoInstr(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::SystemZTargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::PIC16TargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::AlphaTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), encodeVFPRd(), encodeVFPRm(), encodeVFPRn(), FindFreeRegister(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), FoldsStackSlotModRef(), llvm::RegScavenger::forward(), getFPReg(), llvm::getInstrPredicate(), getMemModRMByteSize(), llvm::LiveIntervals::getVNInfoSourceReg(), HandleVRSaveUpdate(), HashMachineInstr(), hasLiveCondCodeDef(), InvalidateKills(), InvalidateRegDef(), isCopyToReg(), isCSRestore(), llvm::TargetInstrInfoImpl::isDeadInstruction(), isIdenticalTo(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::SystemZInstrInfo::isLoadFromStackSlot(), llvm::SPUInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::PIC16InstrInfo::isLoadFromStackSlot(), llvm::MipsInstrInfo::isLoadFromStackSlot(), llvm::BlackfinInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::AlphaInstrInfo::isLoadFromStackSlot(), isMatchingDecrement(), isMatchingIncrement(), isMemoryOp(), llvm::XCoreInstrInfo::isMoveInstr(), llvm::X86InstrInfo::isMoveInstr(), llvm::SystemZInstrInfo::isMoveInstr(), llvm::SPUInstrInfo::isMoveInstr(), llvm::SparcInstrInfo::isMoveInstr(), llvm::PPCInstrInfo::isMoveInstr(), llvm::PIC16InstrInfo::isMoveInstr(), llvm::MSP430InstrInfo::isMoveInstr(), llvm::MipsInstrInfo::isMoveInstr(), llvm::BlackfinInstrInfo::isMoveInstr(), llvm::ARMBaseInstrInfo::isMoveInstr(), llvm::AlphaInstrInfo::isMoveInstr(), isReadModWriteImplicitDef(), isReadModWriteImplicitKill(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), IsSafeAndProfitableToMove(), isSafeToClobberEFLAGS(), isSafeToDelete(), llvm::MachineInstr::isSafeToReMat(), isSourceDefinedByImplicitDef(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::X86InstrInfo::isStoreToStackSlot(), llvm::SystemZInstrInfo::isStoreToStackSlot(), llvm::SPUInstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::PIC16InstrInfo::isStoreToStackSlot(), llvm::MipsInstrInfo::isStoreToStackSlot(), llvm::BlackfinInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::AlphaInstrInfo::isStoreToStackSlot(), isTwoAddrUse(), llvm::X86InstrInfo::isX86_64ExtendedReg(), LookForDuplicate(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), print(), llvm::X86IntelAsmPrinter::printAsmMRegister(), llvm::X86ATTAsmPrinter::printAsmMRegister(), llvm::AsmPrinter::printImplicitDef(), llvm::X86IntelAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::X86IntelAsmPrinter::printMemReference(), llvm::X86ATTAsmPrinter::printMemReference(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86IntelAsmPrinter::printOperand(), llvm::X86ATTAsmPrinter::printOperand(), llvm::LiveIntervals::processImplicitDefs(), ReMaterialize(), llvm::ARMInstrInfo::reMaterialize(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::rewriteT2FrameIndex(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::PHIElimination::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::RegScavenger::scavengeRegister(), setReg(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRDef(), UpdateCPSRUse(), UpdateKills(), and VerifyLowRegs().
| unsigned llvm::MachineOperand::getSubReg | ( | ) | const [inline] |
Definition at line 174 of file MachineOperand.h.
References isReg().
Referenced by FilterFoldedOps(), isIdenticalTo(), llvm::X86InstrInfo::isMoveInstr(), llvm::SystemZInstrInfo::isMoveInstr(), print(), and ReMaterialize().
| bool llvm::MachineOperand::isUse | ( | ) | const [inline] |
Definition at line 179 of file MachineOperand.h.
References isReg().
Referenced by llvm::LiveIntervals::addIntervalsForSpillsFast(), llvm::MachineInstr::addRegisterKilled(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::ScheduleDAGInstrs::ComputeOperandLatency(), llvm::LiveIntervals::conflictsWithPhysRegRef(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::RegScavenger::forward(), InvalidateKills(), InvalidateRegDef(), llvm::TargetInstrInfoImpl::isDeadInstruction(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), isSafeToClobberEFLAGS(), isSafeToDelete(), llvm::MachineInstr::isSafeToReMat(), isTwoAddrUse(), llvm::LiveIntervals::processImplicitDefs(), ReMaterialize(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), UpdateCPSRDef(), and UpdateKills().
| bool llvm::MachineOperand::isDef | ( | ) | const [inline] |
Definition at line 184 of file MachineOperand.h.
References isReg().
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::LiveIntervals::addIntervalsForSpillsFast(), llvm::MachineInstr::addRegisterDead(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), FilterFoldedOps(), FindFreeRegister(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::RegScavenger::forward(), hasLiveCondCodeDef(), llvm::TargetInstrInfoImpl::isDeadInstruction(), isIdenticalTo(), isReadModWriteImplicitDef(), isReadModWriteImplicitKill(), llvm::MachineInstr::isRegTiedToUseOperand(), IsSafeAndProfitableToMove(), isSafeToDelete(), isTwoAddrUse(), LookForDuplicate(), print(), llvm::AsmPrinter::printInlineAsm(), llvm::LiveIntervals::processImplicitDefs(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRUse(), and UpdateKills().
| bool llvm::MachineOperand::isImplicit | ( | ) | const [inline] |
Definition at line 189 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstr::getNumExplicitOperands(), isReadModWriteImplicitDef(), isReadModWriteImplicitKill(), print(), llvm::X86InstrInfo::unfoldMemoryOperand(), and VerifyLowRegs().
| bool llvm::MachineOperand::isDead | ( | ) | const [inline] |
Definition at line 194 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstr::addRegisterDead(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::ARMBaseInstrInfo::canFoldMemoryOperand(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::MachineInstr::copyKillDeadInfo(), CreateReg(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), llvm::RegScavenger::forward(), hasLiveCondCodeDef(), InvalidateRegDef(), llvm::TargetInstrInfoImpl::isDeadInstruction(), isReadModWriteImplicitKill(), isSafeToDelete(), llvm::MachineInstr::isSafeToReMat(), print(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::X86InstrInfo::unfoldMemoryOperand(), and UpdateCPSRDef().
| bool llvm::MachineOperand::isKill | ( | ) | const [inline] |
Definition at line 199 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstr::addRegisterKilled(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::MachineInstr::copyKillDeadInfo(), CreateReg(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), FindFreeRegister(), llvm::MachineInstr::findRegisterUseOperandIdx(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), llvm::RegScavenger::forward(), InvalidateKills(), InvalidateRegDef(), llvm::TargetInstrInfoImpl::isDeadInstruction(), isReadModWriteImplicitDef(), isSafeToDelete(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), print(), llvm::LiveIntervals::processImplicitDefs(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRUse(), and UpdateKills().
| bool llvm::MachineOperand::isUndef | ( | ) | const [inline] |
Definition at line 204 of file MachineOperand.h.
References isReg().
Referenced by llvm::MachineInstr::addRegisterKilled(), CreateReg(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), llvm::RegScavenger::forward(), InvalidateKills(), InvalidateRegDef(), isLiveInButUnusedBefore(), print(), llvm::LiveIntervals::processImplicitDefs(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRDef(), UpdateCPSRUse(), and UpdateKills().
| bool llvm::MachineOperand::isEarlyClobber | ( | ) | const [inline] |
Definition at line 209 of file MachineOperand.h.
References isReg().
Referenced by ChangeToRegister(), CreateReg(), llvm::RegScavenger::forward(), and print().
| MachineOperand* llvm::MachineOperand::getNextOperandForReg | ( | ) | const [inline] |
getNextOperandForReg - Return the next MachineOperand in the function that uses or defines this register.
Definition at line 216 of file MachineOperand.h.
References isReg().
| void MachineOperand::setReg | ( | unsigned | Reg | ) |
Change the register this operand corresponds to.
Definition at line 87 of file MachineInstr.cpp.
References llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), getParent(), getReg(), llvm::MachineFunction::getRegInfo(), MBB, MF, and MI.
Referenced by llvm::LiveIntervals::addIntervalsForSpillsFast(), AssignPhysToVirtReg(), ChangeToRegister(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::TargetInstrInfoImpl::PredicateInstruction(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::LiveIntervals::processImplicitDefs(), llvm::X86InstrInfo::reMaterialize(), ReMaterialize(), llvm::TargetInstrInfoImpl::reMaterialize(), llvm::ARMInstrInfo::reMaterialize(), and llvm::MachineRegisterInfo::replaceRegWith().
| void llvm::MachineOperand::setSubReg | ( | unsigned | subReg | ) | [inline] |
Definition at line 229 of file MachineOperand.h.
References isReg().
Referenced by llvm::X86InstrInfo::reMaterialize(), ReMaterialize(), and llvm::TargetInstrInfoImpl::reMaterialize().
| void llvm::MachineOperand::setIsUse | ( | bool | Val = true |
) | [inline] |
| void llvm::MachineOperand::setIsDef | ( | bool | Val = true |
) | [inline] |
| void llvm::MachineOperand::setImplicit | ( | bool | Val = true |
) | [inline] |
| void llvm::MachineOperand::setIsKill | ( | bool | Val = true |
) | [inline] |
Definition at line 249 of file MachineOperand.h.
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::LiveIntervals::addIntervalsForSpillsFast(), llvm::MachineInstr::addRegisterKilled(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::MachineInstr::copyKillDeadInfo(), llvm::LiveIntervals::processImplicitDefs(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::X86InstrInfo::unfoldMemoryOperand(), and UpdateKills().
| void llvm::MachineOperand::setIsDead | ( | bool | Val = true |
) | [inline] |
Definition at line 254 of file MachineOperand.h.
Referenced by llvm::MachineInstr::addRegisterDead(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::MachineInstr::copyKillDeadInfo(), llvm::X86RegisterInfo::eliminateCallFramePseudoInstr(), llvm::MSP430RegisterInfo::eliminateCallFramePseudoInstr(), llvm::MSP430RegisterInfo::emitEpilogue(), llvm::X86RegisterInfo::emitPrologue(), llvm::MSP430RegisterInfo::emitPrologue(), emitSPUpdate(), InvalidateRegDef(), PropagateDeadness(), and llvm::LiveVariables::removeVirtualRegisterDead().
| void llvm::MachineOperand::setIsUndef | ( | bool | Val = true |
) | [inline] |
Definition at line 259 of file MachineOperand.h.
Referenced by llvm::LiveIntervals::processImplicitDefs().
| void llvm::MachineOperand::setIsEarlyClobber | ( | bool | Val = true |
) | [inline] |
| int64_t llvm::MachineOperand::getImm | ( | ) | const [inline] |
Definition at line 273 of file MachineOperand.h.
References isImm().
Referenced by llvm::X86InstrInfo::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::XCoreRegisterInfo::eliminateCallFramePseudoInstr(), llvm::X86RegisterInfo::eliminateCallFramePseudoInstr(), llvm::Thumb1RegisterInfo::eliminateCallFramePseudoInstr(), llvm::SparcRegisterInfo::eliminateCallFramePseudoInstr(), llvm::MSP430RegisterInfo::eliminateCallFramePseudoInstr(), llvm::ARMBaseRegisterInfo::eliminateCallFramePseudoInstr(), llvm::AlphaRegisterInfo::eliminateCallFramePseudoInstr(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::emitEpilogue(), llvm::SystemZRegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::SystemZTargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::PIC16TargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::getInstrPredicate(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), getLSMultipleTransferSize(), getMemoryOpOffset(), llvm::ARMBaseInstrInfo::getPredicate(), llvm::LiveIntervals::getVNInfoSourceReg(), HashMachineInstr(), isIdenticalTo(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::SystemZInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::BlackfinInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), isMatchingDecrement(), isMatchingIncrement(), llvm::SPUInstrInfo::isMoveInstr(), llvm::PPCInstrInfo::isMoveInstr(), llvm::BlackfinInstrInfo::isMoveInstr(), llvm::ARMBaseInstrInfo::isPredicated(), llvm::MachineInstr::isRegTiedToDefOperand(), llvm::MachineInstr::isRegTiedToUseOperand(), llvm::isScale(), llvm::X86InstrInfo::isStoreToStackSlot(), llvm::SystemZInstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::BlackfinInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), isZeroImm(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::printInlineAsm(), llvm::AsmPrinter::printLabel(), llvm::X86IntelAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::printOperand(), llvm::X86IntelAsmPrinter::printSSECC(), llvm::X86ATTAsmPrinter::printSSECC(), llvm::ARMInstrInfo::reMaterialize(), llvm::rewriteARMFrameIndex(), llvm::rewriteT2FrameIndex(), and llvm::X86InstrInfo::unfoldMemoryOperand().
| const ConstantFP* llvm::MachineOperand::getFPImm | ( | ) | const [inline] |
Definition at line 278 of file MachineOperand.h.
References isFPImm().
Referenced by isIdenticalTo().
| MachineBasicBlock* llvm::MachineOperand::getMBB | ( | ) | const [inline] |
Definition at line 283 of file MachineOperand.h.
References isMBB().
Referenced by llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::SPUInstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::AlphaInstrInfo::AnalyzeBranch(), HashMachineInstr(), isIdenticalTo(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::AsmPrinter::printInlineAsm(), llvm::X86ATTAsmPrinter::printMachineInstruction(), and llvm::SplitCriticalMachineEdge().
| int llvm::MachineOperand::getIndex | ( | ) | const [inline] |
Definition at line 288 of file MachineOperand.h.
References isCPI(), isFI(), and isJTI().
Referenced by ComputeReloadLoc(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::AlphaRegisterInfo::eliminateFrameIndex(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), HashMachineInstr(), isIdenticalTo(), llvm::X86InstrInfo::isInvariantLoad(), llvm::SystemZInstrInfo::isInvariantLoad(), llvm::XCoreInstrInfo::isLoadFromStackSlot(), llvm::X86InstrInfo::isLoadFromStackSlot(), llvm::SystemZInstrInfo::isLoadFromStackSlot(), llvm::SPUInstrInfo::isLoadFromStackSlot(), llvm::SparcInstrInfo::isLoadFromStackSlot(), llvm::PPCInstrInfo::isLoadFromStackSlot(), llvm::PIC16InstrInfo::isLoadFromStackSlot(), llvm::MipsInstrInfo::isLoadFromStackSlot(), llvm::BlackfinInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::AlphaInstrInfo::isLoadFromStackSlot(), llvm::XCoreInstrInfo::isStoreToStackSlot(), llvm::X86InstrInfo::isStoreToStackSlot(), llvm::SystemZInstrInfo::isStoreToStackSlot(), llvm::SPUInstrInfo::isStoreToStackSlot(), llvm::SparcInstrInfo::isStoreToStackSlot(), llvm::PPCInstrInfo::isStoreToStackSlot(), llvm::PIC16InstrInfo::isStoreToStackSlot(), llvm::MipsInstrInfo::isStoreToStackSlot(), llvm::BlackfinInstrInfo::isStoreToStackSlot(), llvm::ARMBaseInstrInfo::isStoreToStackSlot(), llvm::AlphaInstrInfo::isStoreToStackSlot(), llvm::AsmPrinter::printDeclare(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::printSymbolOperand(), and llvm::VirtRegMap::RemoveMachineInstrFromMaps().
| GlobalValue* llvm::MachineOperand::getGlobal | ( | ) | const [inline] |
Definition at line 294 of file MachineOperand.h.
References isGlobal().
Referenced by CanRematLoadWithDispOperand(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), isIdenticalTo(), llvm::SystemZInstrInfo::isInvariantLoad(), llvm::X86ATTAsmPrinter::LowerGlobalAddressOperand(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::AsmPrinter::printDeclare(), llvm::X86IntelAsmPrinter::printOp(), and llvm::X86ATTAsmPrinter::printSymbolOperand().
| MDNode* llvm::MachineOperand::getMDNode | ( | ) | const [inline] |
Definition at line 299 of file MachineOperand.h.
| int64_t llvm::MachineOperand::getOffset | ( | ) | const [inline] |
Definition at line 303 of file MachineOperand.h.
References isCPI(), isGlobal(), and isSymbol().
Referenced by llvm::X86RegisterInfo::eliminateFrameIndex(), HashMachineInstr(), isIdenticalTo(), llvm::X86ATTAsmPrinter::LowerExternalSymbolOperand(), llvm::X86ATTAsmPrinter::LowerGlobalAddressOperand(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86IntelAsmPrinter::printOp(), and llvm::X86ATTAsmPrinter::printSymbolOperand().
| const char* llvm::MachineOperand::getSymbolName | ( | ) | const [inline] |
Definition at line 309 of file MachineOperand.h.
References isSymbol().
Referenced by llvm::PPCInstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), GetInstSizeWithDesc(), isIdenticalTo(), llvm::X86ATTAsmPrinter::LowerExternalSymbolOperand(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::AsmPrinter::printInlineAsm(), llvm::X86IntelAsmPrinter::printOp(), and llvm::X86ATTAsmPrinter::printSymbolOperand().
| void llvm::MachineOperand::setImm | ( | int64_t | immVal | ) | [inline] |
Definition at line 318 of file MachineOperand.h.
References isImm().
Referenced by llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::commuteInstruction(), CreateImm(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseInstrInfo::PredicateInstruction(), and llvm::TargetInstrInfoImpl::PredicateInstruction().
| void llvm::MachineOperand::setOffset | ( | int64_t | Offset | ) | [inline] |
Definition at line 323 of file MachineOperand.h.
References isCPI(), isGlobal(), isMetadata(), and isSymbol().
Referenced by CreateCPI(), CreateES(), CreateGA(), CreateMDNode(), and llvm::X86RegisterInfo::eliminateFrameIndex().
| void llvm::MachineOperand::setIndex | ( | int | Idx | ) | [inline] |
Definition at line 329 of file MachineOperand.h.
References isCPI(), isFI(), and isJTI().
Referenced by CreateCPI(), CreateFI(), and CreateJTI().
| void llvm::MachineOperand::setMBB | ( | MachineBasicBlock * | MBB | ) | [inline] |
Definition at line 335 of file MachineOperand.h.
References isMBB().
Referenced by CreateMBB(), llvm::TargetInstrInfoImpl::PredicateInstruction(), and llvm::SplitCriticalMachineEdge().
| 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.
isIdenticalTo - Return true if this operand is identical to the specified operand.
Definition at line 154 of file MachineInstr.cpp.
References getFPImm(), getGlobal(), getImm(), getIndex(), getMBB(), getOffset(), getReg(), getSubReg(), getSymbolName(), getTargetFlags(), getType(), isDef(), llvm_unreachable, MO_ConstantPoolIndex, MO_ExternalSymbol, MO_FPImmediate, MO_FrameIndex, MO_GlobalAddress, MO_Immediate, MO_JumpTableIndex, MO_MachineBasicBlock, and MO_Register.
Referenced by llvm::MachineInstr::copyKillDeadInfo(), llvm::MachineInstr::isIdenticalTo(), and LookForDuplicate().
| 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.
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 109 of file MachineInstr.cpp.
References getParent(), isReg(), and MO_Immediate.
Referenced by llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::AlphaRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::emitEpilogue(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::rewriteARMFrameIndex(), and llvm::rewriteT2FrameIndex().
| void MachineOperand::ChangeToRegister | ( | unsigned | Reg, | |
| bool | isDef, | |||
| bool | isImp = false, |
|||
| bool | isKill = false, |
|||
| bool | isDead = false, |
|||
| bool | isUndef = 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.
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 123 of file MachineInstr.cpp.
References llvm::MachineInstr::getParent(), getParent(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), isEarlyClobber(), isReg(), MBB, MF, MI, MO_Register, and setReg().
Referenced by llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::X86RegisterInfo::eliminateFrameIndex(), llvm::AlphaRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::rewriteARMFrameIndex(), llvm::rewriteT2FrameIndex(), and llvm::X86InstrInfo::unfoldMemoryOperand().
| static MachineOperand llvm::MachineOperand::CreateImm | ( | int64_t | Val | ) | [inline, static] |
Definition at line 364 of file MachineOperand.h.
References MO_Immediate, Op, and setImm().
Referenced by llvm::MachineInstrBuilder::addImm(), llvm::SystemZInstrInfo::AnalyzeBranch(), llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::SPUInstrInfo::AnalyzeBranch(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::X86InstrInfo::AnalyzeBranch(), llvm::ScheduleDAGSDNodes::EmitNode(), llvm::X86InstrInfo::foldMemoryOperandImpl(), and llvm::ARMBaseInstrInfo::PredicateInstruction().
| static MachineOperand llvm::MachineOperand::CreateFPImm | ( | const ConstantFP * | CFP | ) | [inline, static] |
Definition at line 370 of file MachineOperand.h.
References CFP, Contents, MO_FPImmediate, and Op.
Referenced by llvm::MachineInstrBuilder::addFPImm().
| static MachineOperand llvm::MachineOperand::CreateReg | ( | unsigned | Reg, | |
| bool | isDef, | |||
| bool | isImp = false, |
|||
| bool | isKill = false, |
|||
| bool | isDead = false, |
|||
| bool | isUndef = false, |
|||
| bool | isEarlyClobber = false, |
|||
| unsigned | SubReg = 0 | |||
| ) | [inline, static] |
Definition at line 376 of file MachineOperand.h.
References Contents, isDead(), IsDead, IsDef, isEarlyClobber(), IsEarlyClobber, IsImp, IsKill, isKill(), isUndef(), IsUndef, MO_Register, Op, Reg, and SubReg.
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::MachineInstrBuilder::addReg(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::addRegisterKilled(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::ScheduleDAGSDNodes::EmitNode(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::PredicateInstruction(), PropagateDeadness(), llvm::LiveVariables::runOnMachineFunction(), and llvm::SplitCriticalMachineEdge().
| static MachineOperand llvm::MachineOperand::CreateMBB | ( | MachineBasicBlock * | MBB, | |
| unsigned char | TargetFlags = 0 | |||
| ) | [inline, static] |
Definition at line 394 of file MachineOperand.h.
References MO_MachineBasicBlock, Op, setMBB(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addMBB(), and llvm::SplitCriticalMachineEdge().
| static MachineOperand llvm::MachineOperand::CreateFI | ( | unsigned | Idx | ) | [inline, static] |
Definition at line 401 of file MachineOperand.h.
References MO_FrameIndex, Op, and setIndex().
Referenced by llvm::MachineInstrBuilder::addFrameIndex(), and llvm::X86InstrInfo::foldMemoryOperandImpl().
| static MachineOperand llvm::MachineOperand::CreateCPI | ( | unsigned | Idx, | |
| int | Offset, | |||
| unsigned char | TargetFlags = 0 | |||
| ) | [inline, static] |
Definition at line 406 of file MachineOperand.h.
References MO_ConstantPoolIndex, Op, setIndex(), setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addConstantPoolIndex(), and llvm::X86InstrInfo::foldMemoryOperandImpl().
| static MachineOperand llvm::MachineOperand::CreateJTI | ( | unsigned | Idx, | |
| unsigned char | TargetFlags = 0 | |||
| ) | [inline, static] |
Definition at line 414 of file MachineOperand.h.
References MO_JumpTableIndex, Op, setIndex(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addJumpTableIndex().
| static MachineOperand llvm::MachineOperand::CreateGA | ( | GlobalValue * | GV, | |
| int64_t | Offset, | |||
| unsigned char | TargetFlags = 0 | |||
| ) | [inline, static] |
Definition at line 421 of file MachineOperand.h.
References Contents, MO_GlobalAddress, OffsetedInfo, Op, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addGlobalAddress().
| static MachineOperand llvm::MachineOperand::CreateMDNode | ( | MDNode * | N, | |
| int64_t | Offset, | |||
| unsigned char | TargetFlags = 0 | |||
| ) | [inline, static] |
Definition at line 429 of file MachineOperand.h.
References Contents, MO_Metadata, OffsetedInfo, Op, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addMetadata().
| static MachineOperand llvm::MachineOperand::CreateES | ( | const char * | SymName, | |
| int64_t | Offset = 0, |
|||
| unsigned char | TargetFlags = 0 | |||
| ) | [inline, static] |
Definition at line 437 of file MachineOperand.h.
References Contents, MO_ExternalSymbol, Offset, OffsetedInfo, Op, setOffset(), and setTargetFlags().
Referenced by llvm::MachineInstrBuilder::addExternalSymbol(), and llvm::ScheduleDAGSDNodes::EmitNode().
friend class MachineInstr [friend] |
Definition at line 446 of file MachineOperand.h.
friend class MachineRegisterInfo [friend] |
Definition at line 447 of file MachineOperand.h.
Definition at line 95 of file MachineOperand.h.
Referenced by ChangeToRegister(), print(), and setReg().
| int64_t llvm::MachineOperand::ImmVal |
Definition at line 97 of file MachineOperand.h.
Definition at line 100 of file MachineOperand.h.
Definition at line 101 of file MachineOperand.h.
Definition at line 102 of file MachineOperand.h.
| struct { ... } llvm::MachineOperand::Reg |
Referenced by CreateReg().
Definition at line 109 of file MachineOperand.h.
| const char* llvm::MachineOperand::SymbolName |
Definition at line 110 of file MachineOperand.h.
Definition at line 111 of file MachineOperand.h.
Definition at line 112 of file MachineOperand.h.
| union { ... } ::@31 llvm::MachineOperand::Val |
Referenced by setImplicit(), setIsDead(), setIsDef(), setIsEarlyClobber(), setIsKill(), setIsUndef(), and setIsUse().
| int64_t llvm::MachineOperand::Offset |
| 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 CreateES(), CreateGA(), and CreateMDNode().