/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/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/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()
|
D | InstCombineSimplifyDemanded.cpp | 573 else if (IOp->hasNoUnsignedWrap()) in SimplifyDemandedUseBits() 883 New->setHasNoUnsignedWrap(Orig->hasNoUnsignedWrap()); in SimplifyShrShlDemandedBits()
|
/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()
|
D | InstCombineMulDivRem.cpp | 62 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero() 126 if (I.hasNoUnsignedWrap()) Shl->setHasNoUnsignedWrap(); in visitMul()
|
D | InstCombineShifts.cpp | 631 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitShl() 642 if (!I.hasNoUnsignedWrap() && in visitShl()
|
D | InstCombineSelect.cpp | 234 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp() 269 BO->setHasNoUnsignedWrap(FVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
|
D | InstCombineCompares.cpp | 1266 if (cast<BinaryOperator>(LHSI)->hasNoUnsignedWrap()) in visitICmpInstWithInstAndIntCst() 2275 (CmpInst::isUnsigned(Pred) && BO0->hasNoUnsignedWrap()) || in visitICmpInst() 2279 (CmpInst::isUnsigned(Pred) && BO1->hasNoUnsignedWrap()) || in visitICmpInst() 2430 bool NUW = BO0->hasNoUnsignedWrap() && BO1->hasNoUnsignedWrap(); in visitICmpInst()
|
/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/spirv-llvm/lib/SPIRV/ |
D | SPIRVRegularizeLLVM.cpp | 136 if (BO->hasNoUnsignedWrap()) in regularize()
|
/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/include/llvm/ |
D | Operator.h | 95 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
|
/external/llvm/include/llvm/IR/ |
D | Instruction.h | 249 bool hasNoUnsignedWrap() const;
|
D | Operator.h | 96 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64AddressTypePromotion.cpp | 162 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap())) in canGetThrough()
|