Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h409 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 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.h309 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 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()
H A DInstCombineCompares.cpp981 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 DAPInt.cpp298 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 DKnownBits.cpp123 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 DAPFixedPoint.cpp53 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 DAPFloat.cpp410 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 DDivisionByConstantInfo.cpp61 if (D.isNegative()) in get()
/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 DCheckerContext.cpp167 bool CheckerContext::isNegative(const Expr *E) { in isNegative() function in CheckerContext
/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.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 < 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()
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 DArrayBoundCheckerV2.cpp273 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 DCastSizeChecker.cpp83 if (Left.isNegative()) in evenFlexibleArraySize()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp687 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 Dubsan_value.h189 bool isNegative() const { in isNegative() function
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h94 bool isNegative() const { return One.isSignBitSet(); } in isNegative() function
247 if (isNegative()) in countMinSignBits()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DRecordLayout.h308 return !CXXInfo->VBPtrOffset.isNegative(); in hasVBPtr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp48 if (SignedOp && Val.isNegative()) in isConstantPowerOfTwo()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/
H A DEmulateInstructionRISCV.cpp1329 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 DConstants.h201 bool isNegative() const { return Val.isNegative(); } in isNegative() function
319 bool isNegative() const { return Val.isNegative(); } in isNegative() function

123456