Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/Support/
H A DKnownBits.cpp55 if (LHS.isNonNegative() && RHS.isNonNegative()) in computeForAddSub()
H A DAPInt.cpp1877 Overflow = isNonNegative() == RHS.isNonNegative() && in sadd_ov()
1878 Res.isNonNegative() != isNonNegative(); in sadd_ov()
1890 Overflow = isNonNegative() != RHS.isNonNegative() && in ssub_ov()
1891 Res.isNonNegative() != isNonNegative(); in ssub_ov()
1932 if (isNonNegative()) // Don't allow sign change. in sshl_ov()
2819 if (B.isNonNegative()) { in SolveQuadraticEquationWrap()
2867 assert(D.isNonNegative() && "Negative discriminant"); in SolveQuadraticEquationWrap()
2894 assert(X.isNonNegative() && "Solution should be non-negative"); in SolveQuadraticEquationWrap()
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DKnownBits.h99 bool isNonNegative() const { return Zero.isSignBitSet(); } in isNonNegative() function
158 if (isNonNegative()) in countMinSignBits()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp253 return Known.isNonNegative(); in isKnownNonNegative()
1069 else if (Known.isNonNegative() || Known2.isNonNegative()) in computeKnownBitsFromOperator()
1073 if (Known.isNonNegative() && Known2.isNonNegative()) in computeKnownBitsFromOperator()
1256 if (Known2.isNonNegative()) in computeKnownBitsFromOperator()
1393 if (Known2.isNonNegative() && Known3.isNonNegative()) in computeKnownBitsFromOperator()
2105 if (XKnown.isNonNegative() && YKnown.isNonNegative()) in isKnownNonZero()
4013 if (LHSKnown.isNonNegative() || RHSKnown.isNonNegative()) in computeOverflowForSignedMul()
4034 if (LHSKnown.isNonNegative() && RHSKnown.isNonNegative()) { in computeOverflowForUnsignedAdd()
4059 if (LHSKnown.isNonNegative() || RHSKnown.isNonNegative()) { in checkRippleForSignedAdd()
4132 (LHSKnown.isNonNegative() || RHSKnown.isNonNegative()); in computeOverflowForSignedAdd()
[all …]
H A DInstructionSimplify.cpp2440 if (LHSKnown.isNonNegative()) in simplifyICmpWithZero()
2448 if (LHSKnown.isNonNegative() && in simplifyICmpWithZero()
2457 if (LHSKnown.isNonNegative()) in simplifyICmpWithZero()
2465 if (LHSKnown.isNonNegative() && in simplifyICmpWithZero()
2840 if (RHSKnown.isNonNegative() && YKnown.isNegative()) in simplifyICmpWithBinOp()
2842 if (RHSKnown.isNegative() || YKnown.isNonNegative()) in simplifyICmpWithBinOp()
2892 if (RHSC->getValue().isNonNegative()) { in simplifyICmpWithBinOp()
2909 if (!Known.isNonNegative()) in simplifyICmpWithBinOp()
2920 if (!Known.isNonNegative()) in simplifyICmpWithBinOp()
2939 if (!Known.isNonNegative()) in simplifyICmpWithBinOp()
[all …]
H A DIVDescriptors.cpp139 if (!Bits.isNonNegative()) { in computeRecurrenceType()
H A DBasicAliasAnalysis.cpp1445 bool SignKnownZero = Known.isNonNegative(); in aliasGEP()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp101 !SizeRange.getSignedMin().isNonNegative()) { in getBoundsCheckCond()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp414 if (InputKnown.isNonNegative() || in SimplifyDemandedUseBits()
624 if (LHSKnown.isNonNegative() || LowBits.isSubsetOf(LHSKnown.Zero)) in SimplifyDemandedUseBits()
642 if (LHSKnown.isNonNegative()) in SimplifyDemandedUseBits()
H A DInstCombineLoadStoreAlloca.cpp924 if (Known.isNonNegative()) in canReplaceGEPIdxWithZero()
H A DInstCombineMulDivRem.cpp983 if (I.isExact() && Op1C->isNonNegative() && Op1C->isPowerOf2()) { in visitSDiv()
H A DInstCombineCalls.cpp2110 else if (Val->isNonNegative() == Val2->isNonNegative()) { in visitCallInst()
H A DInstCombineCasts.cpp1376 if (Known.isNonNegative()) { in visitSExt()
H A DInstructionCombining.cpp2159 BasePtrOffset.isNonNegative()) { in visitGetElementPtrInst()
H A DInstCombineAndOrXor.cpp797 if (!Known.isNonNegative()) in simplifyRangeCheck()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstantRange.cpp844 (UR.getUpper().isNonNegative() || UR.getUpper().isMinSignedValue())) in multiply()
1043 if (getSignedMin().isNonNegative()) { in ashr()
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DAPInt.h369 bool isNonNegative() const { return !isNegative(); } in isNonNegative() function
391 bool isStrictlyPositive() const { return isNonNegative() && !isNullValue(); } in isStrictlyPositive()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp93 if (Imm.isNonNegative() && Imm.getLimitedValue() < 256) in getIntImmCodeSizeCost()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1659 NonNegativeUse = RangeInfo->getSignedMin().isNonNegative(); in pushNarrowIVUsers()
1783 !NarrowDefRHS->isNonNegative()) in calculatePostIncRange()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2885 if (CLHS->getAPIntValue().isNonNegative()) { in computeKnownBits()
3100 if (Known2.isNonNegative()) { in computeKnownBits()
3167 if (ValueLow.isNonNegative() && ValueHigh.isNonNegative()) { in computeKnownBits()
3565 if (Known.isNonNegative()) in ComputeNumSignBits()
3588 if (Known.isNonNegative()) in ComputeNumSignBits()
3782 if (Known.isNonNegative()) { // sign bit is 0 in ComputeNumSignBits()
H A DTargetLowering.cpp1144 if (Known.isNonNegative()) in SimplifyDemandedBits()
2454 return DAG.getConstant(C1.isNonNegative(), dl, VT); in SimplifySetCC()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DPatternMatch.h339 bool isValue(const APInt &C) { return C.isNonNegative(); } in isValue()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp837 assert(ExtentInt.isNonNegative() || ExtentInt.isUnsigned()); in collectSubRegionBindings()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp564 if ((Known.Zero.isNonNegative() && Known.Zero.ule(NullTermIdx)) || in optimizeStringLength()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp4323 bool LHSPositive = LHSKnown.isNonNegative(); in computeKnownBitsForTargetNode()
4325 bool RHSPositive = RHSKnown.isNonNegative(); in computeKnownBitsForTargetNode()

12