Home
last modified time | relevance | path

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

123456

/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/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-project/llvm/unittests/Transforms/Utils/
DCloningTest.cpp79 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
81 EXPECT_FALSE(SubClone->hasNoUnsignedWrap()); in TEST_F()
83 EXPECT_FALSE(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_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
115 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
117 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
130 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
[all …]
/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-10.0/llvm/lib/Transforms/Instrumentation/
DPoisonChecking.cpp122 if (I.hasNoUnsignedWrap()) { in generatePoisonChecksForBinOp()
135 if (I.hasNoUnsignedWrap()) { in generatePoisonChecksForBinOp()
148 if (I.hasNoUnsignedWrap()) { in generatePoisonChecksForBinOp()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DPoisonChecking.cpp120 if (I.hasNoUnsignedWrap()) { in generateCreationChecksForBinOp()
133 if (I.hasNoUnsignedWrap()) { in generateCreationChecksForBinOp()
146 if (I.hasNoUnsignedWrap()) { in generateCreationChecksForBinOp()
/external/llvm-project/llvm/lib/IR/
DInstruction.cpp131 bool Instruction::hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function in Instruction
132 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
272 setHasNoUnsignedWrap(OB->hasNoUnsignedWrap()); in copyIRFlags()
295 setHasNoUnsignedWrap(hasNoUnsignedWrap() & OB->hasNoUnsignedWrap()); in andIRFlags()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstruction.cpp112 bool Instruction::hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function in Instruction
113 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
248 setHasNoUnsignedWrap(OB->hasNoUnsignedWrap()); in copyIRFlags()
271 setHasNoUnsignedWrap(hasNoUnsignedWrap() & OB->hasNoUnsignedWrap()); in andIRFlags()
/external/llvm-project/llvm/include/llvm/Analysis/
DInstructionSimplify.h74 template <class InstT> bool hasNoUnsignedWrap(const InstT *Op) const { in hasNoUnsignedWrap() function
76 return Op->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DInstructionSimplify.h71 template <class InstT> bool hasNoUnsignedWrap(const InstT *Op) const { in hasNoUnsignedWrap() function
73 return Op->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
/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/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp144 NewShift->setHasNoUnsignedWrap(Sh0->hasNoUnsignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
145 Sh1->hasNoUnsignedWrap()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
889 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), Q)) in visitShl()
933 NewShl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitShl()
954 NewShl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitShl()
982 if (!I.hasNoUnsignedWrap() && in visitShl()
1069 if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) { in visitLShr()
1083 if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) { in visitLShr()
DInstCombineAddSub.cpp911 if (Add.hasNoSignedWrap() || Add.hasNoUnsignedWrap()) in foldAddWithConstant()
1114 BOp->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in canonicalizeLowbitMask()
1265 bool HasNUW = I.hasNoUnsignedWrap() && Op0->hasNoUnsignedWrap() && in factorizeMathWithShlOps()
1266 Op1->hasNoUnsignedWrap(); in factorizeMathWithShlOps()
1282 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitAdd()
1314 Shl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd()
1421 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedAdd(LHS, RHS, I)) { in visitAdd()
1697 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitSub()
1746 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedSub(Op0, Op1, I)) { in visitSub()
2022 I.hasNoUnsignedWrap())) in visitSub()
[all …]
DInstCombineMulDivRem.cpp85 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero()
177 if (I.hasNoUnsignedWrap() && Mul->hasNoUnsignedWrap()) in visitMul()
190 if (I.hasNoUnsignedWrap()) in visitMul()
315 if (I.hasNoUnsignedWrap()) in visitMul()
372 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedMul(Op0, Op1, I)) { in visitMul()
754 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
780 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
828 bool HasNUW = cast<OverflowingBinaryOperator>(Op1)->hasNoUnsignedWrap(); in commonIDivTransforms()
/external/llvm-project/llvm/unittests/IR/
DIRBuilderTest.cpp668 cast<BinaryOperator>(Builder.CreateNUWAdd(V, V))->hasNoUnsignedWrap()); in TEST_F()
670 cast<BinaryOperator>(Builder.CreateNUWMul(V, V))->hasNoUnsignedWrap()); in TEST_F()
672 cast<BinaryOperator>(Builder.CreateNUWSub(V, V))->hasNoUnsignedWrap()); in TEST_F()
675 ->hasNoUnsignedWrap()); in TEST_F()
690 ->hasNoUnsignedWrap()); in TEST_F()
692 ->hasNoUnsignedWrap()); in TEST_F()
694 ->hasNoUnsignedWrap()); in TEST_F()
697 ->hasNoUnsignedWrap()); in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp84 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero()
206 if (I.hasNoUnsignedWrap() && Mul->hasNoUnsignedWrap()) in visitMul()
219 if (I.hasNoUnsignedWrap()) in visitMul()
349 if (I.hasNoUnsignedWrap()) in visitMul()
385 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedMul(Op0, Op1, I)) { in visitMul()
727 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
753 Mul->setHasNoUnsignedWrap(!IsSigned && OBO->hasNoUnsignedWrap()); in commonIDivTransforms()
801 bool HasNUW = cast<OverflowingBinaryOperator>(Op1)->hasNoUnsignedWrap(); in commonIDivTransforms()
DInstCombineShifts.cpp143 NewShift->setHasNoUnsignedWrap(Sh0->hasNoUnsignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
144 Sh1->hasNoUnsignedWrap()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
929 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), Q)) in visitShl()
974 NewShl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitShl()
997 if (!I.hasNoUnsignedWrap() && in visitShl()
1084 if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) { in visitLShr()
1098 if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) { in visitLShr()
DInstCombineAddSub.cpp914 if (Add.hasNoSignedWrap() || Add.hasNoUnsignedWrap()) in foldAddWithConstant()
1076 BOp->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in canonicalizeLowbitMask()
1207 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitAdd()
1281 Shl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd()
1396 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedAdd(LHS, RHS, I)) { in visitAdd()
1681 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitSub()
2064 I.hasNoUnsignedWrap())) in visitSub()
2090 Value *Neg = Builder.CreateNeg(A, "", I.hasNoUnsignedWrap(), in visitSub()
2107 if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedSub(Op0, Op1, I)) { in visitSub()
DInstructionCombining.cpp241 static bool hasNoUnsignedWrap(BinaryOperator &I) { in hasNoUnsignedWrap() function
243 return OBO && OBO->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
355 bool IsNUW = hasNoUnsignedWrap(I) && hasNoUnsignedWrap(*Op0); in SimplifyAssociativeOrCommutative()
453 bool IsNUW = hasNoUnsignedWrap(I) && in SimplifyAssociativeOrCommutative()
454 hasNoUnsignedWrap(*Op0) && in SimplifyAssociativeOrCommutative()
455 hasNoUnsignedWrap(*Op1); in SimplifyAssociativeOrCommutative()
619 HasNUW = I.hasNoUnsignedWrap(); in tryFactorization()
624 HasNUW &= LOBO->hasNoUnsignedWrap(); in tryFactorization()
629 HasNUW &= ROBO->hasNoUnsignedWrap(); in tryFactorization()
/external/llvm-project/llvm/lib/Analysis/
DPHITransAddr.cpp258 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
432 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DPHITransAddr.cpp258 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
432 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp261 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
436 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp495 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation()
525 if (!BO->hasNoUnsignedWrap()) { in strengthenOverflowingOperation()

123456