Searched refs:isNonNegative (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp69 if (!KnownOut.isNegative() && !KnownOut.isNonNegative()) {
73 if (LHS.isNonNegative() && RHS.isNonNegative())
H A DAPInt.cpp1958 Overflow = isNonNegative() == RHS.isNonNegative() &&
1959 Res.isNonNegative() != isNonNegative();
1971 Overflow = isNonNegative() != RHS.isNonNegative() &&
1972 Res.isNonNegative() != isNonNegative();
2020 if (isNonNegative()) // Don't allow sign change.
2947 if (B.isNonNegative()) {
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h98 bool isNonNegative() const { return Zero.isSignBitSet(); } function in struct:llvm::KnownBits
183 if (isNonNegative())
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp66 if (!IsSigned || Known.isNegative() || Known.isNonNegative())
361 return !isSignWrappedSet() && Lower.isNonNegative();
964 (UR.getUpper().isNonNegative() || UR.getUpper().isMinSignedValue()))
1167 if (MinLHS.isNonNegative()) {
1284 if (getSignedMin().isNonNegative()) {
1386 APInt NewL = Min.sshl_sat(Min.isNonNegative() ? ShAmtMin : ShAmtMax);
1418 if (SMin.isNonNegative())
1459 if (Min.isNonNegative() && OtherMin.isNonNegative() &&
1466 if (Max.isNonNegative()
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h53 bool isNonNegative() const { return !isNegative(); } function in class:llvm::APSInt
61 bool isStrictlyPositive() const { return isNonNegative() && !isNullValue(); }
H A DAPInt.h368 bool isNonNegative() const { return !isNegative(); } function
390 bool isStrictlyPositive() const { return isNonNegative() && !isNullValue(); }
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp101 !SizeRange.getSignedMin().isNonNegative()) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp253 return Known.isNonNegative();
339 bool isKnownNonNegativeOp1 = Known.isNonNegative();
340 bool isKnownNonNegativeOp0 = Known2.isNonNegative();
436 else if (isKnownNegative && !Known.isNonNegative())
849 if (RHSKnown.isNonNegative()) {
862 if (RHSKnown.isAllOnes() || RHSKnown.isNonNegative()) {
1146 else if (Known.isNonNegative() || Known2.isNonNegative())
1150 if (Known.isNonNegative() && Known2.isNonNegative())
[all...]
H A DInstructionSimplify.cpp2629 if (LHSKnown.isNonNegative())
2637 if (LHSKnown.isNonNegative() &&
2646 if (LHSKnown.isNonNegative())
2654 if (LHSKnown.isNonNegative() &&
2792 if (RHSKnown.isNonNegative() && YKnown.isNegative())
2794 if (RHSKnown.isNegative() || YKnown.isNonNegative())
2808 if (LHSKnown.isNonNegative() && YKnown.isNegative())
2810 if (LHSKnown.isNegative() || YKnown.isNonNegative())
2844 if (RHSC->getValue().isNonNegative()) {
2861 if (!Known.isNonNegative())
[all...]
H A DIVDescriptors.cpp137 if (!Bits.isNonNegative()) {
H A DBasicAliasAnalysis.cpp1487 bool SignKnownZero = Known.isNonNegative();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp442 if (InputKnown.isNonNegative() ||
652 if (LHSKnown.isNonNegative() || LowBits.isSubsetOf(LHSKnown.Zero))
670 if (LHSKnown.isNonNegative())
H A DInstCombineLoadStoreAlloca.cpp891 if (Known.isNonNegative())
H A DInstCombineMulDivRem.cpp1075 if (I.isExact() && Op1C->isNonNegative() && Op1C->isPowerOf2()) {
H A DInstCombineCasts.cpp1378 if (Known.isNonNegative())
H A DInstCombineCalls.cpp2139 else if (Val->isNonNegative() == Val2->isNonNegative()) {
H A DInstCombineAndOrXor.cpp794 if (!Known.isNonNegative())
H A DInstructionCombining.cpp2293 BasePtrOffset.isNonNegative()) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1736 NonNegativeUse = RangeInfo->getSignedMin().isNonNegative();
1855 !NarrowDefRHS->isNonNegative())
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp106 if (Imm.isNonNegative() && Imm.getLimitedValue() < 256)
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3193 if (Known2.isNonNegative() || LowBits.isSubsetOf(Known2.Zero))
3318 if (Known2.isNonNegative()) {
3385 if (ValueLow.isNonNegative() && ValueHigh.isNonNegative()) {
3788 if (Known.isNonNegative())
3811 if (Known.isNonNegative())
4046 if (Known.isNonNegative()) { // sign bit is 0
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h367 bool isValue(const APInt &C) { return C.isNonNegative(); }
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp883 assert(ExtentInt.isNonNegative() || ExtentInt.isUnsigned());
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp4484 bool LHSNonNegative = LHSKnown.isNonNegative();
4487 bool RHSNonNegative = RHSKnown.isNonNegative();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp703 if ((Known.Zero.isNonNegative() && Known.Zero.ule(NullTermIdx)) ||

Completed in 391 milliseconds

12