| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APFloat.h | 504 bool isNegative() const { return sign; } in isNegative() function 543 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero() 544 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero() 620 return isNegative() ? INT_MIN : getExactLog2Abs(); in getExactLog2() 863 LLVM_ABI bool isNegative() const; 1323 if (isNegative()) in clearSign() 1327 if (isNegative() != RHS.isNegative()) in copySign() 1467 bool isNegative() const { return getIEEE().isNegative(); } in isNegative() function 1478 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero() 1479 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero() [all …]
|
| H A D | APSInt.h | 50 bool isNegative() const { return isSigned() && APInt::isNegative(); } in isNegative() function 55 bool isNonNegative() const { return !isNegative(); } in isNonNegative() 339 if (I1.isNegative()) in compareValues() 343 if (I2.isNegative()) in compareValues()
|
| H A D | APInt.h | 329 bool isNegative() const { return (*this)[BitWidth - 1]; } in isNegative() function 334 bool isNonNegative() const { return !isNegative(); } in isNonNegative() 410 return !isNegative() && countTrailingOnesSlowCase() == BitWidth - 1; in isMaxSignedValue() 428 return isNegative() && countTrailingZerosSlowCase() == BitWidth - 1; in isMinSignedValue() 1140 ? isNegative() in slt() 1211 ? !isNegative() in sgt() 1629 return isNegative() ? countl_one() : countl_zero(); in getNumSignBits() 1796 if (isNegative()) in abs()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 132 if (MaxVal.isNegative()) { in computeForAddSub() 342 if (LHS.isNegative()) in shl() 559 if (isNegative()) { in abs() 624 if (Add && ((LHS.isNegative() && RHS.isNonNegative()) || in computeForSatAddSub() 625 (LHS.isNonNegative() && RHS.isNegative()))) in computeForSatAddSub() 627 else if (!Add && (((LHS.isNegative() && RHS.isNegative()) || in computeForSatAddSub() 647 if (Res.isNegative()) { in computeForSatAddSub() 657 if (LHS.isNegative() && RHS.isNegative()) in computeForSatAddSub() 661 if (LHS.isNegative() || RHS.isNegative()) in computeForSatAddSub() 666 if (Res.isNegative()) { in computeForSatAddSub() [all …]
|
| H A D | APInt.cpp | 300 bool lhsNeg = isNegative(); in compareSigned() 301 bool rhsNeg = RHS.isNegative(); in compareSigned() 593 unsigned isNegative = *p == '-'; in getBitsNeeded() local 609 return isNegative + 1; in getBitsNeeded() 610 } else if (isNegative && tmp.isPowerOf2()) { in getBitsNeeded() 611 return isNegative + log; in getBitsNeeded() 613 return isNegative + log + 1; in getBitsNeeded() 980 return isNegative() ? APInt::getSignedMinValue(width) in truncSSat() 1005 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext() 1063 bool Negative = isNegative(); in ashrSlowCase() [all …]
|
| H A D | APFixedPoint.cpp | 63 NewVal = NewVal.isNegative() ? Mask : ~Mask; in convert() 70 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) { in convert() 337 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isZero()) in div() 416 if (Val.isSigned() && Val.isNegative()) { in toString() 486 *Overflow = Result.isNegative() || Result.ugt(DstMax); in convertToInt()
|
| H A D | APFloat.cpp | 438 bool isNegative; in readExponent() local 448 isNegative = (*p == '-'); in readExponent() 473 if (isNegative) in readExponent() 2477 bool inputSign = isNegative(); in roundToIntegral() 2486 if (inputSign != isNegative()) in roundToIntegral() 2898 if (isSigned && api.isNegative()) { in convertFromAPInt() 4514 if (isNegative()) in toString() 4522 if (isNegative()) in toString() 4549 toStringImpl(Str, isNegative(), exp, significand, FormatPrecision, in toString() 4640 if (!isNegative()) in next() [all …]
|
| H A D | DivisionByConstantInfo.cpp | 61 if (D.isNegative()) in get()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAtomicRMW.cpp | 28 return CF->isZero() && CF->isNegative(); in isIdempotentRMW() 30 return CF->isZero() && !CF->isNegative(); in isIdempotentRMW() 67 return !CF->isNegative() && CF->isInfinity(); in isSaturating() 70 return CF->isNegative() && CF->isInfinity(); in isSaturating()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | APSIntType.cpp | 20 Value.isSigned() && Value.isNegative()) in testInRange() 44 if (Value.isSigned() && Value.isNegative()) in testInRange()
|
| H A D | BasicValueFactory.cpp | 275 if (V2.isNegative() || V2.getBitWidth() > 64) in evalAPSInt() 290 if (V2.isNegative() || V2.getBitWidth() > 64) in evalAPSInt()
|
| H A D | CheckerContext.cpp | 167 bool CheckerContext::isNegative(const Expr *E) { in isNegative() function in CheckerContext
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFPRange.cpp | 64 if (LHS.isNegative() == RHS.isNegative()) in strictCompare() 66 return LHS.isNegative() ? APFloat::cmpLessThan : APFloat::cmpGreaterThan; in strictCompare() 323 if (!MayBeSNaN && !MayBeQNaN && Lower.isNegative() == Upper.isNegative()) in getSignBit() 324 return Lower.isNegative(); in getSignBit()
|
| H A D | ConstantRange.cpp | 69 if (!IsSigned || Known.isNegative() || Known.isNonNegative()) in fromKnownBits() 314 if (V.isNegative()) { in makeExactMulNSWRegion() 350 SMin.isNegative() ? SignedMinVal - SMin : SignedMinVal, in makeGuaranteedNoWrapRegion() 362 SMin.isNegative() ? SignedMinVal + SMin : SignedMinVal); in makeGuaranteedNoWrapRegion() 1509 if (MaxLHS.isNegative()) { in srem() 1761 else if (LHSMax.isNegative()) in computeShlNSW() 1841 } else if (getSignedMax().isNegative()) { in ashr() 1935 APInt NewU = Max.sshl_sat(Max.isNegative() ? ShAmtMin : ShAmtMax) + 1; in sshl_sat() 1981 if (SMax.isNegative()) in abs() 2173 if (Max.isNegative() && OtherMax.isNegative() && in signedAddMayOverflow() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Boolean.h | 67 constexpr static bool isNegative() { return false; } in isNegative() function 68 constexpr static bool isPositive() { return !isNegative(); } in isPositive()
|
| H A D | FixedPoint.h | 58 bool isNegative() const { return V.getValue().isNegative(); } in isNegative() function
|
| H A D | Floating.h | 142 bool isNegative() const { return getValue().isNegative(); } in isNegative() function
|
| H A D | Integral.h | 156 bool isNegative() const { return V < ReprT(0); } 157 bool isPositive() const { return !isNegative(); }
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCombinerHelper.cpp | 166 if (FPValReg->Value.isZero() && !FPValReg->Value.isNegative()) in isConstantCostlierToNegate() 485 if (SelectTrueVal->isNegative() != SelectFalseVal->isNegative()) in matchCombineFmulWithSelectToFldexp() 508 if (SelectTrueVal->isNegative()) { in matchCombineFmulWithSelectToFldexp()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ArrayBoundChecker.cpp | 288 static bool isNegative(SValBuilder &SVB, ProgramStateRef State, NonLoc Value) { in isNegative() function 290 return MaxV && MaxV->isNegative(); in isNegative() 320 if (isNegative(SVB, State, Value) && isUnsigned(SVB, Threshold)) { in compareValueToThreshold() 328 if (isUnsigned(SVB, Value) && isNegative(SVB, State, Threshold)) { in compareValueToThreshold()
|
| H A D | CastSizeChecker.cpp | 85 if (Left.isNegative()) in evenFlexibleArraySize()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 702 if (Index.isNegative() || Index.getActiveBits() >= 32) in getConstantAtOffset() 1341 APFloat::getZero(APF.getSemantics(), APF.isNegative())); in flushDenormalConstant() 1970 return APFloat::getZero(V.getSemantics(), V.isNegative()); in FTZPreserveSign() 2175 APFloat::getZero(Src.getSemantics(), Src.isNegative())); in constantFoldCanonicalize() 2206 (!Src.isNegative() || DenormMode.Input == DenormalMode::PositiveZero || in constantFoldCanonicalize() 2661 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2668 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2676 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2735 if (!APF.isNegative() && TLI->has(Func)) in ConstantFoldScalarCall1() 3117 XorSign = A.isNegative() ^ B.isNegative(); in ConstantFoldIntrinsicCall2() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| H A D | ubsan_value.h | 223 bool isNegative() const { in isNegative() function
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 98 bool isNegative() const { return One.isSignBitSet(); } in isNegative() function 251 if (isNegative()) in countMinSignBits()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | RecordLayout.h | 309 return !CXXInfo->VBPtrOffset.isNegative(); in hasVBPtr()
|