LLVM API Documentation
#include <MachineInstr.h>
Definition at line 39 of file MachineInstr.h.
| const MachineBasicBlock* llvm::MachineInstr::getParent | ( | ) | const [inline] |
Definition at line 102 of file MachineInstr.h.
Referenced by llvm::addFrameReference(), llvm::LiveIntervals::addLiveRangeToEndOfBlock(), llvm::MachineInstrBuilder::addMemOperand(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::MachineOperand::ChangeToRegister(), llvm::X86InstrInfo::commuteInstruction(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::MachineDominatorTree::dominates(), 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(), eraseFromParent(), findOnlyInterestingUse(), getConflictWeight(), llvm::PPCInstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), GetInstSizeWithDesc(), llvm::LiveVariables::HandleVirtRegUse(), HandleVRSaveUpdate(), llvm::XCoreInstrInfo::isInvariantLoad(), llvm::X86InstrInfo::isInvariantLoad(), llvm::SystemZInstrInfo::isInvariantLoad(), isLiveInButUnusedBefore(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), MakeM0Inst(), precedes(), print(), llvm::MachineOperand::print(), llvm::AsmPrinter::PrintSpecial(), llvm::LiveIntervals::processImplicitDefs(), removeFromParent(), RemoveVRSaveCode(), llvm::LiveVariables::runOnMachineFunction(), and llvm::MachineOperand::setReg().
| MachineBasicBlock* llvm::MachineInstr::getParent | ( | ) | [inline] |
Definition at line 103 of file MachineInstr.h.
| DebugLoc llvm::MachineInstr::getDebugLoc | ( | ) | const [inline] |
getDebugLoc - Returns the debug location id of this MachineInstr.
Definition at line 107 of file MachineInstr.h.
Referenced by llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), llvm::XCoreRegisterInfo::eliminateCallFramePseudoInstr(), llvm::X86RegisterInfo::eliminateCallFramePseudoInstr(), llvm::Thumb1RegisterInfo::eliminateCallFramePseudoInstr(), llvm::SparcRegisterInfo::eliminateCallFramePseudoInstr(), llvm::PPCRegisterInfo::eliminateCallFramePseudoInstr(), llvm::MSP430RegisterInfo::eliminateCallFramePseudoInstr(), llvm::ARMBaseRegisterInfo::eliminateCallFramePseudoInstr(), llvm::AlphaRegisterInfo::eliminateCallFramePseudoInstr(), llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::AlphaRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::AsmPrinter::EmitComments(), 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(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), FuseInst(), FuseTwoAddrInst(), HandleVRSaveUpdate(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), MakeM0Inst(), llvm::ARMInstrInfo::reMaterialize(), and llvm::X86InstrInfo::unfoldMemoryOperand().
| const TargetInstrDesc& llvm::MachineInstr::getDesc | ( | ) | const [inline] |
getDesc - Returns the target instruction descriptor of this MachineInstr.
Definition at line 111 of file MachineInstr.h.
Referenced by llvm::addFrameReference(), llvm::LiveIntervals::addIntervalsForSpills(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::X86InstrInfo::canFoldMemoryOperand(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::ScheduleDAGInstrs::ComputeLatency(), llvm::ScheduleDAGInstrs::ComputeOperandLatency(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), copyPredicates(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::X86InstrInfo::determineREX(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::ExactHazardRecognizer::EmitInstruction(), llvm::TargetInstrInfoImpl::findCommutedOpIndices(), findFirstPredOperandIdx(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::X86InstrInfo::foldMemoryOperandImpl(), FuseTwoAddrInst(), llvm::ExactHazardRecognizer::getHazardType(), llvm::X86InstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), getMemoryOpOffset(), IsBetterFallthrough(), llvm::TargetInstrInfoImpl::isDeadInstruction(), llvm::ARMBaseInstrInfo::isMoveInstr(), llvm::MachineBasicBlock::isOnlyReachableByFallthrough(), isRegTiedToDefOperand(), isRegTiedToUseOperand(), isSafeToDelete(), isSafeToReMat(), isSchedulingBoundary(), llvm::TargetInstrInfo::isTriviallyReMaterializable(), isTwoAddrUse(), llvm::X86InstrInfo::isUnpredicatedTerminator(), llvm::TargetInstrInfo::isUnpredicatedTerminator(), llvm::SystemZInstrInfo::isUnpredicatedTerminator(), llvm::TargetInstrInfoImpl::PredicateInstruction(), print(), ReMaterialize(), llvm::rewriteARMFrameIndex(), llvm::rewriteT2FrameIndex(), and llvm::LiveVariables::runOnMachineFunction().
| int llvm::MachineInstr::getOpcode | ( | ) | const [inline] |
getOpcode - Returns the opcode of this MachineInstr.
Definition at line 115 of file MachineInstr.h.
References llvm::TargetInstrDesc::Opcode.
Referenced by llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::SPUInstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::AlphaInstrInfo::AnalyzeBranch(), llvm::XCoreInstrInfo::BlockHasNoFallThrough(), llvm::X86InstrInfo::BlockHasNoFallThrough(), llvm::Thumb2InstrInfo::BlockHasNoFallThrough(), llvm::Thumb1InstrInfo::BlockHasNoFallThrough(), llvm::SystemZInstrInfo::BlockHasNoFallThrough(), llvm::PPCInstrInfo::BlockHasNoFallThrough(), llvm::MipsInstrInfo::BlockHasNoFallThrough(), llvm::ARMInstrInfo::BlockHasNoFallThrough(), llvm::AlphaInstrInfo::BlockHasNoFallThrough(), llvm::X86InstrInfo::canFoldMemoryOperand(), llvm::Thumb1InstrInfo::canFoldMemoryOperand(), llvm::SPUInstrInfo::canFoldMemoryOperand(), llvm::PPCInstrInfo::canFoldMemoryOperand(), llvm::ARMBaseInstrInfo::canFoldMemoryOperand(), CanTurnIntoImplicitDef(), 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::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::SPURegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::SystemZTargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::AlphaTargetLowering::EmitInstrWithCustomInserter(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::Thumb1InstrInfo::foldMemoryOperandImpl(), llvm::SPUInstrInfo::foldMemoryOperandImpl(), llvm::SparcInstrInfo::foldMemoryOperandImpl(), llvm::PPCInstrInfo::foldMemoryOperandImpl(), llvm::MipsInstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::foldMemoryOperandImpl(), llvm::AlphaInstrInfo::foldMemoryOperandImpl(), FoldsStackSlotModRef(), llvm::PPCInstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), getLSMultipleTransferSize(), getMemoryOpOffset(), getPredicate(), llvm::LiveIntervals::getVNInfoSourceReg(), HashMachineInstr(), HasPHIUses(), isBrAnalysisUnpredicatedTerminator(), isCondBranch(), isCopyToReg(), isCSRestore(), isDebugLabel(), isIdenticalTo(), llvm::XCoreInstrInfo::isInvariantLoad(), isLabel(), 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(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), isRegTiedToDefOperand(), isRegTiedToUseOperand(), 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(), isUncondBranch(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::LiveIntervals::processImplicitDefs(), regIsPICBase(), llvm::X86InstrInfo::reMaterialize(), llvm::ARMInstrInfo::reMaterialize(), llvm::rewriteARMFrameIndex(), llvm::rewriteT2FrameIndex(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::LiveIntervals::spillPhysRegAroundRegDefsUses(), llvm::X86InstrInfo::unfoldMemoryOperand(), and VerifyLowRegs().
| unsigned llvm::MachineInstr::getNumOperands | ( | ) | const [inline] |
Access to explicit operands of the instruction.
Definition at line 119 of file MachineInstr.h.
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::LiveIntervals::addIntervalsForSpillsFast(), addRegisterDead(), addRegisterKilled(), llvm::MipsInstrInfo::AnalyzeBranch(), AssignPhysToVirtReg(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::ScheduleDAGInstrs::ComputeOperandLatency(), llvm::LiveIntervals::conflictsWithPhysRegDef(), llvm::LiveIntervals::conflictsWithPhysRegRef(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), copyKillDeadInfo(), copyPredicates(), llvm::ARMBaseInstrInfo::DefinesPredicate(), 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::SystemZRegisterInfo::emitEpilogue(), findFirstPredOperandIdx(), FindFreeRegister(), findRegisterDefOperandIdx(), findRegisterUseOperandIdx(), FoldsStackSlotModRef(), llvm::RegScavenger::forward(), FuseInst(), FuseTwoAddrInst(), getLSMultipleTransferSize(), getNumExplicitOperands(), getOperand(), HashMachineInstr(), hasLiveCondCodeDef(), InvalidateKills(), InvalidateRegDef(), llvm::TargetInstrInfoImpl::isDeadInstruction(), isIdenticalTo(), llvm::X86InstrInfo::isInvariantLoad(), llvm::SystemZInstrInfo::isInvariantLoad(), llvm::isLeaMem(), llvm::isMem(), llvm::X86InstrInfo::isMoveInstr(), llvm::SystemZInstrInfo::isMoveInstr(), llvm::SPUInstrInfo::isMoveInstr(), llvm::PPCInstrInfo::isMoveInstr(), llvm::MSP430InstrInfo::isMoveInstr(), llvm::AlphaInstrInfo::isMoveInstr(), isReadModWriteImplicitDef(), isReadModWriteImplicitKill(), isRegTiedToDefOperand(), isRegTiedToUseOperand(), isSafeToDelete(), isSafeToReMat(), isSourceDefinedByImplicitDef(), isTwoAddrUse(), LookForDuplicate(), llvm::TargetInstrInfoImpl::PredicateInstruction(), print(), llvm::AsmPrinter::printInlineAsm(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::LiveIntervals::processImplicitDefs(), ReMaterialize(), llvm::VirtRegMap::RemoveMachineInstrFromMaps(), removeOperands(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRDef(), UpdateCPSRUse(), UpdateKills(), and VerifyLowRegs().
| const MachineOperand& llvm::MachineInstr::getOperand | ( | unsigned | i | ) | const [inline] |
Definition at line 121 of file MachineInstr.h.
References getNumOperands().
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::LiveIntervals::addIntervalsForSpillsFast(), addRegisterDead(), addRegisterKilled(), llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::SPUInstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::AlphaInstrInfo::AnalyzeBranch(), AssignPhysToVirtReg(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::Thumb1InstrInfo::canFoldMemoryOperand(), llvm::SPUInstrInfo::canFoldMemoryOperand(), llvm::PPCInstrInfo::canFoldMemoryOperand(), llvm::ARMBaseInstrInfo::canFoldMemoryOperand(), CanTurnIntoImplicitDef(), llvm::X86InstrInfo::commuteInstruction(), llvm::TargetInstrInfoImpl::commuteInstruction(), llvm::PPCInstrInfo::commuteInstruction(), llvm::ScheduleDAGInstrs::ComputeOperandLatency(), llvm::LiveIntervals::conflictsWithPhysRegDef(), llvm::LiveIntervals::conflictsWithPhysRegRef(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::ARMBaseInstrInfo::convertToThreeAddress(), copyKillDeadInfo(), copyPredicates(), llvm::ARMBaseInstrInfo::DefinesPredicate(), llvm::X86InstrInfo::determineREX(), 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::AlphaRegisterInfo::eliminateFrameIndex(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::SystemZRegisterInfo::emitEpilogue(), llvm::MSP430RegisterInfo::emitEpilogue(), 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(), llvm::X86RegisterInfo::emitPrologue(), llvm::MSP430RegisterInfo::emitPrologue(), emitSPUpdate(), encodeVFPRd(), encodeVFPRm(), encodeVFPRn(), FilterFoldedOps(), llvm::TargetInstrInfoImpl::findCommutedOpIndices(), FindFreeRegister(), findRegisterDefOperand(), findRegisterDefOperandIdx(), findRegisterUseOperand(), findRegisterUseOperandIdx(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::X86InstrInfo::foldMemoryOperandImpl(), 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(), FuseInst(), FuseTwoAddrInst(), llvm::getInstrPredicate(), llvm::PPCInstrInfo::GetInstSizeInBytes(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), GetInstSizeWithDesc(), getLSMultipleTransferSize(), getMemModRMByteSize(), getMemoryOpOffset(), getNumExplicitOperands(), llvm::ARMBaseInstrInfo::getPredicate(), llvm::LiveIntervals::getVNInfoSourceReg(), HandleVRSaveUpdate(), HashMachineInstr(), hasLiveCondCodeDef(), InvalidateKills(), InvalidateRegDef(), isCopyToReg(), isCSRestore(), llvm::TargetInstrInfoImpl::isDeadInstruction(), isIdenticalTo(), llvm::XCoreInstrInfo::isInvariantLoad(), 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::PIC16InstrInfo::isLoadFromStackSlot(), llvm::MipsInstrInfo::isLoadFromStackSlot(), llvm::BlackfinInstrInfo::isLoadFromStackSlot(), llvm::ARMBaseInstrInfo::isLoadFromStackSlot(), llvm::AlphaInstrInfo::isLoadFromStackSlot(), isMatchingDecrement(), isMatchingIncrement(), llvm::isMem(), 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(), llvm::ARMBaseInstrInfo::isPredicated(), isReadModWriteImplicitDef(), isReadModWriteImplicitKill(), llvm::X86InstrInfo::isReallyTriviallyReMaterializable(), isRegTiedToDefOperand(), isRegTiedToUseOperand(), isSafeToDelete(), 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(), LookForDuplicate(), llvm::PPCRegisterInfo::lowerCRSpilling(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::TargetInstrInfoImpl::PredicateInstruction(), llvm::ARMBaseInstrInfo::PredicateInstruction(), print(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::X86IntelAsmPrinter::PrintAsmOperand(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::printDeclare(), llvm::AsmPrinter::printImplicitDef(), llvm::AsmPrinter::printInlineAsm(), llvm::AsmPrinter::printLabel(), llvm::X86IntelAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::X86IntelAsmPrinter::printMemReference(), llvm::X86ATTAsmPrinter::printMemReference(), llvm::X86IntelAsmPrinter::printOperand(), llvm::X86ATTAsmPrinter::printOperand(), llvm::X86IntelAsmPrinter::printSSECC(), llvm::X86ATTAsmPrinter::printSSECC(), llvm::LiveIntervals::processImplicitDefs(), PropagateDeadness(), llvm::X86InstrInfo::reMaterialize(), ReMaterialize(), llvm::TargetInstrInfoImpl::reMaterialize(), llvm::ARMInstrInfo::reMaterialize(), llvm::VirtRegMap::RemoveMachineInstrFromMaps(), llvm::LiveVariables::removeVirtualRegisterDead(), llvm::LiveVariables::removeVirtualRegisterKilled(), llvm::LiveVariables::removeVirtualRegistersKilled(), llvm::rewriteARMFrameIndex(), llvm::rewriteT2FrameIndex(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::PHIElimination::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), llvm::X86InstrInfo::unfoldMemoryOperand(), UpdateCPSRDef(), UpdateCPSRUse(), UpdateKills(), and VerifyLowRegs().
| MachineOperand& llvm::MachineInstr::getOperand | ( | unsigned | i | ) | [inline] |
| unsigned MachineInstr::getNumExplicitOperands | ( | ) | const |
getNumExplicitOperands - Returns the number of non-implicit operands.
Definition at line 632 of file MachineInstr.cpp.
References getNumOperands(), llvm::TargetInstrDesc::getNumOperands(), getOperand(), llvm::MachineOperand::isImplicit(), llvm::MachineOperand::isReg(), and llvm::TargetInstrDesc::isVariadic().
| std::list<MachineMemOperand>::iterator llvm::MachineInstr::memoperands_begin | ( | ) | [inline] |
Access to memory operands of the instruction.
Definition at line 135 of file MachineInstr.h.
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::TargetInstrInfo::foldMemoryOperand(), llvm::X86InstrInfo::foldMemoryOperandImpl(), getUnderlyingObjectForInstr(), hasOneMemOperand(), hasVolatileMemoryRef(), and print().
| std::list<MachineMemOperand>::iterator llvm::MachineInstr::memoperands_end | ( | ) | [inline] |
Definition at line 137 of file MachineInstr.h.
Referenced by llvm::TargetInstrInfo::foldMemoryOperand(), hasOneMemOperand(), hasVolatileMemoryRef(), and print().
| std::list<MachineMemOperand>::const_iterator llvm::MachineInstr::memoperands_begin | ( | ) | const [inline] |
Definition at line 139 of file MachineInstr.h.
| std::list<MachineMemOperand>::const_iterator llvm::MachineInstr::memoperands_end | ( | ) | const [inline] |
Definition at line 141 of file MachineInstr.h.
| bool llvm::MachineInstr::memoperands_empty | ( | ) | const [inline] |
Definition at line 143 of file MachineInstr.h.
Referenced by hasOneMemOperand(), hasVolatileMemoryRef(), and print().
| bool llvm::MachineInstr::hasOneMemOperand | ( | ) | const [inline] |
hasOneMemOperand - Return true if this instruction has exactly one MachineMemOperand.
Definition at line 147 of file MachineInstr.h.
References memoperands_begin(), memoperands_empty(), memoperands_end(), and llvm::next().
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::X86InstrInfo::foldMemoryOperandImpl(), and getUnderlyingObjectForInstr().
| bool llvm::MachineInstr::isIdenticalTo | ( | const MachineInstr * | Other | ) | const [inline] |
isIdenticalTo - Return true if this instruction is identical to (same opcode and same operands as) the specified instruction.
Definition at line 154 of file MachineInstr.h.
References getNumOperands(), getOpcode(), getOperand(), and llvm::MachineOperand::isIdenticalTo().
| MachineInstr * MachineInstr::removeFromParent | ( | ) |
removeFromParent - This method unlinks 'this' from the containing basic block, and returns it, but does not delete it.
removeFromParent - This method unlinks 'this' from the containing basic block, and returns it, but does not delete it.
Definition at line 606 of file MachineInstr.cpp.
References getParent(), and llvm::MachineBasicBlock::remove().
| void MachineInstr::eraseFromParent | ( | ) |
eraseFromParent - This method unlinks 'this' from the containing basic block and deletes it.
eraseFromParent - This method unlinks 'this' from the containing basic block, and deletes it.
Definition at line 615 of file MachineInstr.cpp.
References llvm::MachineBasicBlock::erase(), and getParent().
Referenced by llvm::XCoreInstrInfo::AnalyzeBranch(), llvm::SPUInstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::AnalyzeBranch(), llvm::MipsInstrInfo::AnalyzeBranch(), llvm::ARMBaseInstrInfo::AnalyzeBranch(), llvm::AlphaInstrInfo::AnalyzeBranch(), CleanupConstantGlobalUsers(), HandleVRSaveUpdate(), llvm::LiveIntervals::processImplicitDefs(), RemoveVRSaveCode(), and llvm::PHIElimination::runOnMachineFunction().
| bool MachineInstr::isLabel | ( | ) | const |
isLabel - Returns true if the MachineInstr represents a label.
Definition at line 648 of file MachineInstr.cpp.
References llvm::TargetInstrInfo::DBG_LABEL, llvm::TargetInstrInfo::EH_LABEL, llvm::TargetInstrInfo::GC_LABEL, and getOpcode().
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::ARMBaseInstrInfo::GetInstSizeInBytes(), and isSchedulingBoundary().
| bool MachineInstr::isDebugLabel | ( | ) | const |
isDebugLabel - Returns true if the MachineInstr represents a debug label.
Definition at line 656 of file MachineInstr.cpp.
References llvm::TargetInstrInfo::DBG_LABEL, and getOpcode().
| bool llvm::MachineInstr::readsRegister | ( | unsigned | Reg, | |
| const TargetRegisterInfo * | TRI = NULL | |||
| ) | const [inline] |
readsRegister - Return true if the MachineInstr reads the specified register. If TargetRegisterInfo is passed, then it also checks if there is a read of a super-register.
Definition at line 183 of file MachineInstr.h.
References findRegisterUseOperandIdx(), and TRI.
Referenced by llvm::ARMBaseInstrInfo::convertToThreeAddress(), and llvm::LiveVariables::runOnMachineFunction().
| bool llvm::MachineInstr::killsRegister | ( | unsigned | Reg, | |
| const TargetRegisterInfo * | TRI = NULL | |||
| ) | const [inline] |
killsRegister - Return true if the MachineInstr kills the specified register. If TargetRegisterInfo is passed, then it also checks if there is a kill of a super-register.
Definition at line 190 of file MachineInstr.h.
References findRegisterUseOperandIdx(), and TRI.
Referenced by interferes(), and isKilled().
| bool llvm::MachineInstr::modifiesRegister | ( | unsigned | Reg, | |
| const TargetRegisterInfo * | TRI = NULL | |||
| ) | const [inline] |
modifiesRegister - Return true if the MachineInstr modifies the specified register. If TargetRegisterInfo is passed, then it also checks if there is a def of a super-register.
Definition at line 197 of file MachineInstr.h.
References findRegisterDefOperandIdx(), and TRI.
Referenced by isSchedulingBoundary().
| bool llvm::MachineInstr::registerDefIsDead | ( | unsigned | Reg, | |
| const TargetRegisterInfo * | TRI = NULL | |||
| ) | const [inline] |
registerDefIsDead - Returns true if the register is dead in this machine instruction. If TargetRegisterInfo is passed, then it also checks if there is a dead def of a super-register.
Definition at line 205 of file MachineInstr.h.
References findRegisterDefOperandIdx(), and TRI.
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), and llvm::SimpleRegisterCoalescing::runOnMachineFunction().
| int MachineInstr::findRegisterUseOperandIdx | ( | unsigned | Reg, | |
| bool | isKill = false, |
|||
| const TargetRegisterInfo * | TRI = NULL | |||
| ) | const |
findRegisterUseOperandIdx() - Returns the operand index that is a use of the specific register or -1 if it is not found. It further tightening the search criteria to a use that kills the register if isKill is true.
findRegisterUseOperandIdx() - Returns the MachineOperand that is a use of the specific register or -1 if it is not found. It further tightening the search criteria to a use that kills the register if isKill is true.
Definition at line 663 of file MachineInstr.cpp.
References getNumOperands(), getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isKill(), llvm::TargetRegisterInfo::isPhysicalRegister(), llvm::MachineOperand::isReg(), llvm::TargetRegisterInfo::isSubRegister(), and llvm::MachineOperand::isUse().
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), findRegisterUseOperand(), killsRegister(), and readsRegister().
| MachineOperand* llvm::MachineInstr::findRegisterUseOperand | ( | unsigned | Reg, | |
| bool | isKill = false, |
|||
| const TargetRegisterInfo * | TRI = NULL | |||
| ) | [inline] |
findRegisterUseOperand - Wrapper for findRegisterUseOperandIdx, it returns a pointer to the MachineOperand rather than an index.
Definition at line 218 of file MachineInstr.h.
References findRegisterUseOperandIdx(), getOperand(), Idx, and TRI.
| int MachineInstr::findRegisterDefOperandIdx | ( | unsigned | Reg, | |
| bool | isDead = false, |
|||
| const TargetRegisterInfo * | TRI = NULL | |||
| ) | const |
findRegisterDefOperandIdx() - Returns the operand index that is a def of the specified register or -1 if it is not found. If isDead is true, defs that are not dead are skipped. If TargetRegisterInfo is non-null, then it also checks if there is a def of a super-register.
findRegisterDefOperandIdx() - Returns the operand index that is a def of the specified register or -1 if it is not found. If isDead is true, defs that are not dead are skipped. If TargetRegisterInfo is non-null, then it also checks if there is a def of a super-register.
Definition at line 687 of file MachineInstr.cpp.
References getNumOperands(), getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isDef(), llvm::TargetRegisterInfo::isPhysicalRegister(), llvm::MachineOperand::isReg(), and llvm::TargetRegisterInfo::isSubRegister().
Referenced by llvm::ScheduleDAGInstrs::ComputeOperandLatency(), findRegisterDefOperand(), modifiesRegister(), PropagateDeadness(), and registerDefIsDead().
| MachineOperand* llvm::MachineInstr::findRegisterDefOperand | ( | unsigned | Reg, | |
| bool | isDead = false, |
|||
| const TargetRegisterInfo * | TRI = NULL | |||
| ) | [inline] |
findRegisterDefOperand - Wrapper for findRegisterDefOperandIdx, it returns a pointer to the MachineOperand rather than an index.
Definition at line 233 of file MachineInstr.h.
References findRegisterDefOperandIdx(), getOperand(), Idx, and TRI.
| int MachineInstr::findFirstPredOperandIdx | ( | ) | const |
findFirstPredOperandIdx() - Find the index of the first operand in the operand list that is used to represent the predicate. It returns -1 if none is found.
findFirstPredOperandIdx() - Find the index of the first operand in the operand list that is used to represent the predicate. It returns -1 if none is found.
Definition at line 708 of file MachineInstr.cpp.
References getDesc(), getNumOperands(), llvm::TargetInstrDesc::isPredicable(), llvm::TargetOperandInfo::isPredicate(), and llvm::TargetInstrDesc::OpInfo.
Referenced by llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::ARMBaseRegisterInfo::eliminateFrameIndex(), llvm::getInstrPredicate(), llvm::ARMBaseInstrInfo::getPredicate(), llvm::ARMBaseInstrInfo::isPredicated(), and llvm::ARMBaseInstrInfo::PredicateInstruction().
isRegTiedToUseOperand - Given the index of a register def operand, check if the register def is tied to a source operand, due to either two-address elimination or inline assembly constraints. Returns the first tied use operand index by reference is UseOpIdx is not null.
isRegTiedToUseOperand - Given the index of a register def operand, check if the register def is tied to a source operand, due to either two-address elimination or inline assembly constraints. Returns the first tied use operand index by reference is UseOpIdx is not null.
Definition at line 724 of file MachineInstr.cpp.
References getDesc(), llvm::MachineOperand::getImm(), llvm::InlineAsm::getNumOperandRegisters(), llvm::TargetInstrDesc::getNumOperands(), getNumOperands(), getOpcode(), getOperand(), llvm::TargetInstrDesc::getOperandConstraint(), llvm::MachineOperand::getReg(), Idx, llvm::TargetInstrInfo::INLINEASM, llvm::MachineOperand::isDef(), llvm::MachineOperand::isImm(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isUse(), llvm::InlineAsm::isUseOperandTiedToDef(), and llvm::TOI::TIED_TO.
isRegTiedToDefOperand - Return true if the use operand of the specified index is tied to an def operand. It also returns the def operand index by reference if DefOpIdx is not null.
isRegTiedToDefOperand - Return true if the operand of the specified index is a register use and it is tied to an def operand. It also returns the def operand index by reference.
Definition at line 783 of file MachineInstr.cpp.
References getDesc(), llvm::MachineOperand::getImm(), llvm::InlineAsm::getNumOperandRegisters(), llvm::TargetInstrDesc::getNumOperands(), getNumOperands(), getOpcode(), getOperand(), llvm::TargetInstrDesc::getOperandConstraint(), llvm::MachineOperand::getReg(), llvm::TargetInstrInfo::INLINEASM, llvm::MachineOperand::isImm(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isUse(), llvm::InlineAsm::isUseOperandTiedToDef(), and llvm::TOI::TIED_TO.
Referenced by llvm::LiveIntervals::addIntervalsForSpills(), addRegisterKilled(), FilterFoldedOps(), llvm::RegScavenger::forward(), isTwoAddrUse(), llvm::LiveIntervals::processImplicitDefs(), and UpdateKills().
| void MachineInstr::copyKillDeadInfo | ( | const MachineInstr * | MI | ) |
copyKillDeadInfo - Copies kill / dead operand properties from MI.
Definition at line 841 of file MachineInstr.cpp.
References getNumOperands(), getOperand(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isIdenticalTo(), llvm::MachineOperand::isKill(), llvm::MachineOperand::isReg(), llvm::MachineOperand::setIsDead(), and llvm::MachineOperand::setIsKill().
| void MachineInstr::copyPredicates | ( | const MachineInstr * | MI | ) |
copyPredicates - Copies predicate operand(s) from MI.
Definition at line 860 of file MachineInstr.cpp.
References addOperand(), getDesc(), getNumOperands(), getOperand(), llvm::TargetInstrDesc::isPredicable(), llvm::TargetOperandInfo::isPredicate(), and llvm::TargetInstrDesc::OpInfo.
| bool MachineInstr::addRegisterKilled | ( | unsigned | IncomingReg, | |
| const TargetRegisterInfo * | RegInfo, | |||
| bool | AddIfNotFound = false | |||
| ) |
addRegisterKilled - We have determined MI kills a register. Look for the operand that uses it and mark it as IsKill. If AddIfNotFound is true, add a implicit operand if it's not found. Returns true if the operand exists / is added.
Definition at line 1024 of file MachineInstr.cpp.
References addOperand(), llvm::SmallVectorImpl< T >::back(), llvm::MachineOperand::CreateReg(), llvm::SmallVectorImpl< T >::empty(), llvm::TargetRegisterInfo::getAliasSet(), getNumOperands(), getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isKill(), llvm::TargetRegisterInfo::isPhysicalRegister(), llvm::MachineOperand::isReg(), isRegTiedToDefOperand(), llvm::TargetRegisterInfo::isSubRegister(), llvm::TargetRegisterInfo::isSuperRegister(), llvm::MachineOperand::isUndef(), llvm::MachineOperand::isUse(), llvm::SmallVectorImpl< T >::pop_back(), llvm::SmallVectorImpl< T >::push_back(), Reg, RemoveOperand(), and llvm::MachineOperand::setIsKill().
Referenced by llvm::LiveVariables::addVirtualRegisterKilled().
| bool MachineInstr::addRegisterDead | ( | unsigned | IncomingReg, | |
| const TargetRegisterInfo * | RegInfo, | |||
| bool | AddIfNotFound = false | |||
| ) |
addRegisterDead - We have determined MI defined a register without a use. Look for the operand that defines it and mark it as IsDead. If AddIfNotFound is true, add a implicit operand if it's not found. Returns true if the operand exists / is added.
Definition at line 1082 of file MachineInstr.cpp.
References addOperand(), llvm::SmallVectorImpl< T >::back(), llvm::MachineOperand::CreateReg(), llvm::SmallVectorImpl< T >::empty(), llvm::TargetRegisterInfo::getAliasSet(), getNumOperands(), getOperand(), llvm::MachineOperand::getReg(), llvm::TargetRegisterInfo::getSubRegisters(), llvm::TargetRegisterInfo::getSuperRegisters(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isDef(), llvm::TargetRegisterInfo::isPhysicalRegister(), llvm::MachineOperand::isReg(), llvm::TargetRegisterInfo::isSubRegister(), llvm::TargetRegisterInfo::isSuperRegister(), llvm::SmallVectorImpl< T >::pop_back(), llvm::SmallVectorImpl< T >::push_back(), Reg, RemoveOperand(), and llvm::MachineOperand::setIsDead().
Referenced by llvm::LiveVariables::addVirtualRegisterDead().
| bool MachineInstr::isSafeToMove | ( | const TargetInstrInfo * | TII, | |
| bool & | SawStore | |||
| ) | const |
isSafeToMove - Return true if it is safe to move this instruction. If SawStore is set to true, it means that there is a store (or call) between the instruction's location and its intended destination.
isSafeToMove - Return true if it is safe to move this instruction. If SawStore is set to true, it means that there is a store (or call) between the instruction's location and its intended destination.
Definition at line 875 of file MachineInstr.cpp.
References llvm::TargetInstrDesc::hasUnmodeledSideEffects(), hasVolatileMemoryRef(), llvm::TargetInstrDesc::isCall(), llvm::TargetInstrInfo::isInvariantLoad(), llvm::TargetInstrDesc::isTerminator(), llvm::TargetInstrDesc::mayLoad(), and llvm::TargetInstrDesc::mayStore().
Referenced by isSafeToReMat().
| bool MachineInstr::isSafeToReMat | ( | const TargetInstrInfo * | TII, | |
| unsigned | DstReg | |||
| ) | const |
isSafeToReMat - Return true if it's safe to rematerialize the specified instruction which defined the specified register instead of copying it.
isSafeToReMat - Return true if it's safe to rematerialize the specified instruction which defined the specified register instead of copying it.
Definition at line 900 of file MachineInstr.cpp.
References getDesc(), getNumOperands(), getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isReg(), isSafeToMove(), llvm::TargetInstrInfo::isTriviallyReMaterializable(), and llvm::MachineOperand::isUse().
| bool MachineInstr::hasVolatileMemoryRef | ( | ) | const |
hasVolatileMemoryRef - Return true if this instruction may have a volatile memory reference, or if the information describing the memory reference is not available. Return false if it is known to have no volatile memory references.
hasVolatileMemoryRef - Return true if this instruction may have a volatile memory reference, or if the information describing the memory reference is not available. Return false if it is known to have no volatile memory references.
Definition at line 928 of file MachineInstr.cpp.
References E, llvm::TargetInstrDesc::hasUnmodeledSideEffects(), llvm::TargetInstrDesc::isCall(), llvm::TargetInstrDesc::mayLoad(), llvm::TargetInstrDesc::mayStore(), memoperands_begin(), memoperands_empty(), and memoperands_end().
Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), and isSafeToMove().
| void llvm::MachineInstr::print | ( | std::ostream * | OS, | |
| const TargetMachine * | TM | |||
| ) | const [inline] |
Definition at line 295 of file MachineInstr.h.
Referenced by llvm::XCoreRegisterInfo::eliminateFrameIndex(), llvm::MipsRegisterInfo::eliminateFrameIndex(), llvm::ScheduleDAGInstrs::getGraphNodeLabel(), llvm::operator<<(), print(), llvm::AsmPrinter::printInlineAsm(), and llvm::LiveIntervals::spillPhysRegAroundRegDefsUses().
| void MachineInstr::print | ( | std::ostream & | OS, | |
| const TargetMachine * | TM = 0 | |||
| ) | const |
| void llvm::MachineInstr::print | ( | std::ostream * | OS | ) | const [inline] |
| void llvm::MachineInstr::print | ( | raw_ostream * | OS, | |
| const TargetMachine * | TM | |||
| ) | const [inline] |
| void MachineInstr::print | ( | raw_ostream & | OS, | |
| const TargetMachine * | TM = 0 | |||
| ) | const |
Definition at line 959 of file MachineInstr.cpp.
References llvm::DebugLocTuple::Col, llvm::DebugLocTuple::CompileUnit, llvm::StringRef::empty(), llvm::MachineMemOperand::getAlignment(), llvm::MachineFunction::getDebugLocTuple(), getDesc(), llvm::DICompileUnit::getDirectory(), llvm::DICompileUnit::getFilename(), llvm::Value::getName(), llvm::TargetInstrDesc::getName(), getNumOperands(), llvm::MachineMemOperand::getOffset(), getOperand(), llvm::MachineBasicBlock::getParent(), getParent(), llvm::MachineMemOperand::getSize(), llvm::MachineMemOperand::getValue(), llvm::MachineMemOperand::isLoad(), llvm::MachineMemOperand::isStore(), llvm::DebugLoc::isUnknown(), llvm::MachineMemOperand::isVolatile(), llvm::DebugLocTuple::Line, memoperands_begin(), memoperands_empty(), memoperands_end(), MF, llvm::MachineOperand::print(), and V.
| void llvm::MachineInstr::print | ( | raw_ostream * | OS | ) | const [inline] |
| void MachineInstr::dump | ( | ) | const |
Definition at line 950 of file MachineInstr.cpp.
References llvm::cerr().
Referenced by llvm::SPUInstrInfo::AnalyzeBranch(), llvm::ScheduleDAGInstrs::dumpNode(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), and llvm::ExactHazardRecognizer::getHazardType().
| void MachineInstr::addOperand | ( | const MachineOperand & | Op | ) |
addOperand - Add the specified operand to the instruction. If it is an implicit operand, it is added to the end of the operand list. If it is an explicit operand it is added at the end of the explicit operand list (before the first implicit operand).
addOperand - Add the specified operand to the instruction. If it is an implicit operand, it is added to the end of the operand list. If it is an explicit operand it is added at the end of the explicit operand list (before the first implicit operand).
Definition at line 474 of file MachineInstr.cpp.
References Op.
Referenced by llvm::MachineInstrBuilder::addConstantPoolIndex(), llvm::MachineInstrBuilder::addExternalSymbol(), llvm::MachineInstrBuilder::addFPImm(), llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addGlobalAddress(), llvm::MachineInstrBuilder::addImm(), llvm::LiveIntervals::addIntervalsForSpills(), llvm::MachineInstrBuilder::addJumpTableIndex(), llvm::MachineInstrBuilder::addMBB(), llvm::MachineInstrBuilder::addMetadata(), llvm::MachineInstrBuilder::addOperand(), llvm::MachineInstrBuilder::addReg(), addRegisterDead(), addRegisterKilled(), copyPredicates(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::ScheduleDAGSDNodes::EmitNode(), llvm::ARMBaseInstrInfo::PredicateInstruction(), PropagateDeadness(), and llvm::LiveVariables::runOnMachineFunction().
| void llvm::MachineInstr::setDesc | ( | const TargetInstrDesc & | tid | ) | [inline] |
setDesc - Replace the instruction descriptor (thus opcode) of the current instruction with a new one.
Definition at line 319 of file MachineInstr.h.
Referenced by llvm::X86InstrInfo::commuteInstruction(), llvm::MSP430RegisterInfo::eliminateFrameIndex(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::SystemZRegisterInfo::eliminateFrameIndex(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::ARMBaseInstrInfo::PredicateInstruction(), llvm::LiveIntervals::processImplicitDefs(), llvm::rewriteARMFrameIndex(), llvm::rewriteT2FrameIndex(), and llvm::X86InstrInfo::unfoldMemoryOperand().
| void llvm::MachineInstr::setDebugLoc | ( | const DebugLoc | dl | ) | [inline] |
setDebugLoc - Replace current source information with new such. Avoid using this, the constructor argument is preferable.
Definition at line 324 of file MachineInstr.h.
| void MachineInstr::RemoveOperand | ( | unsigned | OpNo | ) |
RemoveOperand - Erase an operand from an instruction, leaving it with one fewer operand than it started with.
RemoveOperand - Erase an operand from an instruction, leaving it with one fewer operand than it started with.
Definition at line 557 of file MachineInstr.cpp.
Referenced by addRegisterDead(), addRegisterKilled(), llvm::Thumb1RegisterInfo::eliminateFrameIndex(), llvm::BlackfinRegisterInfo::eliminateFrameIndex(), llvm::LiveIntervals::processImplicitDefs(), removeOperands(), llvm::rewriteARMFrameIndex(), and llvm::rewriteT2FrameIndex().
| void MachineInstr::addMemOperand | ( | MachineFunction & | MF, | |
| const MachineMemOperand & | MO | |||
| ) |
addMemOperand - Add a MachineMemOperand to the machine instruction, referencing arbitrary storage.
addMemOperand - Add a MachineMemOperand to the machine instruction, referencing arbitrary storage.
Definition at line 593 of file MachineInstr.cpp.
Referenced by llvm::MachineInstrBuilder::addMemOperand(), llvm::ScheduleDAG::AddMemOperand(), and llvm::TargetInstrInfo::foldMemoryOperand().
| void MachineInstr::clearMemOperands | ( | MachineFunction & | MF | ) |
clearMemOperands - Erase all of this MachineInstr's MachineMemOperands.
Definition at line 599 of file MachineInstr.cpp.
Referenced by llvm::MachineFunction::DeleteMachineInstr().
friend struct ilist_traits< MachineInstr > [friend] |
Definition at line 56 of file MachineInstr.h.
friend struct ilist_traits< MachineBasicBlock > [friend] |
Definition at line 57 of file MachineInstr.h.
friend class MachineFunction [friend] |
Definition at line 99 of file MachineInstr.h.