Home
last modified time | relevance | path

Searched refs:AddInst (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/llvm/unittests/Transforms/Utils/
DCloningTest.cpp225 Instruction *AddInst = cast<Instruction>(Builder2.CreateAdd(V, V)); in TEST_F() local
226 Instruction *MulInst = cast<Instruction>(Builder2.CreateMul(AddInst, V)); in TEST_F()
238 EXPECT_TRUE(Mapping.find(AddInst) != Mapping.end()); in TEST_F()
241 auto AddSplit = dyn_cast<Instruction>(Mapping[AddInst]); in TEST_F()
274 Instruction *AddInst = cast<Instruction>(Builder2.CreateAdd(V, V)); in TEST_F() local
275 Instruction *MulInst = cast<Instruction>(Builder2.CreateMul(AddInst, V)); in TEST_F()
287 EXPECT_TRUE(Mapping.find(AddInst) != Mapping.end()); in TEST_F()
291 auto AddSplit = dyn_cast<Instruction>(Mapping[AddInst]); in TEST_F()
327 Instruction *AddInst = cast<Instruction>(Builder2.CreateAdd(V, V)); in TEST_F() local
328 Instruction *MulInst = cast<Instruction>(Builder2.CreateMul(AddInst, V)); in TEST_F()
[all …]
DCodeMoverUtilsTest.cpp580 Instruction *AddInst = getInstructionByName(F, "add"); in TEST() local
584 EXPECT_FALSE(isSafeToMoveBefore(*AddInst, *SubInst, DT, &PDT, &DI)); in TEST()
588 EXPECT_FALSE(isSafeToMoveBefore(*SubInst, *AddInst, DT, &PDT, &DI)); in TEST()
645 Instruction *AddInst = getInstructionByName(F, "add"); in TEST() local
649 EXPECT_FALSE(isSafeToMoveBefore(*AddInst, *SubInst, DT, &PDT, &DI)); in TEST()
653 EXPECT_FALSE(isSafeToMoveBefore(*SubInst, *AddInst, DT, &PDT, &DI)); in TEST()
/external/llvm-project/llvm/unittests/IR/
DBasicBlockTest.cpp119 Instruction *AddInst = cast<Instruction>(Builder1.CreateAdd(V, V)); in TEST() local
120 Instruction *MulInst = cast<Instruction>(Builder1.CreateMul(AddInst, V)); in TEST()
125 SmallVector<Instruction *, 4> Exp = {Var, AddInst, MulInst, SubInst}; in TEST()
/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/
DPatternMatchTest.cpp466 auto AddInst = B.buildAdd(s64, Copies[1], NegInst); in TEST_F() local
468 EXPECT_TRUE(mi_match(AddInst.getReg(2), *MRI, m_Neg(m_Reg(NegatedReg)))); in TEST_F()
499 auto AddInst = B.buildAdd(s64, Copies[1], NotInst1); in TEST_F() local
501 EXPECT_TRUE(mi_match(AddInst.getReg(2), *MRI, m_Not(m_Reg(NotReg)))); in TEST_F()
/external/llvm-project/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp797 Instruction *AddInst = cast<Instruction>(Offsets); in tryCreateIncrementingWBGatScat() local
798 AddInst->replaceAllUsesWith(NewInduction); in tryCreateIncrementingWBGatScat()
799 AddInst->eraseFromParent(); in tryCreateIncrementingWBGatScat()
/external/llvm/lib/Target/PowerPC/
DPPCFrameLowering.cpp1144 const MCInstrDesc& AddInst = TII.get( isPPC64 ? PPC::ADD8 in emitEpilogue() local
1239 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
1325 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInstructionSimplify.cpp1663 auto *AddInst = cast<OverflowingBinaryOperator>(Op0->getOperand(0)); in simplifyAndOfICmpsWithAdd() local
1664 if (AddInst->getOperand(1) != Op1->getOperand(1)) in simplifyAndOfICmpsWithAdd()
1668 bool isNSW = IIQ.hasNoSignedWrap(AddInst); in simplifyAndOfICmpsWithAdd()
1669 bool isNUW = IIQ.hasNoUnsignedWrap(AddInst); in simplifyAndOfICmpsWithAdd()
1736 auto *AddInst = cast<BinaryOperator>(Op0->getOperand(0)); in simplifyOrOfICmpsWithAdd() local
1737 if (AddInst->getOperand(1) != Op1->getOperand(1)) in simplifyOrOfICmpsWithAdd()
1741 bool isNSW = IIQ.hasNoSignedWrap(AddInst); in simplifyOrOfICmpsWithAdd()
1742 bool isNUW = IIQ.hasNoUnsignedWrap(AddInst); in simplifyOrOfICmpsWithAdd()
/external/llvm-project/llvm/lib/Analysis/
DInstructionSimplify.cpp1657 auto *AddInst = cast<OverflowingBinaryOperator>(Op0->getOperand(0)); in simplifyAndOfICmpsWithAdd() local
1658 if (AddInst->getOperand(1) != Op1->getOperand(1)) in simplifyAndOfICmpsWithAdd()
1662 bool isNSW = IIQ.hasNoSignedWrap(AddInst); in simplifyAndOfICmpsWithAdd()
1663 bool isNUW = IIQ.hasNoUnsignedWrap(AddInst); in simplifyAndOfICmpsWithAdd()
1793 auto *AddInst = cast<BinaryOperator>(Op0->getOperand(0)); in simplifyOrOfICmpsWithAdd() local
1794 if (AddInst->getOperand(1) != Op1->getOperand(1)) in simplifyOrOfICmpsWithAdd()
1798 bool isNSW = IIQ.hasNoSignedWrap(AddInst); in simplifyOrOfICmpsWithAdd()
1799 bool isNUW = IIQ.hasNoUnsignedWrap(AddInst); in simplifyOrOfICmpsWithAdd()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1528 auto *AddInst = cast<BinaryOperator>(Op0->getOperand(0)); in SimplifyAndOfICmps() local
1529 bool isNSW = AddInst->hasNoSignedWrap(); in SimplifyAndOfICmps()
1530 bool isNUW = AddInst->hasNoUnsignedWrap(); in SimplifyAndOfICmps()
1702 auto *AddInst = cast<BinaryOperator>(Op0->getOperand(0)); in SimplifyOrOfICmps() local
1703 bool isNSW = AddInst->hasNoSignedWrap(); in SimplifyOrOfICmps()
1704 bool isNUW = AddInst->hasNoUnsignedWrap(); in SimplifyOrOfICmps()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCFrameLowering.cpp1419 const MCInstrDesc& AddInst = TII.get( isPPC64 ? PPC::ADD8 in emitEpilogue() local
1555 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
1712 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCFrameLowering.cpp1532 const MCInstrDesc& AddInst = TII.get( isPPC64 ? PPC::ADD8 in emitEpilogue() local
1663 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
1815 BuildMI(MBB, MBBI, dl, AddInst) in emitEpilogue()
/external/llvm-project/llvm/lib/Target/X86/
DX86InstructionSelector.cpp1077 MachineInstr &AddInst = in selectUadde() local
1085 if (!constrainSelectedInstRegOperands(AddInst, TII, TRI, RBI) || in selectUadde()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstructionSelector.cpp1122 MachineInstr &AddInst = in selectUadde() local
1130 if (!constrainSelectedInstRegOperands(AddInst, TII, TRI, RBI) || in selectUadde()