Home
last modified time | relevance | path

Searched refs:MI1 (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64MachineScheduler.cpp36 static bool mayOverlapWrite(const MachineInstr &MI0, const MachineInstr &MI1, in mayOverlapWrite() argument
39 const MachineOperand &Base1 = AArch64InstrInfo::getLdStBaseOp(MI1); in mayOverlapWrite()
46 int StoreSize1 = AArch64InstrInfo::getMemScale(MI1); in mayOverlapWrite()
50 Off1 = AArch64InstrInfo::hasUnscaledLdStOffset(MI1.getOpcode()) in mayOverlapWrite()
51 ? AArch64InstrInfo::getLdStOffsetOp(MI1).getImm() in mayOverlapWrite()
52 : AArch64InstrInfo::getLdStOffsetOp(MI1).getImm() * StoreSize1; in mayOverlapWrite()
54 const MachineInstr &MI = (Off0 < Off1) ? MI0 : MI1; in mayOverlapWrite()
H A DAArch64CollectLOH.cpp312 Info.MI1 = nullptr; in handleUse()
354 OpInfo.MI1 = &MI; in handleMiddleInst()
359 OpInfo.MI1 = &MI; in handleMiddleInst()
368 if (OpInfo.Type == MCLOH_AdrpAddStr && OpInfo.MI1 == nullptr) { in handleMiddleInst()
371 OpInfo.MI1 = &MI; in handleMiddleInst()
376 OpInfo.MI1 = &MI; in handleMiddleInst()
439 MachineInstr *AddMI = const_cast<MachineInstr *>(Info.MI1); in handleADRP()
447 << '\t' << MI << '\t' << *Info.MI1 << '\t' in handleADRP()
454 if (Info.MI1 != nullptr) { in handleADRP()
464 << '\t' << MI << '\t' << *Info.MI1 << '\t' in handleADRP()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMicroMipsSizeReduction.cpp401 if (!GetImm(MI1, 2, Offset1)) in ConsecutiveInstr()
406 Register Reg1 = MI1->getOperand(0).getReg(); in ConsecutiveInstr()
464 MachineInstr *MI1 = Arguments->MI; in ReduceXWtoXWP() local
468 bool ReduceToLwp = (MI1->getOpcode() == Mips::LW) || in ReduceXWtoXWP()
472 if (!CheckXWPInstr(MI1, ReduceToLwp, Entry)) in ReduceXWtoXWP()
478 Register Reg1 = MI1->getOperand(1).getReg(); in ReduceXWtoXWP()
484 bool ConsecutiveForward = ConsecutiveInstr(MI1, MI2); in ReduceXWtoXWP()
485 bool ConsecutiveBackward = ConsecutiveInstr(MI2, MI1); in ReduceXWtoXWP()
621 MachineInstr *MI1 = Arguments->MI; in ReduceMoveToMovep() local
624 Register RegDstMI1 = MI1->getOperand(0).getReg(); in ReduceMoveToMovep()
[all …]
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DMachineInstrTest.cpp64 auto MI1 = MF->CreateMachineInstr(MCID, DebugLoc()); in TEST() local
65 MI1->addOperand(*MF, MachineOperand::CreateReg(VirtualDef1, /*isDef*/ true)); in TEST()
66 MI1->addOperand(*MF, MachineOperand::CreateReg(VirtualUse, /*isDef*/ false)); in TEST()
74 ASSERT_FALSE(MI1->isIdenticalTo(*MI2, MachineInstr::CheckDefs)); in TEST()
75 ASSERT_FALSE(MI2->isIdenticalTo(*MI1, MachineInstr::CheckDefs)); in TEST()
77 ASSERT_TRUE(MI1->isIdenticalTo(*MI2, MachineInstr::IgnoreVRegDefs)); in TEST()
78 ASSERT_TRUE(MI2->isIdenticalTo(*MI1, MachineInstr::IgnoreVRegDefs)); in TEST()
102 void checkHashAndIsEqualMatch(MachineInstr *MI1, MachineInstr *MI2) { in checkHashAndIsEqualMatch() argument
103 bool IsEqual1 = MachineInstrExpressionTrait::isEqual(MI1, MI2); in checkHashAndIsEqualMatch()
104 bool IsEqual2 = MachineInstrExpressionTrait::isEqual(MI2, MI1); in checkHashAndIsEqualMatch()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIFixSGPRCopies.cpp436 MachineInstr *MI1 = *I1; in hoistAndMergeSGPRInits() local
474 if (MDT.dominates(MI1, MI2)) { in hoistAndMergeSGPRInits()
475 if (!interferes(MI2, MI1)) { in hoistAndMergeSGPRInits()
484 } else if (MDT.dominates(MI2, MI1)) { in hoistAndMergeSGPRInits()
485 if (!interferes(MI1, MI2)) { in hoistAndMergeSGPRInits()
488 << printMBBReference(*MI1->getParent()) << " " << *MI1); in hoistAndMergeSGPRInits()
489 MergedInstrs.insert(MI1); in hoistAndMergeSGPRInits()
495 auto *MBB = MDT.findNearestCommonDominator(MI1->getParent(), in hoistAndMergeSGPRInits()
503 if (!interferes(MI1, I) && !interferes(MI2, I)) { in hoistAndMergeSGPRInits()
506 << printMBBReference(*MI1->getParent()) << " " << *MI1 in hoistAndMergeSGPRInits()
[all …]
H A DGCNHazardRecognizer.cpp2061 const MachineInstr *MI1; in checkMAIHazards90A() local
2069 MI1 = &MI; in checkMAIHazards90A()
2083 unsigned Opc1 = MI1->getOpcode(); in checkMAIHazards90A()
2117 ? isXDL(ST, *MI1) in checkMAIHazards90A()
2126 NeedWaitStates = isXDL(ST, *MI1) in checkMAIHazards90A()
2132 ? isXDL(ST, *MI1) in checkMAIHazards90A()
2142 ? isXDL(ST, *MI1) in checkMAIHazards90A()
2167 ? isXDL(ST, *MI1) in checkMAIHazards90A()
2174 NeedWaitStates = isXDL(ST, *MI1) in checkMAIHazards90A()
2180 ? isXDL(ST, *MI1) in checkMAIHazards90A()
[all …]
H A DSIInstrInfo.cpp453 static bool memOpsHaveSameBasePtr(const MachineInstr &MI1, in memOpsHaveSameBasePtr() argument
463 if (!MI1.hasOneMemOperand() || !MI2.hasOneMemOperand()) in memOpsHaveSameBasePtr()
466 auto MO1 = *MI1.memoperands_begin(); in memOpsHaveSameBasePtr()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DDFAPacketizer.cpp301 bool VLIWPacketizerList::alias(const MachineInstr &MI1, in alias() argument
304 if (MI1.memoperands_empty() || MI2.memoperands_empty()) in alias()
307 for (const MachineMemOperand *Op1 : MI1.memoperands()) in alias()
H A DTargetInstrInfo.cpp428 const MachineInstr &MI1, in produceSameValue() argument
430 return MI0.isIdenticalTo(MI1, MachineInstr::IgnoreVRegDefs); in produceSameValue()
706 MachineInstr *MI1 = nullptr; in hasReassociableOperands() local
709 MI1 = MRI.getUniqueVRegDef(Op1.getReg()); in hasReassociableOperands()
714 return MI1 && MI2 && MI1->getParent() == MBB && MI2->getParent() == MBB; in hasReassociableOperands()
721 MachineInstr *MI1 = MRI.getUniqueVRegDef(Inst.getOperand(1).getReg()); in hasReassociableSibling() local
727 Commuted = MI1->getOpcode() != AssocOpcode && MI2->getOpcode() == AssocOpcode; in hasReassociableSibling()
729 std::swap(MI1, MI2); in hasReassociableSibling()
738 return MI1->getOpcode() == AssocOpcode && isAssociativeAndCommutative(*MI1) && in hasReassociableSibling()
739 hasReassociableOperands(*MI1, MBB) && in hasReassociableSibling()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonSubtarget.cpp280 MachineInstr &MI1 = *SU.getInstr(); in apply() local
282 bool IsStoreMI1 = MI1.mayStore(); in apply()
283 bool IsLoadMI1 = MI1.mayLoad(); in apply()
284 if (!QII->isHVXVec(MI1) || !(IsStoreMI1 || IsLoadMI1)) in apply()
H A DHexagonVLIWPacketizer.cpp966 bool HexagonPacketizerList::arePredicatesComplements(MachineInstr &MI1, in arePredicatesComplements() argument
970 if (getPredicateSense(MI1, HII) == PK_Unknown || in arePredicatesComplements()
975 SUnit *SU = MIToSUnit[&MI1]; in arePredicatesComplements()
1023 unsigned PReg1 = getPredicatedRegister(MI1, HII); in arePredicatesComplements()
1028 getPredicateSense(MI1, HII) != getPredicateSense(MI2, HII) && in arePredicatesComplements()
1029 HII->isDotNewInst(MI1) == HII->isDotNewInst(MI2); in arePredicatesComplements()
H A DHexagonVLIWPacketizer.h144 bool arePredicatesComplements(MachineInstr &MI1, MachineInstr &MI2);
H A DHexagonInstrInfo.h405 bool isToBeScheduledASAP(const MachineInstr &MI1,
417 bool addLatencyToSchedule(const MachineInstr &MI1,
H A DHexagonInstrInfo.cpp2676 bool HexagonInstrInfo::isToBeScheduledASAP(const MachineInstr &MI1, in isToBeScheduledASAP() argument
2678 if (mayBeCurLoad(MI1)) { in isToBeScheduledASAP()
2680 Register DstReg = MI1.getOperand(0).getReg(); in isToBeScheduledASAP()
2688 if (MI1.getOperand(0).isReg() && MI2.getOperand(3).isReg() && in isToBeScheduledASAP()
2689 MI1.getOperand(0).getReg() == MI2.getOperand(3).getReg()) in isToBeScheduledASAP()
3024 bool HexagonInstrInfo::addLatencyToSchedule(const MachineInstr &MI1, in addLatencyToSchedule() argument
3026 if (isHVXVec(MI1) && isHVXVec(MI2)) in addLatencyToSchedule()
3027 if (!isVecUsableNextPacket(MI1, MI2)) in addLatencyToSchedule()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DLoadStoreOpt.h49 bool aliasIsKnownForLoadStore(const MachineInstr &MI1, const MachineInstr &MI2,
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DDFAPacketizer.h189 bool alias(const MachineInstr &MI1, const MachineInstr &MI2,
H A DTargetInstrInfo.h580 const MachineInstr &MI1,
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp277 int64_t getAddrDispShift(const MachineInstr &MI1, unsigned N1,
399 int64_t X86OptimizeLEAPass::getAddrDispShift(const MachineInstr &MI1, in getAddrDispShift() argument
403 const MachineOperand &Op1 = MI1.getOperand(N1 + X86::AddrDisp); in getAddrDispShift()
H A DX86ISelLowering.h1678 MachineBasicBlock *EmitLoweredCascadedSelect(MachineInstr &MI1,
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMLxExpansionPass.cpp316 MachineInstr &MI1 = *MII; in ExpandFPMLxInstruction()
317 dbgs() << " " << MI1; in ExpandFPMLxInstruction()
H A DARMBaseInstrInfo.cpp1856 const MachineInstr &MI1, in produceSameValue() argument
1865 if (MI1.getOpcode() != Opcode) in produceSameValue()
1867 if (MI0.getNumOperands() != MI1.getNumOperands()) in produceSameValue()
1871 const MachineOperand &MO1 = MI1.getOperand(1); in produceSameValue()
1901 if (MI1.getOpcode() != Opcode) in produceSameValue()
1903 if (MI0.getNumOperands() != MI1.getNumOperands()) in produceSameValue()
1907 Register Addr1 = MI1.getOperand(1).getReg(); in produceSameValue()
1925 const MachineOperand &MO1 = MI1.getOperand(i); in produceSameValue()
1932 return MI0.isIdenticalTo(MI1, MachineInstr::IgnoreVRegDefs); in produceSameValue()
H A DARMBaseInstrInfo.h238 bool produceSameValue(const MachineInstr &MI0, const MachineInstr &MI1,
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLoadStoreOpt.cpp103 bool GISelAddressing::aliasIsKnownForLoadStore(const MachineInstr &MI1, in aliasIsKnownForLoadStore() argument
107 auto *LdSt1 = dyn_cast<GLoadStore>(&MI1); in aliasIsKnownForLoadStore()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-len2.cpp148 void typedefChain(int I, MyInt1 MI1, MyInt2 MI2, MyInt2b MI2b) {} in typedefChain() argument
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRExpandPseudoInsts.cpp1506 auto MI1 = in expandLSLW4Rd() local
1512 MI1->getOperand(3).setIsDead(); in expandLSLW4Rd()
1592 auto MI1 = in expandLSLW12Rd() local
1598 MI1->getOperand(3).setIsDead(); in expandLSLW12Rd()
1704 auto MI1 = in expandLSRW4Rd() local
1710 MI1->getOperand(3).setIsDead(); in expandLSRW4Rd()

12