/external/swiftshader/third_party/LLVM/unittests/Transforms/Utils/ |
D | Cloning.cpp | 62 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/ |
D | Cloning.cpp | 71 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/ |
D | Cloning.cpp | 76 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/ |
D | IRBuilderTest.cpp | 272 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/ |
D | Instruction.cpp | 111 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/ |
D | IRBuilderTest.cpp | 356 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()
|
D | InstructionsTest.cpp | 622 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/ |
D | Instruction.cpp | 113 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/ |
D | InstCombineMulDivRem.cpp | 85 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()
|
D | InstCombineShifts.cpp | 592 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()
|
D | InstCombineAddSub.cpp | 952 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/ |
D | InstCombineShifts.cpp | 607 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()
|
D | InstCombineMulDivRem.cpp | 65 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()
|
D | InstCombineAddSub.cpp | 1038 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/ |
D | InstCombineAddSub.cpp | 91 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()
|
D | InstCombinePHI.cpp | 37 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/ |
D | PHITransAddr.cpp | 259 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr() 433 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
|
D | InstructionSimplify.cpp | 1039 (!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/ |
D | PHITransAddr.cpp | 266 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr() 435 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
|
D | InstructionSimplify.cpp | 848 (!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/ |
D | PHITransAddr.cpp | 261 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr() 436 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
|
/external/spirv-llvm/lib/SPIRV/ |
D | SPIRVRegularizeLLVM.cpp | 136 if (BO->hasNoUnsignedWrap()) in regularize()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 495 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation() 525 if (!BO->hasNoUnsignedWrap()) { in strengthenOverflowingOperation()
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Operator.h | 95 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Instruction.h | 274 bool hasNoUnsignedWrap() const;
|