/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APFloat.h | 409 bool isNegative() const { return sign; } in isNegative() function 448 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero() 449 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero() 524 return isNegative() ? INT_MIN : getExactLog2Abs(); in getExactLog2() 754 bool isNegative() const; 1210 if (isNegative()) in clearSign() 1214 if (isNegative() != RHS.isNegative()) in copySign() 1354 bool isNegative() const { return getIEEE().isNegative(); } in isNegative() function 1365 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero() 1366 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero() [all …]
|
H A D | APSInt.h | 49 bool isNegative() const { return isSigned() && APInt::isNegative(); } in isNegative() function 54 bool isNonNegative() const { return !isNegative(); } in isNonNegative() 338 if (I1.isNegative()) in compareValues() 342 if (I2.isNegative()) in compareValues()
|
H A D | APInt.h | 309 bool isNegative() const { return (*this)[BitWidth - 1]; } in isNegative() function 314 bool isNonNegative() const { return !isNegative(); } in isNonNegative() 390 return !isNegative() && countTrailingOnesSlowCase() == BitWidth - 1; in isMaxSignedValue() 408 return isNegative() && countTrailingZerosSlowCase() == BitWidth - 1; in isMinSignedValue() 1120 ? isNegative() in slt() 1191 ? !isNegative() in sgt() 1588 return isNegative() ? countl_one() : countl_zero(); in getNumSignBits() 1754 if (isNegative()) in abs()
|
/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()
|
H A D | InstCombineCompares.cpp | 981 if (AP2.isNegative() != AP1.isNegative()) in foldICmpShrConstConst() 996 if (IsAShr && AP1.isNegative()) in foldICmpShrConstConst() 1576 if (!XorC->isNegative()) in foldICmpXorConstant() 1681 if (Cmp.isSigned() && (C2.isNegative() || C1.isNegative())) in foldICmpAndShift() 1695 if (Cmp.isSigned() && (NewAndCst.isNegative() || NewCmpCst.isNegative())) in foldICmpAndShift() 1798 (Cmp.isEquality() || (!C1.isNegative() && !C2->isNegative()))) { in foldICmpAndConstConst() 2162 if (MulC->isNegative()) in foldICmpMulConstant() 2202 if (MulC->isNegative()) in foldICmpMulConstant() 2474 if (!IsAShr && ShiftValC->isNegative() && in foldICmpShrConstant() 2809 } else if (C2->isNegative()) { // Divisor is < 0. in foldICmpDivConstant() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APInt.cpp | 298 bool lhsNeg = isNegative(); in compareSigned() 299 bool rhsNeg = RHS.isNegative(); in compareSigned() 562 unsigned isNegative = *p == '-'; in getBitsNeeded() local 578 return isNegative + 1; in getBitsNeeded() 579 } else if (isNegative && tmp.isPowerOf2()) { in getBitsNeeded() 580 return isNegative + log; in getBitsNeeded() 582 return isNegative + log + 1; in getBitsNeeded() 949 return isNegative() ? APInt::getSignedMinValue(width) in truncSSat() 974 std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0, in sext() 1032 bool Negative = isNegative(); in ashrSlowCase() [all …]
|
H A D | KnownBits.cpp | 123 if (MaxVal.isNegative()) { in computeForAddSub() 342 if (LHS.isNegative()) in shl() 559 if (isNegative()) { in abs() 666 if (LHS.isNegative() && RHS.isNegative()) { in computeForSatAddSub() 672 if (LHS.isNegative() && RHS.isNonNegative()) { in computeForSatAddSub() 676 } else if (LHS.isNonNegative() && RHS.isNegative()) { in computeForSatAddSub() 719 C = LHS.isNegative() ? APInt::getSignedMinValue(BitWidth) in computeForSatAddSub() 963 if (LHS.isNegative() && RHS.isNegative()) { in sdiv() 972 } else if (LHS.isNegative() && RHS.isNonNegative()) { in sdiv() 979 } else if (LHS.isStrictlyPositive() && RHS.isNegative()) { in sdiv() [all …]
|
H A D | APFixedPoint.cpp | 53 NewVal = NewVal.isNegative() ? Mask : ~Mask; in convert() 60 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) { in convert() 326 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isZero()) in div() 402 if (Val.isSigned() && Val.isNegative()) { in toString() 469 *Overflow = Result.isNegative() || Result.ugt(DstMax); in convertToInt()
|
H A D | APFloat.cpp | 410 bool isNegative; in readExponent() local 420 isNegative = (*p == '-'); in readExponent() 445 if (isNegative) in readExponent() 2376 bool inputSign = isNegative(); in roundToIntegral() 2385 if (inputSign != isNegative()) in roundToIntegral() 2796 if (isSigned && api.isNegative()) { in convertFromAPInt() 4340 if (isNegative()) in toString() 4348 if (isNegative()) in toString() 4374 toStringImpl(Str, isNegative(), exp, significand, FormatPrecision, in toString() 4465 if (!isNegative()) in next() [all …]
|
H A D | DivisionByConstantInfo.cpp | 61 if (D.isNegative()) in get()
|
/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 | CheckerContext.cpp | 167 bool CheckerContext::isNegative(const Expr *E) { in isNegative() function in CheckerContext
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Floating.h | 89 bool isNegative() const { return F.isNegative(); } in isNegative() function 90 bool isPositive() const { return !F.isNegative(); } in isPositive() 161 if (V.isNegative()) in abs()
|
H A D | Boolean.h | 71 constexpr static bool isNegative() { return false; } in isNegative() function 72 constexpr static bool isPositive() { return !isNegative(); } in isPositive()
|
H A D | Integral.h | 131 bool isNegative() const { return V < ReprT(0); } 132 bool isPositive() const { return !isNegative(); }
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 68 if (!IsSigned || Known.isNegative() || Known.isNonNegative()) in fromKnownBits() 303 if (V.isNegative()) { in makeExactMulNSWRegion() 339 SMin.isNegative() ? SignedMinVal - SMin : SignedMinVal, in makeGuaranteedNoWrapRegion() 351 SMin.isNegative() ? SignedMinVal + SMin : SignedMinVal); in makeGuaranteedNoWrapRegion() 1491 if (MaxLHS.isNegative()) { in srem() 1656 } else if (getSignedMax().isNegative()) { in ashr() 1750 APInt NewU = Max.sshl_sat(Max.isNegative() ? ShAmtMin : ShAmtMax) + 1; in sshl_sat() 1796 if (SMax.isNegative()) in abs() 1988 if (Max.isNegative() && OtherMax.isNegative() && in signedAddMayOverflow() 1995 if (Min.isNegative() && OtherMin.isNegative() && in signedAddMayOverflow() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | ArrayBoundCheckerV2.cpp | 273 static bool isNegative(SValBuilder &SVB, ProgramStateRef State, NonLoc Value) { in isNegative() function 275 return MaxV && MaxV->isNegative(); in isNegative() 304 if (isNegative(SVB, State, Value) && isUnsigned(SVB, Threshold)) { in compareValueToThreshold() 312 if (isUnsigned(SVB, Value) && isNegative(SVB, State, Threshold)) { in compareValueToThreshold()
|
H A D | CastSizeChecker.cpp | 83 if (Left.isNegative()) in evenFlexibleArraySize()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 687 if (Index.isNegative() || Index.getActiveBits() >= 32) in getConstantAtOffset() 1330 APFloat::getZero(Ty->getFltSemantics(), APF.isNegative())); in FlushFPConstant() 1975 APFloat::getZero(Src.getSemantics(), Src.isNegative())); in constantFoldCanonicalize() 2006 (!Src.isNegative() || DenormMode.Input == DenormalMode::PositiveZero || in constantFoldCanonicalize() 2374 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2381 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2389 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2425 if (!APF.isNegative() && TLI->has(Func)) in ConstantFoldScalarCall1() 2748 ((Mask & fcNegNormal) && Op1V.isNormal() && Op1V.isNegative()) || in ConstantFoldIntrinsicCall2() 2749 ((Mask & fcNegSubnormal) && Op1V.isDenormal() && Op1V.isNegative()) || in ConstantFoldIntrinsicCall2() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_value.h | 189 bool isNegative() const { in isNegative() function
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 94 bool isNegative() const { return One.isSignBitSet(); } in isNegative() function 247 if (isNegative()) in countMinSignBits()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | RecordLayout.h | 308 return !CXXInfo->VBPtrOffset.isNegative(); in hasVBPtr()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandLargeDivRem.cpp | 48 if (SignedOp && Val.isNegative()) in isConstantPowerOfTwo()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/ |
H A D | EmulateInstructionRISCV.cpp | 1329 if (rs1.isNegative() == rs2.isNegative()) { in F_SignInjXor() 1436 if (rs1.isInfinity() && rs1.isNegative()) in FCLASS() 1439 if (rs1.isNormal() && rs1.isNegative()) in FCLASS() 1442 if (rs1.isDenormal() && rs1.isNegative()) in FCLASS() 1449 if (rs1.isNormal() && !rs1.isNegative()) in FCLASS() 1452 if (rs1.isDenormal() && !rs1.isNegative()) in FCLASS() 1454 if (rs1.isInfinity() && !rs1.isNegative()) in FCLASS()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constants.h | 201 bool isNegative() const { return Val.isNegative(); } in isNegative() function 319 bool isNegative() const { return Val.isNegative(); } in isNegative() function
|