Home
last modified time | relevance | path

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

12

/external/llvm/unittests/Transforms/Utils/
DCloning.cpp72 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/
DIRBuilderTest.cpp262 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/
DInstCombineShifts.cpp606 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()
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()
394 if (!I.hasNoUnsignedWrap() && in visitMul()
837 cast<OverflowingBinaryOperator>(LHS)->hasNoUnsignedWrap()); in commonIDivTransforms()
865 cast<OverflowingBinaryOperator>(LHS)->hasNoUnsignedWrap()); in commonIDivTransforms()
DInstCombineAddSub.cpp1058 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()
DInstCombinePHI.cpp38 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()
DInstCombineSimplifyDemanded.cpp574 else if (IOp->hasNoUnsignedWrap()) in SimplifyDemandedUseBits()
853 New->setHasNoUnsignedWrap(Orig->hasNoUnsignedWrap()); in SimplifyShrShlDemandedBits()
DInstCombineSelect.cpp237 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
272 BO->setHasNoUnsignedWrap(FVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
DInstCombineCompares.cpp1682 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()
DInstCombineVectorOps.cpp648 New->setHasNoUnsignedWrap(BO->hasNoUnsignedWrap()); in buildNew()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp260 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
435 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
DInstructionSimplify.cpp1040 (!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 …]
DDemandedBits.cpp153 else if (S->hasNoUnsignedWrap()) in determineLiveOperandBits()
DValueTracking.cpp1773 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()
DBasicAliasAnalysis.cpp258 NUW &= BOp->hasNoUnsignedWrap(); in GetLinearExpression()
/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp104 BinOp->hasNoUnsignedWrap() * in getHashValue()
171 if (LHSBinOp->hasNoUnsignedWrap() != RHSBinOp->hasNoUnsignedWrap() || in isEqual()
DSeparateConstOffsetFromGEP.cpp501 if (ZeroExtended && !BO->hasNoUnsignedWrap()) in CanTraceInto()
DIndVarSimplify.cpp1124 else if(!IsSigned && OBO->hasNoUnsignedWrap()) in getExtendedOperandRecurrence()
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp354 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation()
384 if (!BO->hasNoUnsignedWrap()) { in strengthenOverflowingOperation()
/external/llvm/include/llvm/IR/
DOperator.h96 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
DInstrTypes.h542 bool hasNoUnsignedWrap() const;
DPatternMatch.h555 !Op->hasNoUnsignedWrap()) in match()
/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp163 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap())) in canGetThrough()
/external/llvm/lib/IR/
DInstructions.cpp2185 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/
DWebAssemblyInstrMemory.td29 [{ return N->getFlags()->hasNoUnsignedWrap(); }]>;

12