Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
DScalarEvolutionExpressions.h179 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
/third_party/skia/third_party/externals/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()
DInstCombineSimplifyDemanded.cpp512 else if (IOp->hasNoUnsignedWrap()) in SimplifyDemandedUseBits()
982 New->setHasNoUnsignedWrap(Orig->hasNoUnsignedWrap()); in simplifyShrShlDemandedBits()
DInstCombineCompares.cpp2077 if (Shl->hasNoUnsignedWrap()) { in foldICmpShlConstant()
2509 ((Cmp.isUnsigned() && Sub->hasNoUnsignedWrap()) || in foldICmpSubConstant()
2574 (Add->hasNoUnsignedWrap() && in foldICmpAddConstant()
3729 (CmpInst::isUnsigned(Pred) && BO0->hasNoUnsignedWrap()) || in foldICmpBinOp()
3734 (CmpInst::isUnsigned(Pred) && BO1->hasNoUnsignedWrap()) || in foldICmpBinOp()
4032 bool NUW = BO0->hasNoUnsignedWrap() && BO1->hasNoUnsignedWrap(); in foldICmpBinOp()
/third_party/skia/third_party/externals/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()
DInstructionSimplify.cpp1065 (!IsSigned && Q.IIQ.hasNoUnsignedWrap(Mul))) in simplifyDiv()
1669 bool isNUW = IIQ.hasNoUnsignedWrap(AddInst); in simplifyAndOfICmpsWithAdd()
1742 bool isNUW = IIQ.hasNoUnsignedWrap(AddInst); in simplifyOrOfICmpsWithAdd()
2723 Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(LBO))) || in simplifyICmpWithBinOp()
2733 Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(RBO))) || in simplifyICmpWithBinOp()
2954 Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(LBO)) || in simplifyICmpWithBinOp()
3001 bool NUW = Q.IIQ.hasNoUnsignedWrap(LBO) && Q.IIQ.hasNoUnsignedWrap(RBO); in simplifyICmpWithBinOp()
3732 if (Q.IIQ.hasNoSignedWrap(B) || Q.IIQ.hasNoUnsignedWrap(B)) in SimplifyWithOpReplaced()
5358 Q.IIQ.hasNoUnsignedWrap(cast<BinaryOperator>(I)), Q); in SimplifyInstruction()
5368 Q.IIQ.hasNoUnsignedWrap(cast<BinaryOperator>(I)), Q); in SimplifyInstruction()
[all …]
DDemandedBits.cpp195 else if (S->hasNoUnsignedWrap()) in determineLiveOperandBits()
DScalarEvolution.cpp277 if (AR->hasNoUnsignedWrap()) in print()
319 if (NAry->hasNoUnsignedWrap()) in print()
1701 if (!AR->hasNoUnsignedWrap()) { in getZeroExtendExpr()
1708 if (AR->hasNoUnsignedWrap()) in getZeroExtendExpr()
1871 if (SA->hasNoUnsignedWrap()) { in getZeroExtendExpr()
1904 if (SM->hasNoUnsignedWrap()) { in getZeroExtendExpr()
3351 if (!Mul || !Mul->hasNoUnsignedWrap()) in getUDivExactExpr()
3895 if (I->hasNoUnsignedWrap() && !NS->hasNoUnsignedWrap()) in SCEVLostPoisonFlags()
4459 if (!AR->hasNoUnsignedWrap()) { in proveNoWrapViaConstantRanges()
4493 IsNUW = OBO->hasNoUnsignedWrap(); in BinaryOp()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h274 bool hasNoUnsignedWrap() const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstruction.h346 bool hasNoUnsignedWrap() const;
DOperator.h90 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp732 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation()
744 if (!BO->hasNoUnsignedWrap() && in strengthenOverflowingOperation()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp255 return I.hasNoUnsignedWrap(); in promotedOpIsNSW()
269 return I.hasNoUnsignedWrap(); in promotedOpIsNUW()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1276 else if(ExtKind == ZeroExtended && OBO->hasNoUnsignedWrap()) in getExtendedOperandRecurrence()
1440 else if (ExtKind == ZeroExtended && OBO->hasNoUnsignedWrap()) in widenWithVariantLoadUse()
2467 if (BO->hasNoUnsignedWrap()) in linearFunctionTestReplace()
2468 BO->setHasNoUnsignedWrap(AR->hasNoUnsignedWrap()); in linearFunctionTestReplace()
DSeparateConstOffsetFromGEP.cpp542 if (ZeroExtended && !BO->hasNoUnsignedWrap()) in CanTraceInto()
DCorrelatedValuePropagation.cpp751 bool NUW = BinOp->hasNoUnsignedWrap(); in processBinOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTypePromotion.cpp417 return cast<Instruction>(V)->hasNoUnsignedWrap(); in isPromotedResultSafe()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrMemory.td28 [{ return N->getFlags().hasNoUnsignedWrap(); }]>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGDumper.cpp520 if (getFlags().hasNoUnsignedWrap()) in print_details()

12