Home
last modified time | relevance | path

Searched refs:isNegative (Results 1 – 25 of 112) sorted by relevance

12345

/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp1676 if (isNegative()) { in sdiv()
1681 if (RHS.isNegative()) in sdiv()
1687 if (isNegative()) { in sdiv()
1768 if (isNegative()) { in srem()
1773 if (RHS.isNegative()) in srem()
1779 if (isNegative()) { in srem()
2086 bool ResIsNegative = isNegative() ^ RHS.isNegative(); in smul_sat()
2845 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv()
2849 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv()
2899 if (A.isNegative()) { in SolveQuadraticEquationWrap()
[all …]
H A DAPFixedPoint.cpp44 NewVal = NewVal.isNegative() ? Mask : ~Mask; in convert()
51 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) { in convert()
309 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isNullValue()) in div()
374 if (Val.isSigned() && Val.isNegative() && Val != -Val) { in toString()
432 *Overflow = Result.isNegative() || Result.ugt(DstMax); in convertToInt()
H A DAPFloat.cpp256 bool isNegative; in readExponent() local
266 isNegative = (*p == '-'); in readExponent()
291 if (isNegative) in readExponent()
3764 if (isNegative()) in toString()
3772 if (isNegative()) in toString()
3792 if (isNegative()) in toString()
4030 if (!isNegative()) in next()
4067 if (isNegative()) { in next()
4387 LHS.isNegative() != RHS.isNegative()) { in addWithSpecial()
4571 auto Against = Floats[0].isNegative() ^ Floats[1].isNegative(); in compareAbsoluteValue()
[all …]
H A DKnownBits.cpp72 if (!KnownOut.isNegative() && !KnownOut.isNonNegative()) { in computeForAddSub()
80 else if (LHS.isNegative() && RHS.isNegative()) in computeForAddSub()
570 if (LHS.isNegative() && LowBits.intersects(LHS.One)) in srem()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h340 bool isNegative() const { return sign; } in isNegative() function
379 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero()
380 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero()
652 bool isNegative() const;
1090 if (isNegative()) in clearSign()
1094 if (isNegative() != RHS.isNegative()) in copySign()
1217 bool isNegative() const { return getIEEE().isNegative(); } in isNegative() function
1325 if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative())) in minimum()
1326 return A.isNegative() ? A : B; in minimum()
1338 if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative())) in maximum()
[all …]
H A DAPSInt.h48 bool isNegative() const { return isSigned() && APInt::isNegative(); } in isNegative() function
53 bool isNonNegative() const { return !isNegative(); } in isNonNegative()
315 if (I1.isNegative()) in compareValues()
319 if (I2.isNegative()) in compareValues()
H A DAPInt.h364 bool isNegative() const { return (*this)[BitWidth - 1]; }
369 bool isNonNegative() const { return !isNegative(); }
435 return !isNegative() && countTrailingOnesSlowCase() == BitWidth - 1;
451 return isNegative() && countTrailingZerosSlowCase() == BitWidth - 1;
1233 return (!isSingleWord() && getMinSignedBits() > 64) ? isNegative()
1303 return (!isSingleWord() && getMinSignedBits() > 64) ? !isNegative()
1689 return isNegative() ? countLeadingOnes() : countLeadingZeros();
1864 if (isNegative())
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp20 Value.isSigned() && Value.isNegative()) in testInRange()
44 if (Value.isSigned() && Value.isNegative()) in testInRange()
H A DBasicValueFactory.cpp279 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
288 if (V1.isSigned() && V1.isNegative()) in evalAPSInt()
302 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
H A DCheckerContext.cpp132 bool CheckerContext::isNegative(const Expr *E) { in isNegative() function in CheckerContext
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp67 if (!IsSigned || Known.isNegative() || Known.isNonNegative()) in fromKnownBits()
217 if (V.isNegative()) { in makeExactMulNSWRegion()
1279 if (MaxLHS.isNegative()) { in srem()
1419 } else if (getSignedMax().isNegative()) { in ashr()
1564 if (SMax.isNegative()) in abs()
1604 if (Max.isNegative() && OtherMax.isNegative() && in signedAddMayOverflow()
1611 if (Min.isNegative() && OtherMin.isNegative() && in signedAddMayOverflow()
1647 if (Min.isNonNegative() && OtherMax.isNegative() && in signedSubMayOverflow()
1650 if (Max.isNegative() && OtherMin.isNonNegative() && in signedSubMayOverflow()
1654 if (Max.isNonNegative() && OtherMin.isNegative() && in signedSubMayOverflow()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheck.cpp206 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in operator +()
217 if (LeftOperand.isNegative()) in operator +()
221 if (RightOperand.isNegative()) in operator +()
238 if (LeftOperand.isNegative() && !RightOperand.isNegative()) { in operator -()
253 if (LeftOperand.isNegative()) in operator -()
288 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator *()
320 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator /()
328 if (LeftOperand.isNegative() || RightOperand.isNegative()) in operator /()
339 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in max()
345 if (!LeftOperand.isNegative() && !RightOperand.isNegative()) { in max()
[all …]
H A DFileCheckImpl.h131 return Value == Other.Value && isNegative() == Other.isNegative();
139 bool isNegative() const { in isNegative() function
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAtomicRMW.cpp29 return CF->isZero() && CF->isNegative(); in isIdempotentRMW()
31 return CF->isZero() && !CF->isNegative(); in isIdempotentRMW()
H A DInstCombineCompares.cpp1157 if (AP2.isNegative() != AP1.isNegative()) in foldICmpShrConstConst()
1608 if (!XorC->isNegative()) in foldICmpXorConstant()
1682 if (Cmp.isSigned() && (C2.isNegative() || C1.isNegative())) in foldICmpAndShift()
1696 if (Cmp.isSigned() && (NewAndCst.isNegative() || NewCmpCst.isNegative())) in foldICmpAndShift()
1794 (Cmp.isEquality() || (!C1.isNegative() && !C2->isNegative()))) { in foldICmpAndConstConst()
1996 if (MulC->isNegative()) in foldICmpMulConstant()
3999 if (AP1.isNegative() == AP2.isNegative()) { in foldICmpBinOp()
5363 ((Op0Known.Zero.isNegative() && Op1Known.Zero.isNegative()) || in foldICmpUsingKnownBits()
5364 (Op0Known.One.isNegative() && Op1Known.One.isNegative()))) in foldICmpUsingKnownBits()
6100 if (RHS.isNegative()) in foldFCmpIntToFPConst()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DBoolean.h71 constexpr static bool isNegative() { return false; } in isNegative() function
72 constexpr static bool isPositive() { return !isNegative(); } in isPositive()
H A DIntegral.h131 bool isNegative() const { return V < T(0); }
132 bool isPositive() const { return !isNegative(); }
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp351 ((Mask & N_INFINITY) && Val.isInfinity() && Val.isNegative()) || in instCombineIntrinsic()
352 ((Mask & N_NORMAL) && Val.isNormal() && Val.isNegative()) || in instCombineIntrinsic()
353 ((Mask & N_SUBNORMAL) && Val.isDenormal() && Val.isNegative()) || in instCombineIntrinsic()
354 ((Mask & N_ZERO) && Val.isZero() && Val.isNegative()) || in instCombineIntrinsic()
355 ((Mask & P_ZERO) && Val.isZero() && !Val.isNegative()) || in instCombineIntrinsic()
356 ((Mask & P_SUBNORMAL) && Val.isDenormal() && !Val.isNegative()) || in instCombineIntrinsic()
357 ((Mask & P_NORMAL) && Val.isNormal() && !Val.isNegative()) || in instCombineIntrinsic()
358 ((Mask & P_INFINITY) && Val.isInfinity() && !Val.isNegative()); in instCombineIntrinsic()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUndefResultChecker.cpp121 C.isNegative(B->getRHS())) { in checkPostStmt()
150 C.isNegative(B->getLHS())) { in checkPostStmt()
H A DCastSizeChecker.cpp83 if (Left.isNegative()) in evenFlexibleArraySize()
H A DConversionChecker.cpp192 return C.isNegative(Cast->getSubExpr()); in isLossOfSign()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h96 bool isNegative() const { return One.isSignBitSet(); } in isNegative() function
248 if (isNegative()) in countMinSignBits()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_value.h189 bool isNegative() const { in isNegative() function
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DRecordLayout.h308 return !CXXInfo->VBPtrOffset.isNegative(); in hasVBPtr()
H A DCharUnits.h125 bool isNegative() const { return Quantity < 0; } in isNegative() function

12345