Home
last modified time | relevance | path

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

123

/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/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/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()
DInstCombineSimplifyDemanded.cpp573 else if (IOp->hasNoUnsignedWrap()) in SimplifyDemandedUseBits()
883 New->setHasNoUnsignedWrap(Orig->hasNoUnsignedWrap()); in SimplifyShrShlDemandedBits()
/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()
DInstCombineMulDivRem.cpp62 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero()
126 if (I.hasNoUnsignedWrap()) Shl->setHasNoUnsignedWrap(); in visitMul()
DInstCombineShifts.cpp631 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitShl()
642 if (!I.hasNoUnsignedWrap() && in visitShl()
DInstCombineSelect.cpp234 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
269 BO->setHasNoUnsignedWrap(FVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
DInstCombineCompares.cpp1266 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/
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/spirv-llvm/lib/SPIRV/
DSPIRVRegularizeLLVM.cpp136 if (BO->hasNoUnsignedWrap()) in regularize()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp261 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
436 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
DInstructionSimplify.cpp1025 (!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 …]
DDemandedBits.cpp155 else if (S->hasNoUnsignedWrap()) in determineLiveOperandBits()
/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/llvm/include/llvm/IR/
DInstruction.h249 bool hasNoUnsignedWrap() const;
DOperator.h96 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp162 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap())) in canGetThrough()

123