/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 72 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F() 74 EXPECT_FALSE(SubClone->hasNoUnsignedWrap()); in TEST_F() 76 EXPECT_FALSE(MulClone->hasNoUnsignedWrap()); in TEST_F() 89 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F() 91 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F() 93 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F() 106 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F() 108 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F() 110 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F() 123 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F() [all …]
|
/external/llvm/unittests/IR/ |
D | IRBuilderTest.cpp | 262 cast<BinaryOperator>(Builder.CreateNUWAdd(V, V))->hasNoUnsignedWrap()); in TEST_F() 264 cast<BinaryOperator>(Builder.CreateNUWMul(V, V))->hasNoUnsignedWrap()); in TEST_F() 266 cast<BinaryOperator>(Builder.CreateNUWSub(V, V))->hasNoUnsignedWrap()); in TEST_F() 269 ->hasNoUnsignedWrap()); in TEST_F() 284 ->hasNoUnsignedWrap()); in TEST_F() 286 ->hasNoUnsignedWrap()); in TEST_F() 288 ->hasNoUnsignedWrap()); in TEST_F() 291 ->hasNoUnsignedWrap()); in TEST_F()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 606 NewShl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in FoldShiftByConstant() 616 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant() 663 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant() 701 I.hasNoUnsignedWrap(), DL, TLI, DT, AC)) in visitShl() 711 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() 394 if (!I.hasNoUnsignedWrap() && in visitMul() 837 cast<OverflowingBinaryOperator>(LHS)->hasNoUnsignedWrap()); in commonIDivTransforms() 865 cast<OverflowingBinaryOperator>(LHS)->hasNoUnsignedWrap()); in commonIDivTransforms()
|
D | InstCombineAddSub.cpp | 1058 I.hasNoUnsignedWrap(), DL, TLI, DT, AC)) in visitAdd() 1138 New->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd() 1284 New->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd() 1293 New->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd() 1305 if (!I.hasNoUnsignedWrap() && in visitAdd() 1499 I.hasNoUnsignedWrap(), DL, TLI, DT, AC)) in visitSub() 1683 if (!I.hasNoUnsignedWrap() && WillNotOverflowUnsignedSub(Op0, Op1, I)) { in visitSub()
|
D | InstCombinePHI.cpp | 38 isNUW = BO->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI() 60 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI() 517 isNUW = BO->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI() 539 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI()
|
D | InstCombineSimplifyDemanded.cpp | 574 else if (IOp->hasNoUnsignedWrap()) in SimplifyDemandedUseBits() 853 New->setHasNoUnsignedWrap(Orig->hasNoUnsignedWrap()); in SimplifyShrShlDemandedBits()
|
D | InstCombineSelect.cpp | 237 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp() 272 BO->setHasNoUnsignedWrap(FVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
|
D | InstCombineCompares.cpp | 1682 if (cast<BinaryOperator>(LHSI)->hasNoUnsignedWrap()) in visitICmpInstWithInstAndIntCst() 3347 (CmpInst::isUnsigned(Pred) && BO0->hasNoUnsignedWrap()) || in visitICmpInst() 3351 (CmpInst::isUnsigned(Pred) && BO1->hasNoUnsignedWrap()) || in visitICmpInst() 3604 bool NUW = BO0->hasNoUnsignedWrap() && BO1->hasNoUnsignedWrap(); in visitICmpInst()
|
D | InstCombineVectorOps.cpp | 648 New->setHasNoUnsignedWrap(BO->hasNoUnsignedWrap()); in buildNew()
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 260 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr() 435 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
|
D | InstructionSimplify.cpp | 1040 (!isSigned && Mul->hasNoUnsignedWrap())) in SimplifyDiv() 1526 bool isNUW = AddInst->hasNoUnsignedWrap(); in SimplifyAndOfICmps() 1685 bool isNUW = AddInst->hasNoUnsignedWrap(); in SimplifyOrOfICmps() 2601 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in SimplifyICmpInst() 2607 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in SimplifyICmpInst() 2798 if (LBO->hasNoSignedWrap() || LBO->hasNoUnsignedWrap() || in SimplifyICmpInst() 2833 bool NUW = LBO->hasNoUnsignedWrap() && RBO->hasNoUnsignedWrap(); in SimplifyICmpInst() 3252 if (B->hasNoSignedWrap() || B->hasNoUnsignedWrap()) in SimplifyWithOpReplaced() 3959 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), DL, in SimplifyInstruction() 3969 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), DL, in SimplifyInstruction() [all …]
|
D | DemandedBits.cpp | 153 else if (S->hasNoUnsignedWrap()) in determineLiveOperandBits()
|
D | ValueTracking.cpp | 1773 if (OrZero || VOBO->hasNoUnsignedWrap() || VOBO->hasNoSignedWrap()) { in isKnownToBeAPowerOfTwo() 1950 if (BO->hasNoUnsignedWrap()) in isKnownNonZero() 2037 if ((BO->hasNoSignedWrap() || BO->hasNoUnsignedWrap()) && in isKnownNonZero() 3739 return OBO->hasNoUnsignedWrap() || OBO->hasNoSignedWrap(); in propagatesFullPoison() 3755 if (OBO->hasNoUnsignedWrap() || OBO->hasNoSignedWrap()) { in propagatesFullPoison()
|
D | BasicAliasAnalysis.cpp | 258 NUW &= BOp->hasNoUnsignedWrap(); in GetLinearExpression()
|
/external/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 104 BinOp->hasNoUnsignedWrap() * in getHashValue() 171 if (LHSBinOp->hasNoUnsignedWrap() != RHSBinOp->hasNoUnsignedWrap() || in isEqual()
|
D | SeparateConstOffsetFromGEP.cpp | 501 if (ZeroExtended && !BO->hasNoUnsignedWrap()) in CanTraceInto()
|
D | IndVarSimplify.cpp | 1124 else if(!IsSigned && OBO->hasNoUnsignedWrap()) in getExtendedOperandRecurrence()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 354 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation() 384 if (!BO->hasNoUnsignedWrap()) { in strengthenOverflowingOperation()
|
/external/llvm/include/llvm/IR/ |
D | Operator.h | 96 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
|
D | InstrTypes.h | 542 bool hasNoUnsignedWrap() const;
|
D | PatternMatch.h | 555 !Op->hasNoUnsignedWrap()) in match()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64AddressTypePromotion.cpp | 163 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap())) in canGetThrough()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 2185 bool BinaryOperator::hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function in BinaryOperator 2186 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap() 2201 setHasNoUnsignedWrap(OB->hasNoUnsignedWrap()); in copyIRFlags() 2216 setHasNoUnsignedWrap(hasNoUnsignedWrap() & OB->hasNoUnsignedWrap()); in andIRFlags()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyInstrMemory.td | 29 [{ return N->getFlags()->hasNoUnsignedWrap(); }]>;
|