|
LLVM
10.0.0
|
#include "Target/AArch64/AArch64InstrInfo.h"
Static Public Member Functions | |
| static bool | isGPRZero (const MachineInstr &MI) |
| Does this instruction set its full destination register to zero? More... | |
| static bool | isGPRCopy (const MachineInstr &MI) |
| Does this instruction rename a GPR without modifying bits? More... | |
| static bool | isFPRCopy (const MachineInstr &MI) |
| Does this instruction rename an FPR without modifying bits? More... | |
| static bool | isLdStPairSuppressed (const MachineInstr &MI) |
| Return true if pairing the given load or store is hinted to be unprofitable. More... | |
| static bool | isStridedAccess (const MachineInstr &MI) |
| Return true if the given load or store is a strided memory access. More... | |
| static bool | isUnscaledLdSt (unsigned Opc) |
| Return true if this is an unscaled load/store. More... | |
| static bool | isUnscaledLdSt (MachineInstr &MI) |
| static Optional< unsigned > | getUnscaledLdSt (unsigned Opc) |
| Returns the unscaled load/store for the scaled load/store opcode, if there is a corresponding unscaled variant available. More... | |
| static int | getMemScale (unsigned Opc) |
| Scaling factor for (scaled or unscaled) load or store. More... | |
| static int | getMemScale (const MachineInstr &MI) |
| static unsigned | getLoadStoreImmIdx (unsigned Opc) |
| Returns the index for the immediate for a given instruction. More... | |
| static bool | isPairableLdStInst (const MachineInstr &MI) |
| Return true if pairing the given load or store may be paired with another. More... | |
| static unsigned | convertToFlagSettingOpc (unsigned Opc, bool &Is64Bit) |
| Return the opcode that set flags when possible. More... | |
| static void | suppressLdStPair (MachineInstr &MI) |
| Hint that pairing the given load or store is unprofitable. More... | |
| static bool | getMemOpInfo (unsigned Opcode, unsigned &Scale, unsigned &Width, int64_t &MinOffset, int64_t &MaxOffset) |
Returns true if opcode Opc is a memory operation. More... | |
| static bool | isFalkorShiftExtFast (const MachineInstr &MI) |
| Returns true if the instruction has a shift by immediate that can be executed in one cycle less. More... | |
| static bool | isSEHInstruction (const MachineInstr &MI) |
| Return true if the instructions is a SEH instruciton used for unwinding on Windows. More... | |
Protected Member Functions | |
| Optional< DestSourcePair > | isCopyInstrImpl (const MachineInstr &MI) const override |
| If the specific machine instruction is an instruction that moves/copies value from one register to another register return destination and source registers as machine operands. More... | |
Definition at line 38 of file AArch64InstrInfo.h.
|
explicit |
Definition at line 69 of file AArch64InstrInfo.cpp.
|
override |
Definition at line 209 of file AArch64InstrInfo.cpp.
Referenced by isSubregFoldable().
|
override |
analyzeCompare - For a comparison instruction, return the source registers in SrcReg and SrcReg2, and the value it compares against in CmpValue.
Return true if the comparison instruction can be analyzed.
Definition at line 987 of file AArch64InstrInfo.cpp.
References assert(), llvm::AArch64_AM::decodeLogicalImmediate(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), and llvm::MachineOperand::isReg().
|
override |
Definition at line 932 of file AArch64InstrInfo.cpp.
References assert(), getMemOperandWithOffsetWidth(), getRegisterInfo(), llvm::MachineInstr::hasOrderedMemoryRef(), llvm::MachineInstr::hasUnmodeledSideEffects(), llvm::MachineOperand::isIdenticalTo(), llvm::MachineInstr::mayLoadOrStore(), and TRI.
Referenced by getRegisterInfo().
|
override |
Definition at line 6285 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::add(), llvm::MachineInstrBuilder::addCFIIndex(), llvm::MachineFunction::addFrameInst(), llvm::MachineInstrBuilder::addImm(), llvm::MachineBasicBlock::addLiveIn(), llvm::MachineInstrBuilder::addReg(), llvm::any_of(), assert(), llvm::MachineBasicBlock::begin(), llvm::ARCISD::BL, llvm::BuildMI(), llvm::outliner::OutlinedFunction::Candidates, llvm::MCCFIInstruction::createDefCfaOffset(), llvm::MCCFIInstruction::createOffset(), llvm::RegState::Define, llvm::MachineBasicBlock::end(), llvm::StringRef::equals(), llvm::StringRef::equals_lower(), llvm::MachineInstr::eraseFromParent(), llvm::outliner::OutlinedFunction::FrameConstructionID, llvm::MachineInstr::FrameSetup, llvm::MCRegisterInfo::getDwarfRegNum(), llvm::Function::getFnAttribute(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::MachineFunction::getSubtarget(), llvm::Attribute::getValueAsString(), llvm::Function::hasFnAttribute(), llvm::MachineBasicBlock::insert(), llvm::MachineBasicBlock::instr_begin(), llvm::MachineBasicBlock::instr_end(), MachineOutlinerDefault, MachineOutlinerTailCall, MachineOutlinerThunk, MI, llvm::ARCISD::RET, llvm::MachineInstrBuilder::setMIFlags(), signOutlinedFunction(), and llvm::RegState::Undef.
|
override |
Definition at line 497 of file AArch64InstrInfo.cpp.
References canFoldIntoCSel(), llvm::MachineBasicBlock::getParent(), llvm::MachineRegisterInfo::getRegClass(), llvm::MachineFunction::getRegInfo(), MRI, and llvm::ArrayRef< T >::size().
Return the opcode that set flags when possible.
The caller is responsible for ensuring the opc has a flag setting equivalent.
Definition at line 1838 of file AArch64InstrInfo.cpp.
References llvm_unreachable.
Referenced by getMemScale().
| void AArch64InstrInfo::copyGPRRegTuple | ( | MachineBasicBlock & | MBB, |
| MachineBasicBlock::iterator | I, | ||
| DebugLoc | DL, | ||
| unsigned | DestReg, | ||
| unsigned | SrcReg, | ||
| bool | KillSrc, | ||
| unsigned | Opcode, | ||
| unsigned | ZeroReg, | ||
| llvm::ArrayRef< unsigned > | Indices | ||
| ) | const |
Definition at line 2476 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), AddSubReg(), assert(), llvm::BuildMI(), llvm::RegState::Define, llvm::MCRegisterInfo::getEncodingValue(), llvm::getKillRegState(), getRegisterInfo(), llvm::ArrayRef< T >::size(), SubReg, and TRI.
Referenced by copyPhysReg(), and getMemScale().
|
override |
Definition at line 2501 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), assert(), llvm::BuildMI(), contains(), copyGPRRegTuple(), copyPhysRegTuple(), llvm::RegState::Define, llvm::getKillRegState(), llvm::TargetRegisterInfo::getMatchingSuperReg(), getRegisterInfo(), llvm::AArch64_AM::getShifterImm(), llvm::RegState::Implicit, llvm_unreachable, llvm::AArch64_AM::LSL, TRI, and llvm::RegState::Undef.
Referenced by getMemScale().
| void AArch64InstrInfo::copyPhysRegTuple | ( | MachineBasicBlock & | MBB, |
| MachineBasicBlock::iterator | I, | ||
| const DebugLoc & | DL, | ||
| MCRegister | DestReg, | ||
| MCRegister | SrcReg, | ||
| bool | KillSrc, | ||
| unsigned | Opcode, | ||
| llvm::ArrayRef< unsigned > | Indices | ||
| ) | const |
Definition at line 2449 of file AArch64InstrInfo.cpp.
References assert(), getRegisterInfo(), llvm::ArrayRef< T >::size(), SubReg, and TRI.
Referenced by copyPhysReg(), and getMemScale().
|
override |
Definition at line 5367 of file AArch64InstrInfo.cpp.
References llvm::BitmaskEnumDetail::Mask(), and llvm::AArch64II::MO_FRAGMENT.
|
override |
Definition at line 6590 of file AArch64InstrInfo.cpp.
References llvm::MachineOperand::CreateImm(), llvm::TargetInstrInfo::describeLoadedValue(), describeORRLoadedValue(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getMF(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::MachineFunction::getSubtarget(), llvm::MachineOperand::isImm(), llvm::MCRegisterInfo::isSuperRegisterEq(), llvm::None, Reg, and TRI.
|
override |
Definition at line 1469 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addDef(), llvm::MachineInstrBuilder::addGlobalAddress(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMBB(), llvm::MachineInstrBuilder::addMemOperand(), llvm::MachineInstrBuilder::addReg(), llvm::MachineInstrBuilder::addUse(), llvm::AArch64ISD::ADR, llvm::AArch64ISD::ADRP, assert(), llvm::MachineBasicBlock::begin(), llvm::BuildMI(), llvm::ISD::CATCHRET, llvm::RegState::Dead, llvm::RegState::Define, llvm::MachineBasicBlock::erase(), llvm::MachineInstr::FrameDestroy, llvm::MCInstrInfo::get(), llvm::MachineInstr::getDebugLoc(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), llvm::MachineFunction::getSubtarget(), llvm::MachineFunction::getTarget(), llvm::RegState::Implicit, llvm::RegState::Kill, llvm::CodeModel::Large, llvm::AArch64ISD::LOADgot, llvm::MachineInstr::memoperands_begin(), llvm::AArch64II::MO_G0, llvm::AArch64II::MO_G1, llvm::AArch64II::MO_G2, llvm::AArch64II::MO_G3, llvm::AArch64II::MO_GOT, llvm::AArch64II::MO_NC, llvm::AArch64II::MO_PAGE, llvm::AArch64II::MO_PAGEOFF, Reg, TII, llvm::CodeModel::Tiny, llvm::SystemZISD::TM, and TRI.
|
override |
Definition at line 3239 of file AArch64InstrInfo.cpp.
References assert(), llvm::MachineRegisterInfo::constrainRegClass(), contains(), llvm::ISD::FrameIndex, llvm::TargetRegisterInfo::getMatchingSuperReg(), llvm::TargetRegisterInfo::getMinimalPhysRegClass(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), llvm::MachineRegisterInfo::getRegClass(), getRegClass(), llvm::MachineFunction::getRegInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::TargetRegisterInfo::getRegSizeInBits(), llvm::MachineOperand::getSubReg(), llvm::MachineFunction::getSubtarget(), llvm::MachineInstr::isCopy(), llvm::MachineInstr::isFullCopy(), llvm::MachineOperand::isKill(), llvm::Register::isPhysicalRegister(), llvm::MachineOperand::isUndef(), llvm::Register::isVirtualRegister(), loadRegFromStackSlot(), Reg, llvm::MachineOperand::setIsUndef(), llvm::MachineOperand::setSubReg(), llvm::ArrayRef< T >::size(), storeRegToStackSlot(), and TRI.
Referenced by isSubregFoldable().
|
override |
When getMachineCombinerPatterns() finds patterns, this function generates the instructions that could replace the original code sequence.
When getMachineCombinerPatterns() finds potential patterns, this function generates the instructions that could replace the original code sequence.
Definition at line 4357 of file AArch64InstrInfo.cpp.
References Accumulator, add(), llvm::MachineInstrBuilder::add(), llvm::MachineInstrBuilder::addImm(), llvm::BuildMI(), llvm::MachineRegisterInfo::createVirtualRegister(), llvm::FMLAv1i32_indexed_OP1, llvm::FMLAv1i32_indexed_OP2, llvm::FMLAv1i64_indexed_OP1, llvm::FMLAv1i64_indexed_OP2, llvm::FMLAv2f32_OP1, llvm::FMLAv2f32_OP2, llvm::FMLAv2f64_OP1, llvm::FMLAv2f64_OP2, llvm::FMLAv2i32_indexed_OP1, llvm::FMLAv2i32_indexed_OP2, llvm::FMLAv2i64_indexed_OP1, llvm::FMLAv2i64_indexed_OP2, llvm::FMLAv4f16_OP1, llvm::FMLAv4f16_OP2, llvm::FMLAv4f32_OP1, llvm::FMLAv4f32_OP2, llvm::FMLAv4i16_indexed_OP1, llvm::FMLAv4i16_indexed_OP2, llvm::FMLAv4i32_indexed_OP1, llvm::FMLAv4i32_indexed_OP2, llvm::FMLAv8f16_OP1, llvm::FMLAv8f16_OP2, llvm::FMLAv8i16_indexed_OP1, llvm::FMLAv8i16_indexed_OP2, llvm::FMLSv1i32_indexed_OP2, llvm::FMLSv1i64_indexed_OP2, llvm::FMLSv2f32_OP1, llvm::FMLSv2f32_OP2, llvm::FMLSv2f64_OP1, llvm::FMLSv2f64_OP2, llvm::FMLSv2i32_indexed_OP1, llvm::FMLSv2i32_indexed_OP2, llvm::FMLSv2i64_indexed_OP1, llvm::FMLSv2i64_indexed_OP2, llvm::FMLSv4f16_OP1, llvm::FMLSv4f16_OP2, llvm::FMLSv4f32_OP1, llvm::FMLSv4f32_OP2, llvm::FMLSv4i16_indexed_OP1, llvm::FMLSv4i16_indexed_OP2, llvm::FMLSv4i32_indexed_OP1, llvm::FMLSv4i32_indexed_OP2, llvm::FMLSv8f16_OP1, llvm::FMLSv8f16_OP2, llvm::FMLSv8i16_indexed_OP1, llvm::FMLSv8i16_indexed_OP2, llvm::FMULADDD_OP1, llvm::FMULADDD_OP2, llvm::FMULADDH_OP1, llvm::FMULADDH_OP2, llvm::FMULADDS_OP1, llvm::FMULADDS_OP2, llvm::FMULSUBD_OP1, llvm::FMULSUBD_OP2, llvm::FMULSUBH_OP1, llvm::FMULSUBH_OP2, llvm::FMULSUBS_OP1, llvm::FMULSUBS_OP2, llvm::FNMULSUBD_OP1, llvm::FNMULSUBH_OP1, llvm::FNMULSUBS_OP1, llvm::TargetInstrInfo::genAlternativeCodeSequence(), genFusedMultiply(), genFusedMultiplyAcc(), genFusedMultiplyAccNeg(), genFusedMultiplyIdx(), genFusedMultiplyIdxNeg(), genMaddR(), llvm::MCInstrInfo::get(), llvm::MachineInstr::getDebugLoc(), llvm::MachineOperand::getImm(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), llvm::MachineFunction::getRegInfo(), llvm::MachineFunction::getSubtarget(), Indexed, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::insert(), llvm::MachineOperand::isImm(), llvm::ISD::MUL, llvm::MULADDv16i8_OP1, llvm::MULADDv16i8_OP2, llvm::MULADDv2i32_indexed_OP1, llvm::MULADDv2i32_indexed_OP2, llvm::MULADDv2i32_OP1, llvm::MULADDv2i32_OP2, llvm::MULADDv4i16_indexed_OP1, llvm::MULADDv4i16_indexed_OP2, llvm::MULADDv4i16_OP1, llvm::MULADDv4i16_OP2, llvm::MULADDv4i32_indexed_OP1, llvm::MULADDv4i32_indexed_OP2, llvm::MULADDv4i32_OP1, llvm::MULADDv4i32_OP2, llvm::MULADDv8i16_indexed_OP1, llvm::MULADDv8i16_indexed_OP2, llvm::MULADDv8i16_OP1, llvm::MULADDv8i16_OP2, llvm::MULADDv8i8_OP1, llvm::MULADDv8i8_OP2, llvm::MULADDW_OP1, llvm::MULADDW_OP2, llvm::MULADDWI_OP1, llvm::MULADDX_OP1, llvm::MULADDX_OP2, llvm::MULADDXI_OP1, llvm::MULSUBv16i8_OP1, llvm::MULSUBv16i8_OP2, llvm::MULSUBv2i32_indexed_OP1, llvm::MULSUBv2i32_indexed_OP2, llvm::MULSUBv2i32_OP1, llvm::MULSUBv2i32_OP2, llvm::MULSUBv4i16_indexed_OP1, llvm::MULSUBv4i16_indexed_OP2, llvm::MULSUBv4i16_OP1, llvm::MULSUBv4i16_OP2, llvm::MULSUBv4i32_indexed_OP1, llvm::MULSUBv4i32_indexed_OP2, llvm::MULSUBv4i32_OP1, llvm::MULSUBv4i32_OP2, llvm::MULSUBv8i16_indexed_OP1, llvm::MULSUBv8i16_indexed_OP2, llvm::MULSUBv8i16_OP1, llvm::MULSUBv8i16_OP2, llvm::MULSUBv8i8_OP1, llvm::MULSUBv8i8_OP2, llvm::MULSUBW_OP1, llvm::MULSUBW_OP2, llvm::MULSUBWI_OP1, llvm::MULSUBX_OP1, llvm::MULSUBX_OP2, llvm::MULSUBXI_OP1, llvm::AArch64_AM::processLogicalImmediate(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SignExtend64(), and TII.
|
override |
Definition at line 188 of file AArch64InstrInfo.cpp.
References B, llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm_unreachable.
Referenced by isSubregFoldable().
|
override |
GetInstSize - Return the number of bytes of code the specified instruction may be.
This returns the maximum number of bytes.
Definition at line 76 of file AArch64InstrInfo.cpp.
References assert(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getImm(), llvm::TargetMachine::getMCAsmInfo(), llvm::StackMapOpers::getNumPatchBytes(), llvm::PatchPointOpers::getNumPatchBytes(), llvm::MCInstrDesc::getOpcode(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getSymbolName(), llvm::MachineFunction::getTarget(), llvm::ISD::INLINEASM, llvm::ISD::INLINEASM_BR, llvm::MachineInstr::isMetaInstruction(), and llvm::AArch64ISD::TLSDESC_CALLSEQ.
Referenced by getOutliningCandidateInfo(), and getRegisterInfo().
Returns the index for the immediate for a given instruction.
Definition at line 1773 of file AArch64InstrInfo.cpp.
Referenced by getMemScale(), and llvm::isAArch64FrameOffsetLegal().
|
override |
Return true when there is potentially a faster code sequence for an instruction chain ending in Root.
Return true when there is potentially a faster code sequence for an instruction chain ending in Root.
All potential patterns are listed in the Patterns array.
All potential patterns are listed in the Pattern vector. Pattern should be sorted in priority order since the pattern evaluator stops checking as soon as it finds a faster sequence.
Definition at line 4134 of file AArch64InstrInfo.cpp.
References getFMAPatterns(), llvm::TargetInstrInfo::getMachineCombinerPatterns(), and getMaddPatterns().
| MachineOperand & AArch64InstrInfo::getMemOpBaseRegImmOfsOffsetOperand | ( | MachineInstr & | LdSt | ) | const |
Return the immediate offset of the base register in a load/store LdSt.
Definition at line 2039 of file AArch64InstrInfo.cpp.
References assert(), llvm::MachineInstr::getNumExplicitOperands(), llvm::MachineInstr::getOperand(), and llvm::MachineInstr::mayLoadOrStore().
Referenced by getMemScale(), and getOutliningType().
|
override |
Definition at line 1981 of file AArch64InstrInfo.cpp.
References getMemOperandWithOffsetWidth(), and llvm::MachineInstr::mayLoadOrStore().
Referenced by getMemScale(), and getOutliningCandidateInfo().
| bool AArch64InstrInfo::getMemOperandWithOffsetWidth | ( | const MachineInstr & | MI, |
| const MachineOperand *& | BaseOp, | ||
| int64_t & | Offset, | ||
| unsigned & | Width, | ||
| const TargetRegisterInfo * | TRI | ||
| ) | const |
Definition at line 1992 of file AArch64InstrInfo.cpp.
References assert(), llvm::MachineOperand::getImm(), getMemOpInfo(), llvm::MachineInstr::getNumExplicitOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::isFI(), llvm::MachineOperand::isImm(), llvm::MachineOperand::isReg(), and llvm::MachineInstr::mayLoadOrStore().
Referenced by areMemAccessesTriviallyDisjoint(), getMemOperandWithOffset(), getMemScale(), and getOutliningType().
|
static |
Returns true if opcode Opc is a memory operation.
If it is, set Scale, Width, MinOffset, and MaxOffset accordingly.
For unscaled instructions, Scale is set to 1.
Definition at line 2046 of file AArch64InstrInfo.cpp.
Referenced by getMemOperandWithOffsetWidth(), getMemScale(), getOutliningCandidateInfo(), getOutliningType(), and llvm::isAArch64FrameOffsetLegal().
|
static |
Scaling factor for (scaled or unscaled) load or store.
Definition at line 2241 of file AArch64InstrInfo.cpp.
References llvm_unreachable.
Referenced by getMemScale(), getPrePostIndexedMemOpInfo(), isLdOffsetInRangeOfSt(), isUnscaledLdSt(), scaleOffset(), and shouldClusterFI().
|
inlinestatic |
Definition at line 94 of file AArch64InstrInfo.h.
References convertToFlagSettingOpc(), copyGPRRegTuple(), copyPhysReg(), copyPhysRegTuple(), getLoadStoreImmIdx(), getMemOpBaseRegImmOfsOffsetOperand(), getMemOperandWithOffset(), getMemOperandWithOffsetWidth(), getMemOpInfo(), getMemScale(), llvm::MachineInstr::getOpcode(), I, isCandidateToMergeOrPair(), isPairableLdStInst(), loadRegFromStackSlot(), shouldClusterMemOps(), storeRegToStackSlot(), suppressLdStPair(), and TRI.
|
override |
Definition at line 3555 of file AArch64InstrInfo.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), and llvm::MCInst::setOpcode().
|
override |
Definition at line 5616 of file AArch64InstrInfo.cpp.
References llvm::all_of(), llvm::any_of(), assert(), llvm::LiveRegUnits::available(), llvm::outliner::Candidate::back(), llvm::ARCISD::BL, C, llvm::for_each(), llvm::outliner::Candidate::front(), llvm::MachineFunction::getFunction(), getInstSizeInBytes(), getMemOperandWithOffset(), getMemOpInfo(), llvm::outliner::Candidate::getMF(), llvm::MachineInstr::getOpcode(), llvm::MachineOperand::getReg(), getRegisterInfo(), HasCalls, llvm::Function::hasFnAttribute(), llvm::outliner::Candidate::initLRU(), llvm::MachineInstr::isCall(), llvm::MachineOperand::isReg(), llvm::outliner::Candidate::LRU, MachineOutlinerDefault, MachineOutlinerNoLRSave, MachineOutlinerRegSave, MachineOutlinerTailCall, MachineOutlinerThunk, llvm::MachineInstr::mayLoadOrStore(), MI, llvm::MachineInstr::modifiesRegister(), outliningCandidatesSigningKeyConsensus(), outliningCandidatesSigningScopeConsensus(), outliningCandidatesV8_3OpsConsensus(), llvm::MachineInstr::readsRegister(), llvm::remove_if(), llvm::outliner::Candidate::setCallInfo(), TRI, UnsafeRegsDead, and llvm::outliner::Candidate::UsedInSequence.
|
override |
Definition at line 6060 of file AArch64InstrInfo.cpp.
References llvm::AArch64ISD::ADRP, assert(), llvm::ARCISD::BL, Callee, llvm::SmallPtrSetImpl< PtrType >::count(), llvm::dyn_cast(), llvm::MachineFunction::getFrameInfo(), llvm::MachineOperand::getImm(), llvm::MachineFunction::getInfo(), llvm::AArch64FunctionInfo::getLOHRelated(), llvm::MachineModuleInfo::getMachineFunction(), getMemOpBaseRegImmOfsOffsetOperand(), getMemOperandWithOffsetWidth(), getMemOpInfo(), llvm::MachineFunction::getMMI(), llvm::Value::getName(), llvm::MachineFrameInfo::getNumObjects(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), getRegisterInfo(), llvm::MachineFrameInfo::getStackSize(), llvm::outliner::Illegal, llvm::outliner::Invisible, llvm::MachineInstr::isCall(), llvm::MachineFrameInfo::isCalleeSavedInfoValid(), llvm::MachineInstr::isDebugInstr(), llvm::MachineOperand::isImm(), llvm::MachineInstr::isIndirectDebugValue(), llvm::MachineInstr::isKill(), llvm::MachineInstr::isPosition(), llvm::MachineOperand::isReg(), llvm::MachineInstr::isTerminator(), llvm::LegalizeActions::Legal, llvm::outliner::LegalTerminator, MI, llvm::MachineInstr::modifiesRegister(), llvm::MachineInstr::operands(), llvm::MachineInstr::readsRegister(), llvm::MachineOperand::setImm(), and llvm::MachineBasicBlock::succ_empty().
|
inline |
getRegisterInfo - TargetInstrInfo is a superset of MRegister info.
As such, whenever a client has an instance of instruction info, it should always be able to get register info as well (through this method).
Definition at line 48 of file AArch64InstrInfo.h.
References areMemAccessesTriviallyDisjoint(), llvm::ISD::FrameIndex, getInstSizeInBytes(), isAsCheapAsAMove(), isCoalescableExtInstr(), isFPRCopy(), isGPRCopy(), isGPRZero(), isLdStPairSuppressed(), isLoadFromStackSlot(), isStoreToStackSlot(), isStridedAccess(), isUnscaledLdSt(), and MI.
Referenced by areMemAccessesTriviallyDisjoint(), canInstrSubstituteCmpInstr(), copyGPRRegTuple(), copyPhysReg(), copyPhysRegTuple(), getOutliningCandidateInfo(), getOutliningType(), llvm::AArch64Subtarget::getRegisterInfo(), isCandidateToMergeOrPair(), isMBBSafeToOutlineFrom(), loadRegFromStackSlot(), optimizeCondBranch(), and storeRegToStackSlot().
|
override |
Definition at line 5385 of file AArch64InstrInfo.cpp.
References llvm::makeArrayRef(), llvm::AArch64II::MO_COFFSTUB, llvm::AArch64II::MO_DLLIMPORT, llvm::AArch64II::MO_GOT, llvm::AArch64II::MO_NC, llvm::AArch64II::MO_PREL, llvm::AArch64II::MO_S, llvm::AArch64II::MO_TAGGED, and llvm::AArch64II::MO_TLS.
|
override |
Definition at line 5373 of file AArch64InstrInfo.cpp.
References llvm::makeArrayRef(), llvm::AArch64II::MO_G0, llvm::AArch64II::MO_G1, llvm::AArch64II::MO_G2, llvm::AArch64II::MO_G3, llvm::AArch64II::MO_HI12, llvm::AArch64II::MO_PAGE, and llvm::AArch64II::MO_PAGEOFF.
|
override |
Definition at line 5401 of file AArch64InstrInfo.cpp.
References llvm::makeArrayRef(), llvm::MOStridedAccess, and llvm::MOSuppressPair.
Returns the unscaled load/store for the scaled load/store opcode, if there is a corresponding unscaled variant available.
Definition at line 1743 of file AArch64InstrInfo.cpp.
Referenced by llvm::isAArch64FrameOffsetLegal(), and isUnscaledLdSt().
|
override |
Definition at line 389 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addMBB(), assert(), B, llvm::BuildMI(), and llvm::ArrayRef< T >::empty().
|
override |
Definition at line 6418 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), assert(), llvm::ARCISD::BL, llvm::BuildMI(), llvm::outliner::Candidate::CallConstructionID, llvm::RegState::Define, llvm::MachineFunction::getName(), llvm::Module::getNamedValue(), llvm::MachineBasicBlock::insert(), MachineOutlinerNoLRSave, MachineOutlinerRegSave, MachineOutlinerTailCall, MachineOutlinerThunk, and Reg.
|
override |
Definition at line 539 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), assert(), llvm::BuildMI(), canFoldIntoCSel(), llvm::MachineRegisterInfo::clearKillFlags(), llvm::MachineRegisterInfo::constrainRegClass(), llvm::AArch64_AM::encodeLogicalImmediate(), llvm::AArch64CC::EQ, llvm::AArch64CC::getInvertedCondCode(), llvm::MachineBasicBlock::getParent(), getReg(), llvm::MachineFunction::getRegInfo(), llvm_unreachable, MRI, llvm::AArch64CC::NE, and llvm::ArrayRef< T >::size().
|
override |
Definition at line 6515 of file AArch64InstrInfo.cpp.
References assert(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isImm(), llvm::MachineOperand::isReg(), LLVM_FALLTHROUGH, and llvm::None.
|
override |
Definition at line 685 of file AArch64InstrInfo.cpp.
References canBeExpandedToORR(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::AArch64Subtarget::hasCustomCheapAsMoveHandling(), llvm::AArch64Subtarget::hasExynosCheapAsMoveHandling(), llvm::AArch64Subtarget::hasZeroCycleZeroingFP(), llvm::AArch64Subtarget::hasZeroCycleZeroingGP(), llvm::MachineInstr::isAsCheapAsAMove(), and llvm_unreachable.
Referenced by getRegisterInfo().
|
override |
Return true when Inst is associative and commutative so that it can be reassociated.
Definition at line 3713 of file AArch64InstrInfo.cpp.
References llvm::MachineInstr::getOpcode(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), llvm::MachineFunction::getTarget(), llvm::TargetMachine::Options, and llvm::TargetOptions::UnsafeFPMath.
|
override |
BranchOpc bytes is capable of jumping to a position BrOffset bytes away. Definition at line 179 of file AArch64InstrInfo.cpp.
References assert(), llvm::tgtok::Bits, getBranchDisplacementBits(), and llvm::isIntN().
Referenced by isSubregFoldable().
| bool AArch64InstrInfo::isCandidateToMergeOrPair | ( | const MachineInstr & | MI | ) | const |
Return true if this is a load/store that can be potentially paired/merged.
Definition at line 1928 of file AArch64InstrInfo.cpp.
References assert(), llvm::MachineInstr::FrameDestroy, llvm::MachineInstr::FrameSetup, llvm::MachineInstr::getFlag(), llvm::MachineFunction::getFunction(), llvm::TargetMachine::getMCAsmInfo(), llvm::MachineInstr::getMF(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), getRegisterInfo(), llvm::MachineFunction::getTarget(), llvm::MachineInstr::hasOrderedMemoryRef(), llvm::MachineOperand::isFI(), llvm::MachineOperand::isImm(), isLdStPairSuppressed(), llvm::MachineOperand::isReg(), llvm::MachineInstr::modifiesRegister(), llvm::Function::needsUnwindTableEntry(), TRI, and llvm::MCAsmInfo::usesWindowsCFI().
Referenced by getMemScale(), and shouldClusterMemOps().
|
override |
Definition at line 912 of file AArch64InstrInfo.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::getReg().
Referenced by getRegisterInfo().
|
overrideprotected |
If the specific machine instruction is an instruction that moves/copies value from one register to another register return destination and source registers as machine operands.
Definition at line 6496 of file AArch64InstrInfo.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), and llvm::None.
|
static |
Returns true if the instruction has a shift by immediate that can be executed in one cycle less.
Definition at line 764 of file AArch64InstrInfo.cpp.
References llvm::AArch64_AM::ASR, llvm::AArch64_AM::getArithExtendType(), llvm::AArch64_AM::getArithShiftValue(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::AArch64_AM::getShiftType(), llvm::AArch64_AM::getShiftValue(), llvm::AArch64_AM::LSL, llvm::AArch64_AM::UXTB, llvm::AArch64_AM::UXTH, llvm::AArch64_AM::UXTW, and llvm::AArch64_AM::UXTX.
|
static |
Does this instruction rename an FPR without modifying bits?
Definition at line 1631 of file AArch64InstrInfo.cpp.
References assert(), contains(), llvm::MachineInstr::getDesc(), llvm::MCInstrDesc::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), and llvm::MachineOperand::isReg().
Referenced by getRegisterInfo().
|
override |
|
static |
Does this instruction rename a GPR without modifying bits?
Definition at line 1601 of file AArch64InstrInfo.cpp.
References assert(), contains(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getImm(), llvm::MCInstrDesc::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::getReg().
Referenced by getRegisterInfo().
|
static |
Does this instruction set its full destination register to zero?
Definition at line 1577 of file AArch64InstrInfo.cpp.
References assert(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getImm(), llvm::MCInstrDesc::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), and llvm::MachineOperand::isImm().
Referenced by getRegisterInfo().
|
static |
Return true if pairing the given load or store is hinted to be unprofitable.
Check all MachineMemOperands for a hint to suppress pairing.
Definition at line 1698 of file AArch64InstrInfo.cpp.
References llvm::any_of(), llvm::MachineInstr::memoperands(), and llvm::MOSuppressPair.
Referenced by areCandidatesToMergeOrPair(), getRegisterInfo(), and isCandidateToMergeOrPair().
|
override |
Definition at line 1652 of file AArch64InstrInfo.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getSubReg(), llvm::MachineOperand::isFI(), and llvm::MachineOperand::isImm().
Referenced by getRegisterInfo().
|
override |
Definition at line 5993 of file AArch64InstrInfo.cpp.
References llvm::any_of(), assert(), llvm::for_each(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), getRegisterInfo(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::MachineFunction::getSubtarget(), HasCalls, llvm::MachineInstr::isCall(), llvm::AArch64RegisterInfo::isReservedReg(), LRUnavailableSomewhere, MI, llvm::MachineBasicBlock::rbegin(), Reg, llvm::MachineBasicBlock::rend(), llvm::MachineRegisterInfo::tracksLiveness(), and UnsafeRegsDead.
|
static |
Return true if pairing the given load or store may be paired with another.
Definition at line 1806 of file AArch64InstrInfo.cpp.
References llvm::MachineInstr::getOpcode().
Referenced by getMemScale(), and shouldClusterMemOps().
|
override |
Definition at line 964 of file AArch64InstrInfo.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::TargetInstrInfo::isSchedulingBoundary(), and isSEHInstruction().
|
static |
Return true if the instructions is a SEH instruciton used for unwinding on Windows.
Definition at line 886 of file AArch64InstrInfo.cpp.
References llvm::MachineInstr::getOpcode().
Referenced by convertCalleeSaveRestoreToSPPrePostIncDec(), llvm::AArch64FrameLowering::emitEpilogue(), fixupCalleeSaveRestoreStackOffset(), and isSchedulingBoundary().
|
override |
Definition at line 1675 of file AArch64InstrInfo.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getSubReg(), llvm::MachineOperand::isFI(), and llvm::MachineOperand::isImm().
Referenced by getRegisterInfo().
|
static |
Return true if the given load or store is a strided memory access.
Check all MachineMemOperands for a hint that the load/store is strided.
Definition at line 1712 of file AArch64InstrInfo.cpp.
References llvm::any_of(), llvm::MachineInstr::memoperands(), and llvm::MOStridedAccess.
Referenced by getRegisterInfo().
|
inlineoverride |
Definition at line 164 of file AArch64InstrInfo.h.
References analyzeBranch(), foldMemoryOperandImpl(), llvm::TargetInstrInfo::foldMemoryOperandImpl(), getBranchDestBlock(), and isBranchOffsetInRange().
|
override |
Return true when a code sequence can improve throughput.
It should be called only for instructions in loops.
| Pattern | - combiner pattern |
Definition at line 4025 of file AArch64InstrInfo.cpp.
References llvm::FMLAv1i32_indexed_OP1, llvm::FMLAv1i32_indexed_OP2, llvm::FMLAv1i64_indexed_OP1, llvm::FMLAv1i64_indexed_OP2, llvm::FMLAv2f32_OP1, llvm::FMLAv2f32_OP2, llvm::FMLAv2f64_OP1, llvm::FMLAv2f64_OP2, llvm::FMLAv2i32_indexed_OP1, llvm::FMLAv2i32_indexed_OP2, llvm::FMLAv2i64_indexed_OP1, llvm::FMLAv2i64_indexed_OP2, llvm::FMLAv4f16_OP1, llvm::FMLAv4f16_OP2, llvm::FMLAv4f32_OP1, llvm::FMLAv4f32_OP2, llvm::FMLAv4i16_indexed_OP1, llvm::FMLAv4i16_indexed_OP2, llvm::FMLAv4i32_indexed_OP1, llvm::FMLAv4i32_indexed_OP2, llvm::FMLAv8f16_OP1, llvm::FMLAv8f16_OP2, llvm::FMLAv8i16_indexed_OP1, llvm::FMLAv8i16_indexed_OP2, llvm::FMLSv1i32_indexed_OP2, llvm::FMLSv1i64_indexed_OP2, llvm::FMLSv2f32_OP2, llvm::FMLSv2f64_OP2, llvm::FMLSv2i32_indexed_OP2, llvm::FMLSv2i64_indexed_OP2, llvm::FMLSv4f16_OP1, llvm::FMLSv4f16_OP2, llvm::FMLSv4f32_OP2, llvm::FMLSv4i16_indexed_OP1, llvm::FMLSv4i16_indexed_OP2, llvm::FMLSv4i32_indexed_OP2, llvm::FMLSv8f16_OP1, llvm::FMLSv8f16_OP2, llvm::FMLSv8i16_indexed_OP1, llvm::FMLSv8i16_indexed_OP2, llvm::FMULADDD_OP1, llvm::FMULADDD_OP2, llvm::FMULADDH_OP1, llvm::FMULADDH_OP2, llvm::FMULADDS_OP1, llvm::FMULADDS_OP2, llvm::FMULSUBD_OP1, llvm::FMULSUBD_OP2, llvm::FMULSUBH_OP1, llvm::FMULSUBH_OP2, llvm::FMULSUBS_OP1, llvm::FMULSUBS_OP2, llvm::FNMULSUBD_OP1, llvm::FNMULSUBH_OP1, llvm::FNMULSUBS_OP1, llvm::MULADDv16i8_OP1, llvm::MULADDv16i8_OP2, llvm::MULADDv2i32_indexed_OP1, llvm::MULADDv2i32_indexed_OP2, llvm::MULADDv2i32_OP1, llvm::MULADDv2i32_OP2, llvm::MULADDv4i16_indexed_OP1, llvm::MULADDv4i16_indexed_OP2, llvm::MULADDv4i16_OP1, llvm::MULADDv4i16_OP2, llvm::MULADDv4i32_indexed_OP1, llvm::MULADDv4i32_indexed_OP2, llvm::MULADDv4i32_OP1, llvm::MULADDv4i32_OP2, llvm::MULADDv8i16_indexed_OP1, llvm::MULADDv8i16_indexed_OP2, llvm::MULADDv8i16_OP1, llvm::MULADDv8i16_OP2, llvm::MULADDv8i8_OP1, llvm::MULADDv8i8_OP2, llvm::MULSUBv16i8_OP1, llvm::MULSUBv16i8_OP2, llvm::MULSUBv2i32_indexed_OP1, llvm::MULSUBv2i32_indexed_OP2, llvm::MULSUBv2i32_OP1, llvm::MULSUBv2i32_OP2, llvm::MULSUBv4i16_indexed_OP1, llvm::MULSUBv4i16_indexed_OP2, llvm::MULSUBv4i16_OP1, llvm::MULSUBv4i16_OP2, llvm::MULSUBv4i32_indexed_OP1, llvm::MULSUBv4i32_indexed_OP2, llvm::MULSUBv4i32_OP1, llvm::MULSUBv4i32_OP2, llvm::MULSUBv8i16_indexed_OP1, llvm::MULSUBv8i16_indexed_OP2, llvm::MULSUBv8i16_OP1, llvm::MULSUBv8i16_OP2, llvm::MULSUBv8i8_OP1, and llvm::MULSUBv8i8_OP2.
Return true if this is an unscaled load/store.
Definition at line 1718 of file AArch64InstrInfo.cpp.
Referenced by areCandidatesToMergeOrPair(), getRegisterInfo(), isLdOffsetInRangeOfSt(), isUnscaledLdSt(), and shouldClusterMemOps().
|
inlinestatic |
Definition at line 84 of file AArch64InstrInfo.h.
References getMemScale(), llvm::MachineInstr::getOpcode(), getUnscaledLdSt(), and isUnscaledLdSt().
|
override |
Definition at line 2986 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMemOperand(), llvm::MachineInstrBuilder::addReg(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, assert(), llvm::BuildMI(), llvm::MachineRegisterInfo::constrainRegClass(), llvm::TargetStackID::Default, llvm::getDefRegState(), llvm::MachinePointerInfo::getFixedStack(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getMachineMemOperand(), llvm::MachineFrameInfo::getObjectAlignment(), llvm::MachineFrameInfo::getObjectSize(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), getRegisterInfo(), llvm::TargetRegisterInfo::getSpillSize(), llvm::Register::isVirtualRegister(), loadRegPairFromStackSlot(), MI, llvm::MachineMemOperand::MOLoad, llvm::MachineFrameInfo::setStackID(), and llvm::TargetStackID::SVEVector.
Referenced by foldMemoryOperandImpl(), and getMemScale().
|
override |
optimizeCompareInstr - Convert the instruction supplying the argument to the comparison into one that sets the zero bit in the flags register.
Try to optimize a compare instruction.
A compare instruction is an instruction which produces AArch64::NZCV. It can be truly compare instruction when there are no uses of its destination register.
The following steps are tried in order:
Definition at line 1182 of file AArch64InstrInfo.cpp.
References assert(), convertToNonFlagSettingOpc(), llvm::MachineInstr::definesRegister(), llvm::MachineInstr::eraseFromParent(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), llvm::MachineInstr::RemoveOperand(), llvm::MachineInstr::setDesc(), UpdateOperandRegClass(), and llvm::MachineRegisterInfo::use_nodbg_empty().
|
override |
Replace csincr-branch sequence by simple conditional branch.
Examples:
Replace compare and branch sequence by TBZ/TBNZ instruction when the compare's constant operand is power of 2.
Examples:
to
| MI | Conditional Branch |
Definition at line 5229 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMBB(), llvm::MachineInstrBuilder::addReg(), AK_Write, areCFlagsAccessedBetweenInstrs(), assert(), llvm::BuildMI(), llvm::AArch64_AM::decodeLogicalImmediate(), llvm::MachineRegisterInfo::def_empty(), DefMI, llvm::MachineInstr::eraseFromParent(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::getDebugLoc(), llvm::MachineOperand::getImm(), llvm::AArch64CC::getInvertedCondCode(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), llvm::MachineFunction::getRegInfo(), getRegisterInfo(), llvm::MachineRegisterInfo::getVRegDef(), llvm::MachineRegisterInfo::hasOneDef(), llvm::MachineRegisterInfo::hasOneNonDBGUse(), llvm::MachineInstr::isCopy(), llvm::isPowerOf2_64(), llvm::Register::isVirtualRegister(), llvm_unreachable, llvm::Log2_64(), llvm::BitmaskEnumDetail::Mask(), llvm::MachineOperand::setIsKill(), and llvm::MachineOperand::setSubReg().
|
override |
Definition at line 337 of file AArch64InstrInfo.cpp.
References llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::getLastNonDebugInstr(), I, llvm::isCondBranchOpcode(), and llvm::isUncondBranchOpcode().
|
override |
Definition at line 296 of file AArch64InstrInfo.cpp.
|
override |
Detect opportunities for ldp/stp formation.
Only called for LdSt for which getMemOperandWithOffset returns true.
Definition at line 2366 of file AArch64InstrInfo.cpp.
References assert(), canPairLdStOpc(), llvm::MachineFunction::getFrameInfo(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getParent(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getType(), isCandidateToMergeOrPair(), llvm::MachineOperand::isFI(), llvm::MachineOperand::isIdenticalTo(), isPairableLdStInst(), llvm::MachineOperand::isReg(), isUnscaledLdSt(), scaleOffset(), and shouldClusterFI().
Referenced by getMemScale().
|
override |
Definition at line 6490 of file AArch64InstrInfo.cpp.
References llvm::MachineFunction::getFunction(), and llvm::Function::hasMinSize().
|
override |
Definition at line 2844 of file AArch64InstrInfo.cpp.
References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMemOperand(), llvm::MachineInstrBuilder::addReg(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, assert(), llvm::BuildMI(), llvm::MachineRegisterInfo::constrainRegClass(), llvm::TargetStackID::Default, llvm::MachinePointerInfo::getFixedStack(), llvm::MachineFunction::getFrameInfo(), llvm::getKillRegState(), llvm::MachineFunction::getMachineMemOperand(), llvm::MachineFrameInfo::getObjectAlignment(), llvm::MachineFrameInfo::getObjectSize(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), getRegisterInfo(), llvm::TargetRegisterInfo::getSpillSize(), llvm::Register::isVirtualRegister(), MI, llvm::MachineMemOperand::MOStore, llvm::MachineFrameInfo::setStackID(), storeRegPairToStackSlot(), and llvm::TargetStackID::SVEVector.
Referenced by foldMemoryOperandImpl(), and getMemScale().
|
static |
Hint that pairing the given load or store is unprofitable.
Set a flag on the first MachineMemOperand to suppress pairing.
Definition at line 1705 of file AArch64InstrInfo.cpp.
References llvm::MachineInstr::memoperands_begin(), llvm::MachineInstr::memoperands_empty(), and llvm::MOSuppressPair.
Referenced by getMemScale().
|
override |
AArch64 supports MachineCombiner.
Definition at line 3561 of file AArch64InstrInfo.cpp.
1.8.13