/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-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 …]
|
D | DemandedBits.cpp | 166 else if (S->hasNoUnsignedWrap()) in determineLiveOperandBits()
|
/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()
|
D | InstructionSimplify.cpp | 1025 (!isSigned && Mul->hasNoUnsignedWrap())) in SimplifyDiv() 1530 bool isNUW = AddInst->hasNoUnsignedWrap(); in SimplifyAndOfICmps() 1704 bool isNUW = AddInst->hasNoUnsignedWrap(); in SimplifyOrOfICmps() 2627 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in SimplifyICmpInst() 2633 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in SimplifyICmpInst() 2853 if (LBO->hasNoSignedWrap() || LBO->hasNoUnsignedWrap() || in SimplifyICmpInst() 2888 bool NUW = LBO->hasNoUnsignedWrap() && RBO->hasNoUnsignedWrap(); in SimplifyICmpInst() 3313 if (B->hasNoSignedWrap() || B->hasNoUnsignedWrap()) in SimplifyWithOpReplaced() 4102 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), DL, in SimplifyInstruction() 4112 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), DL, in SimplifyInstruction() [all …]
|
D | DemandedBits.cpp | 155 else if (S->hasNoUnsignedWrap()) in determineLiveOperandBits()
|
/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-subzero/include/llvm/IR/ |
D | Instruction.h | 274 bool hasNoUnsignedWrap() const;
|
/external/llvm/include/llvm/IR/ |
D | Instruction.h | 249 bool hasNoUnsignedWrap() const;
|
D | Operator.h | 96 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | Instruction.h | 305 bool hasNoUnsignedWrap() const;
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64AddressTypePromotion.cpp | 162 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap())) in canGetThrough()
|