/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/llvm/include/llvm/ADT/ |
H A D | APFloat.h | 386 bool isNegative() const { return sign; } in isNegative() function 426 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero() 501 return isNegative() ? INT_MIN : getExactLog2Abs(); in getExactLog2() 723 bool isNegative() const; 1160 if (isNegative()) in clearSign() 1164 if (isNegative() != RHS.isNegative()) in copySign() 1295 bool isNegative() const { return getIEEE().isNegative(); } in isNegative() function 1422 if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative())) in minimum() 1423 return A.isNegative() ? A : B; in minimum() 1435 if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative())) in maximum() [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 | 307 bool isNegative() const { return (*this)[BitWidth - 1]; } in isNegative() function 312 bool isNonNegative() const { return !isNegative(); } in isNonNegative() 388 return !isNegative() && countTrailingOnesSlowCase() == BitWidth - 1; in isMaxSignedValue() 406 return isNegative() && countTrailingZerosSlowCase() == BitWidth - 1; in isMinSignedValue() 1112 ? isNegative() in slt() 1183 ? !isNegative() in sgt() 1573 return isNegative() ? countl_one() : countl_zero(); in getNumSignBits() 1731 if (isNegative()) in abs()
|
/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 | 154 bool CheckerContext::isNegative(const Expr *E) { in isNegative() function in CheckerContext
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APInt.cpp | 1651 if (isNegative()) { in sdiv() 1656 if (RHS.isNegative()) in sdiv() 1662 if (isNegative()) { in sdiv() 1743 if (isNegative()) { in srem() 1748 if (RHS.isNegative()) in srem() 1754 if (isNegative()) { in srem() 2070 bool ResIsNegative = isNegative() ^ RHS.isNegative(); in smul_sat() 2773 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv() 2777 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv() 2827 if (A.isNegative()) { in SolveQuadraticEquationWrap() [all …]
|
H A D | KnownBits.cpp | 72 if (!KnownOut.isNegative() && !KnownOut.isNonNegative()) { in computeForAddSub() 80 else if (LHS.isNegative() && RHS.isNegative()) in computeForAddSub() 243 if (LHS.isNegative()) in shl() 436 if (isNegative()) { in abs() 544 if (LHS.isNegative() && RHS.isNegative()) { in computeForSatAddSub() 550 if (LHS.isNegative() && RHS.isNonNegative()) { in computeForSatAddSub() 554 } else if (LHS.isNonNegative() && RHS.isNegative()) { in computeForSatAddSub() 817 if (LHS.isNegative() && RHS.isNegative()) { in sdiv() 826 } else if (LHS.isNegative() && RHS.isNonNegative()) { in sdiv() 833 } 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() 320 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isZero()) in div() 396 if (Val.isSigned() && Val.isNegative()) { in toString() 463 *Overflow = Result.isNegative() || Result.ugt(DstMax); in convertToInt()
|
H A D | APFloat.cpp | 379 bool isNegative; in readExponent() local 414 if (isNegative) in readExponent() 4049 if (isNegative()) in toString() 4057 if (isNegative()) in toString() 4077 if (isNegative()) in toString() 4351 if (!isNegative()) in next() 4396 if (isNegative()) { in next() 4726 LHS.isNegative() != RHS.isNegative()) { in addWithSpecial() 4910 auto Against = Floats[0].isNegative() ^ Floats[1].isNegative(); in compareAbsoluteValue() 4911 auto RHSAgainst = RHS.Floats[0].isNegative() ^ RHS.Floats[1].isNegative(); in compareAbsoluteValue() [all …]
|
H A D | DivisionByConstantInfo.cpp | 61 if (D.isNegative()) in get()
|
/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 | 76 constexpr static bool isNegative() { return false; } in isNegative() function 77 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() 274 if (V.isNegative()) { in makeExactMulNSWRegion() 1413 if (MaxLHS.isNegative()) { in srem() 1563 } else if (getSignedMax().isNegative()) { in ashr() 1703 if (SMax.isNegative()) in abs() 1895 if (Max.isNegative() && OtherMax.isNegative() && in signedAddMayOverflow() 1902 if (Min.isNegative() && OtherMin.isNegative() && in signedAddMayOverflow() 1938 if (Min.isNonNegative() && OtherMax.isNegative() && in signedSubMayOverflow() 1941 if (Max.isNegative() && OtherMin.isNonNegative() && in signedSubMayOverflow() 1945 if (Max.isNonNegative() && OtherMin.isNegative() && in signedSubMayOverflow() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 687 if (Index.isNegative() || Index.getActiveBits() >= 32) in getConstantAtOffset() 1948 APFloat::getZero(Src.getSemantics(), Src.isNegative())); in constantFoldCanonicalize() 2333 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2340 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2348 if (!APF.isNegative() && !APF.isZero() && TLI->has(Func)) in ConstantFoldScalarCall1() 2382 if (!APF.isNegative() && TLI->has(Func)) in ConstantFoldScalarCall1() 2933 if (S2.isNegative() && S2.isNonZero() && !S2.isNaN()) { in ConstantFoldAMDGCNCubeIntrinsic() 2944 if (S1.isNegative() && S1.isNonZero() && !S1.isNaN()) { in ConstantFoldAMDGCNCubeIntrinsic() 2955 if (S0.isNegative() && S0.isNonZero() && !S0.isNaN()) { in ConstantFoldAMDGCNCubeIntrinsic() 3439 return Op.isNaN() || (!Op.isZero() && !Op.isNegative()); in isMathLibCallNoop() [all …]
|
H A D | ValueTracking.cpp | 1329 else if (Known2.isNegative() && Known3.isNegative()) in computeKnownBitsFromOperator() 2286 StartC->isNegative() == StepC->isNegative()); in isNonZeroRecurrence() 2315 if (XKnown.isNegative() && YKnown.isNegative()) { in isNonZeroAdd() 2501 if (Known.isNegative()) in isKnownNonZeroFromOperator() 8172 return !C->isNegative(); in isTruePredicate() 8544 if (C->isNegative()) { in setLimitsForBinOp() 8583 if (C->isNegative()) { in setLimitsForBinOp() 8616 if (C->isNegative()) { in setLimitsForBinOp() 8724 if (C->isNegative()) in getRangeForIntrinsic() 8747 if (C->isNegative()) in getRangeForIntrinsic() [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/lib/CodeGen/ |
H A D | ExpandLargeDivRem.cpp | 48 if (SignedOp && Val.isNegative()) in isConstantPowerOfTwo()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 96 bool isNegative() const { return One.isSignBitSet(); } in isNegative() function 249 if (isNegative()) in countMinSignBits()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CastSizeChecker.cpp | 83 if (Left.isNegative()) in evenFlexibleArraySize()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constants.h | 192 bool isNegative() const { return Val.isNegative(); } in isNegative() function 303 bool isNegative() const { return Val.isNegative(); } in isNegative() function
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | RecordLayout.h | 308 return !CXXInfo->VBPtrOffset.isNegative(); in hasVBPtr()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/ |
H A D | EmulateInstructionRISCV.cpp | 1314 if (rs1.isNegative() == rs2.isNegative()) { in F_SignInjXor() 1421 if (rs1.isInfinity() && rs1.isNegative()) in FCLASS() 1424 if (rs1.isNormal() && rs1.isNegative()) in FCLASS() 1427 if (rs1.isDenormal() && rs1.isNegative()) in FCLASS() 1434 if (rs1.isNormal() && !rs1.isNegative()) in FCLASS() 1437 if (rs1.isDenormal() && !rs1.isNegative()) in FCLASS() 1439 if (rs1.isInfinity() && !rs1.isNegative()) in FCLASS()
|