Home
last modified time | relevance | path

Searched refs:MI2 (Results 1 – 25 of 29) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/
DMachineInstrTest.cpp124 auto MI2 = MF->CreateMachineInstr(MCID, DebugLoc()); in TEST() local
125 MI2->addOperand(*MF, MachineOperand::CreateReg(VirtualDef2, /*isDef*/ true)); in TEST()
126 MI2->addOperand(*MF, MachineOperand::CreateReg(VirtualUse, /*isDef*/ false)); in TEST()
130 ASSERT_FALSE(MI1->isIdenticalTo(*MI2, MachineInstr::CheckDefs)); in TEST()
131 ASSERT_FALSE(MI2->isIdenticalTo(*MI1, MachineInstr::CheckDefs)); in TEST()
133 ASSERT_TRUE(MI1->isIdenticalTo(*MI2, MachineInstr::IgnoreVRegDefs)); in TEST()
134 ASSERT_TRUE(MI2->isIdenticalTo(*MI1, MachineInstr::IgnoreVRegDefs)); in TEST()
158 void checkHashAndIsEqualMatch(MachineInstr *MI1, MachineInstr *MI2) { in checkHashAndIsEqualMatch() argument
159 bool IsEqual1 = MachineInstrExpressionTrait::isEqual(MI1, MI2); in checkHashAndIsEqualMatch()
160 bool IsEqual2 = MachineInstrExpressionTrait::isEqual(MI2, MI1); in checkHashAndIsEqualMatch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMicroMipsSizeReduction.cpp193 MachineInstr *MI2 = nullptr,
392 static bool ConsecutiveInstr(MachineInstr *MI1, MachineInstr *MI2) { in ConsecutiveInstr() argument
397 if (!GetImm(MI2, 2, Offset2)) in ConsecutiveInstr()
401 unsigned Reg2 = MI2->getOperand(0).getReg(); in ConsecutiveInstr()
459 MachineInstr *MI2 = &*NextMII; in ReduceXWtoXWP() local
469 if (!CheckXWPInstr(MI2, ReduceToLwp, Entry)) in ReduceXWtoXWP()
473 unsigned Reg2 = MI2->getOperand(1).getReg(); in ReduceXWtoXWP()
478 bool ConsecutiveForward = ConsecutiveInstr(MI1, MI2); in ReduceXWtoXWP()
479 bool ConsecutiveBackward = ConsecutiveInstr(MI2, MI1); in ReduceXWtoXWP()
485 return ReplaceInstruction(MI1, Entry, MI2, ConsecutiveForward); in ReduceXWtoXWP()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIFixSGPRCopies.cpp480 MachineInstr *MI2 = *I2; in hoistAndMergeSGPRInits() local
515 if (MDT.dominates(MI1, MI2)) { in hoistAndMergeSGPRInits()
516 if (!intereferes(MI2, MI1)) { in hoistAndMergeSGPRInits()
519 << printMBBReference(*MI2->getParent()) << " " << *MI2); in hoistAndMergeSGPRInits()
520 MI2->eraseFromParent(); in hoistAndMergeSGPRInits()
525 } else if (MDT.dominates(MI2, MI1)) { in hoistAndMergeSGPRInits()
526 if (!intereferes(MI1, MI2)) { in hoistAndMergeSGPRInits()
537 MI2->getParent()); in hoistAndMergeSGPRInits()
544 if (!intereferes(MI1, I) && !intereferes(MI2, I)) { in hoistAndMergeSGPRInits()
549 << printMBBReference(*MI2->getParent()) << " to " in hoistAndMergeSGPRInits()
[all …]
DAMDGPUSubtarget.cpp641 MachineInstr &MI2 = *SU.getInstr(); in apply() local
642 if (!MI2.mayLoad() && !MI2.mayStore()) { in apply()
652 if ((TII->isVMEM(MI1) && TII->isVMEM(MI2)) || in apply()
653 (TII->isFLAT(MI1) && TII->isFLAT(MI2)) || in apply()
654 (TII->isSMRD(MI1) && TII->isSMRD(MI2)) || in apply()
655 (TII->isDS(MI1) && TII->isDS(MI2))) { in apply()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DDFAPacketizer.cpp361 const MachineInstr &MI2, in alias() argument
363 if (MI1.memoperands_empty() || MI2.memoperands_empty()) in alias()
367 for (const MachineMemOperand *Op2 : MI2.memoperands()) in alias()
DTargetInstrInfo.cpp679 MachineInstr *MI2 = nullptr; in hasReassociableOperands() local
683 MI2 = MRI.getUniqueVRegDef(Op2.getReg()); in hasReassociableOperands()
686 return MI1 && MI2 && MI1->getParent() == MBB && MI2->getParent() == MBB; in hasReassociableOperands()
694 MachineInstr *MI2 = MRI.getUniqueVRegDef(Inst.getOperand(2).getReg()); in hasReassociableSibling() local
699 Commuted = MI1->getOpcode() != AssocOpcode && MI2->getOpcode() == AssocOpcode; in hasReassociableSibling()
701 std::swap(MI1, MI2); in hasReassociableSibling()
DMachineInstr.cpp336 static bool hasIdenticalMMOs(const MachineInstr &MI1, const MachineInstr &MI2) { in hasIdenticalMMOs() argument
338 auto I2 = MI2.memoperands_begin(), E2 = MI2.memoperands_end(); in hasIdenticalMMOs()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonSubtarget.cpp156 MachineInstr &MI2 = *SI.getSUnit()->getInstr(); in apply() local
157 if (!QII->isHVXVec(MI2)) in apply()
159 if ((IsStoreMI1 && MI2.mayStore()) || (IsLoadMI1 && MI2.mayLoad())) { in apply()
DHexagonInstrInfo.h408 const MachineInstr &MI2) const;
420 const MachineInstr &MI2) const;
DHexagonVLIWPacketizer.h134 bool arePredicatesComplements(MachineInstr &MI1, MachineInstr &MI2);
DHexagonVLIWPacketizer.cpp961 MachineInstr &MI2) { in arePredicatesComplements() argument
965 getPredicateSense(MI2, HII) == PK_Unknown) in arePredicatesComplements()
1018 unsigned PReg2 = getPredicatedRegister(MI2, HII); in arePredicatesComplements()
1022 getPredicateSense(MI1, HII) != getPredicateSense(MI2, HII) && in arePredicatesComplements()
1023 HII->isDotNewInst(MI1) == HII->isDotNewInst(MI2); in arePredicatesComplements()
DHexagonInstrInfo.cpp2561 const MachineInstr &MI2) const { in isToBeScheduledASAP()
2565 int N = MI2.getNumOperands(); in isToBeScheduledASAP()
2567 if (MI2.getOperand(I).isReg() && DstReg == MI2.getOperand(I).getReg()) in isToBeScheduledASAP()
2570 if (mayBeNewStore(MI2)) in isToBeScheduledASAP()
2571 if (MI2.getOpcode() == Hexagon::V6_vS32b_pi) in isToBeScheduledASAP()
2572 if (MI1.getOperand(0).isReg() && MI2.getOperand(3).isReg() && in isToBeScheduledASAP()
2573 MI1.getOperand(0).getReg() == MI2.getOperand(3).getReg()) in isToBeScheduledASAP()
2878 const MachineInstr &MI2) const { in addLatencyToSchedule()
2879 if (isHVXVec(MI1) && isHVXVec(MI2)) in addLatencyToSchedule()
2880 if (!isVecUsableNextPacket(MI1, MI2)) in addLatencyToSchedule()
/external/llvm/lib/CodeGen/
DTargetInstrInfo.cpp571 MachineInstr *MI2 = nullptr; in hasReassociableOperands() local
575 MI2 = MRI.getUniqueVRegDef(Op2.getReg()); in hasReassociableOperands()
578 return MI1 && MI2 && MI1->getParent() == MBB && MI2->getParent() == MBB; in hasReassociableOperands()
586 MachineInstr *MI2 = MRI.getUniqueVRegDef(Inst.getOperand(2).getReg()); in hasReassociableSibling() local
591 Commuted = MI1->getOpcode() != AssocOpcode && MI2->getOpcode() == AssocOpcode; in hasReassociableSibling()
593 std::swap(MI1, MI2); in hasReassociableSibling()
DMachineInstr.cpp905 static bool hasIdenticalMMOs(const MachineInstr &MI1, const MachineInstr &MI2) { in hasIdenticalMMOs() argument
907 auto I2 = MI2.memoperands_begin(), E2 = MI2.memoperands_end(); in hasIdenticalMMOs()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DMLxExpansionPass.cpp249 MachineInstr &MI2 = *MII; in ExpandFPMLxInstruction()
253 dbgs() << " " << MI2; in ExpandFPMLxInstruction()
/external/llvm/lib/Target/X86/
DX86OptimizeLEAs.cpp250 const MachineInstr &MI2, unsigned N2) const;
365 const MachineInstr &MI2, in getAddrDispShift() argument
368 const MachineOperand &Op2 = MI2.getOperand(N2 + X86::AddrDisp); in getAddrDispShift()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86OptimizeLEAs.cpp269 const MachineInstr &MI2, unsigned N2) const;
392 const MachineInstr &MI2, in getAddrDispShift() argument
395 const MachineOperand &Op2 = MI2.getOperand(N2 + X86::AddrDisp); in getAddrDispShift()
DX86ISelLowering.h1305 MachineInstr &MI2,
/external/clang/test/Analysis/
Dpadding_cpp.cpp102 class MI2 : public PaddedA, public InnerPaddedB { // xxxexpected-warning{{Excessive padding in 'cla… class
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DDFAPacketizer.h212 bool alias(const MachineInstr &MI1, const MachineInstr &MI2,
/external/llvm/lib/Target/Hexagon/
DHexagonVLIWPacketizer.h97 bool arePredicatesComplements(MachineInstr &MI1, MachineInstr &MI2);
DHexagonVLIWPacketizer.cpp845 MachineInstr &MI2) { in arePredicatesComplements() argument
849 getPredicateSense(MI2, HII) == PK_Unknown) in arePredicatesComplements()
902 unsigned PReg2 = getPredicatedRegister(MI2, HII); in arePredicatesComplements()
906 getPredicateSense(MI1, HII) != getPredicateSense(MI2, HII) && in arePredicatesComplements()
907 HII->isDotNewInst(&MI1) == HII->isDotNewInst(&MI2); in arePredicatesComplements()
DHexagonInstrInfo.cpp2933 const MachineInstr *MI2) const { in addLatencyToSchedule()
2934 if (isV60VectorInstruction(MI1) && isV60VectorInstruction(MI2)) in addLatencyToSchedule()
2935 if (!isVecUsableNextPacket(MI1, MI2)) in addLatencyToSchedule()
/external/llvm/lib/Target/ARM/
DMLxExpansionPass.cpp317 MachineInstr &MI2 = *MII; in ExpandFPMLxInstruction()
321 dbgs() << " " << MI2; in ExpandFPMLxInstruction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DMLxExpansionPass.cpp317 MachineInstr &MI2 = *MII; in ExpandFPMLxInstruction()
321 dbgs() << " " << MI2; in ExpandFPMLxInstruction()

12