Home
last modified time | relevance | path

Searched refs:hasNoUnsignedWrap (Results 1 – 25 of 99) sorted by relevance

1234

/external/swiftshader/third_party/LLVM/unittests/Transforms/Utils/
DCloning.cpp62 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
64 EXPECT_FALSE(SubClone->hasNoUnsignedWrap()); in TEST_F()
66 EXPECT_FALSE(MulClone->hasNoUnsignedWrap()); in TEST_F()
79 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
81 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
83 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
96 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
98 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
100 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
113 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
[all …]
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp71 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
73 EXPECT_FALSE(SubClone->hasNoUnsignedWrap()); in TEST_F()
75 EXPECT_FALSE(MulClone->hasNoUnsignedWrap()); in TEST_F()
88 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
90 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
92 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
105 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
107 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
109 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
122 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DCloning.cpp76 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
78 EXPECT_FALSE(SubClone->hasNoUnsignedWrap()); in TEST_F()
80 EXPECT_FALSE(MulClone->hasNoUnsignedWrap()); in TEST_F()
93 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
95 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
97 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
110 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
112 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
114 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
127 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
[all …]
/external/llvm/unittests/IR/
DIRBuilderTest.cpp272 cast<BinaryOperator>(Builder.CreateNUWAdd(V, V))->hasNoUnsignedWrap()); in TEST_F()
274 cast<BinaryOperator>(Builder.CreateNUWMul(V, V))->hasNoUnsignedWrap()); in TEST_F()
276 cast<BinaryOperator>(Builder.CreateNUWSub(V, V))->hasNoUnsignedWrap()); in TEST_F()
279 ->hasNoUnsignedWrap()); in TEST_F()
294 ->hasNoUnsignedWrap()); in TEST_F()
296 ->hasNoUnsignedWrap()); in TEST_F()
298 ->hasNoUnsignedWrap()); in TEST_F()
301 ->hasNoUnsignedWrap()); in TEST_F()
/external/llvm/lib/IR/
DInstruction.cpp111 bool Instruction::hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function in Instruction
112 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
222 setHasNoUnsignedWrap(OB->hasNoUnsignedWrap()); in copyIRFlags()
241 setHasNoUnsignedWrap(hasNoUnsignedWrap() & OB->hasNoUnsignedWrap()); in andIRFlags()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DIRBuilderTest.cpp356 cast<BinaryOperator>(Builder.CreateNUWAdd(V, V))->hasNoUnsignedWrap()); in TEST_F()
358 cast<BinaryOperator>(Builder.CreateNUWMul(V, V))->hasNoUnsignedWrap()); in TEST_F()
360 cast<BinaryOperator>(Builder.CreateNUWSub(V, V))->hasNoUnsignedWrap()); in TEST_F()
363 ->hasNoUnsignedWrap()); in TEST_F()
378 ->hasNoUnsignedWrap()); in TEST_F()
380 ->hasNoUnsignedWrap()); in TEST_F()
382 ->hasNoUnsignedWrap()); in TEST_F()
385 ->hasNoUnsignedWrap()); in TEST_F()
DInstructionsTest.cpp622 ASSERT_TRUE(AI->hasNoUnsignedWrap()); in TEST_F()
624 ASSERT_FALSE(AI->hasNoUnsignedWrap()); in TEST_F()
633 ASSERT_FALSE(SI->hasNoUnsignedWrap()); in TEST_F()
641 ASSERT_TRUE(ShlI->hasNoUnsignedWrap()); in TEST_F()
643 ASSERT_FALSE(ShlI->hasNoUnsignedWrap()); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstruction.cpp113 bool Instruction::hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function in Instruction
114 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
247 setHasNoUnsignedWrap(OB->hasNoUnsignedWrap()); in copyIRFlags()
270 setHasNoUnsignedWrap(hasNoUnsignedWrap() & OB->hasNoUnsignedWrap()); in andIRFlags()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp85 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero()
163 if (I.hasNoUnsignedWrap() && Mul->hasNoUnsignedWrap()) in visitMul()
177 if (I.hasNoUnsignedWrap()) in visitMul()
299 if (I.hasNoUnsignedWrap()) in visitMul()
404 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedMul(Op0, Op1, I)) { in visitMul()
704 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
730 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
778 bool HasNUW = cast<OverflowingBinaryOperator>(Op1)->hasNoUnsignedWrap(); in commonIDivTransforms()
DInstCombineShifts.cpp592 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitShl()
634 NewShl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitShl()
657 if (!I.hasNoUnsignedWrap() && in visitShl()
732 if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) { in visitLShr()
745 if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) { in visitLShr()
DInstCombineAddSub.cpp952 if (Add.hasNoSignedWrap() || Add.hasNoUnsignedWrap()) in foldAddWithConstant()
1123 BOp->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in canonicalizeLowbitMask()
1131 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitAdd()
1202 Shl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd()
1383 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedAdd(LHS, RHS, I)) { in visitAdd()
1576 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitSub()
1817 Value *Neg = Builder.CreateNeg(A, "", I.hasNoUnsignedWrap(), in visitSub()
1827 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedSub(Op0, Op1, I)) { in visitSub()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp607 NewShl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in FoldShiftByConstant()
617 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant()
664 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant()
702 I.hasNoUnsignedWrap(), DL, TLI, DT, AC)) in visitShl()
712 if (!I.hasNoUnsignedWrap() && in visitShl()
DInstCombineMulDivRem.cpp65 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero()
208 if (I.hasNoUnsignedWrap() && Mul->hasNoUnsignedWrap()) in visitMul()
230 if (I.hasNoUnsignedWrap()) in visitMul()
361 if (I.hasNoUnsignedWrap()) in visitMul()
397 if (!I.hasNoUnsignedWrap() && in visitMul()
851 cast<OverflowingBinaryOperator>(LHS)->hasNoUnsignedWrap()); in commonIDivTransforms()
879 cast<OverflowingBinaryOperator>(LHS)->hasNoUnsignedWrap()); in commonIDivTransforms()
DInstCombineAddSub.cpp1038 I.hasNoUnsignedWrap(), DL, TLI, DT, AC)) in visitAdd()
1118 New->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd()
1264 New->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd()
1273 New->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd()
1285 if (!I.hasNoUnsignedWrap() && in visitAdd()
1479 I.hasNoUnsignedWrap(), DL, TLI, DT, AC)) in visitSub()
1663 if (!I.hasNoUnsignedWrap() && WillNotOverflowUnsignedSub(Op0, Op1, I)) { in visitSub()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp91 I.hasNoUnsignedWrap(), TD)) in visitAdd()
154 New->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd()
533 I.hasNoUnsignedWrap(), TD)) in visitSub()
544 Res->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitSub()
DInstCombinePHI.cpp37 isNUW = BO->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI()
59 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI()
425 isNUW = BO->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI()
447 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DPHITransAddr.cpp259 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
433 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
DInstructionSimplify.cpp1039 (!IsSigned && Mul->hasNoUnsignedWrap())) in simplifyDiv()
1572 bool isNUW = AddInst->hasNoUnsignedWrap(); in simplifyAndOfICmpsWithAdd()
1643 bool isNUW = AddInst->hasNoUnsignedWrap(); in simplifyOrOfICmpsWithAdd()
2473 if (BO.hasNoUnsignedWrap()) { in setLimitsForBinOp()
2539 if (BO.hasNoUnsignedWrap()) { in setLimitsForBinOp()
2691 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in simplifyICmpWithBinOp()
2699 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in simplifyICmpWithBinOp()
2918 if (LBO->hasNoSignedWrap() || LBO->hasNoUnsignedWrap() || in simplifyICmpWithBinOp()
2963 bool NUW = LBO->hasNoUnsignedWrap() && RBO->hasNoUnsignedWrap(); in simplifyICmpWithBinOp()
3637 if (B->hasNoSignedWrap() || B->hasNoUnsignedWrap()) in SimplifyWithOpReplaced()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DPHITransAddr.cpp266 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
435 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
DInstructionSimplify.cpp848 (!isSigned && Mul->hasNoUnsignedWrap())) in SimplifyDiv()
1112 cast<OverflowingBinaryOperator>(Op0)->hasNoUnsignedWrap()) in SimplifyLShrInst()
1783 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
1789 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
1891 bool NUW = LBO->hasNoUnsignedWrap() && RBO->hasNoUnsignedWrap(); in SimplifyICmpInst()
2432 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), in SimplifyInstruction()
2438 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), in SimplifyInstruction()
2465 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), in SimplifyInstruction()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp261 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
436 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
/external/spirv-llvm/lib/SPIRV/
DSPIRVRegularizeLLVM.cpp136 if (BO->hasNoUnsignedWrap()) in regularize()
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp495 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation()
525 if (!BO->hasNoUnsignedWrap()) { in strengthenOverflowingOperation()
/external/swiftshader/third_party/LLVM/include/llvm/
DOperator.h95 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h274 bool hasNoUnsignedWrap() const;

1234