Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAtomicRMW.cpp28 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 DAPFloat.h386 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 DAPSInt.h49 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 DAPInt.h307 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 DAPSIntType.cpp20 Value.isSigned() && Value.isNegative()) in testInRange()
44 if (Value.isSigned() && Value.isNegative()) in testInRange()
H A DBasicValueFactory.cpp275 if (V2.isNegative() || V2.getBitWidth() > 64) in evalAPSInt()
290 if (V2.isNegative() || V2.getBitWidth() > 64) in evalAPSInt()
H A DCheckerContext.cpp154 bool CheckerContext::isNegative(const Expr *E) { in isNegative() function in CheckerContext
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp1651 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 DKnownBits.cpp72 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 DAPFixedPoint.cpp53 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 DAPFloat.cpp379 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 DDivisionByConstantInfo.cpp61 if (D.isNegative()) in get()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DFloating.h89 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 DBoolean.h76 constexpr static bool isNegative() { return false; } in isNegative() function
77 constexpr static bool isPositive() { return !isNegative(); } in isPositive()
H A DIntegral.h131 bool isNegative() const { return V < ReprT(0); }
132 bool isPositive() const { return !isNegative(); }
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp68 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 DConstantFolding.cpp687 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 DValueTracking.cpp1329 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 Dubsan_value.h189 bool isNegative() const { in isNegative() function
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp48 if (SignedOp && Val.isNegative()) in isConstantPowerOfTwo()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h96 bool isNegative() const { return One.isSignBitSet(); } in isNegative() function
249 if (isNegative()) in countMinSignBits()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCastSizeChecker.cpp83 if (Left.isNegative()) in evenFlexibleArraySize()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h192 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 DRecordLayout.h308 return !CXXInfo->VBPtrOffset.isNegative(); in hasVBPtr()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/
H A DEmulateInstructionRISCV.cpp1314 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()

123456