reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/APInt.h
  368   bool isNonNegative() const { return !isNegative(); }
  429     return !isNegative() && countTrailingOnesSlowCase() == BitWidth - 1;
  445     return isNegative() && countTrailingZerosSlowCase() == BitWidth - 1;
 1216     return (!isSingleWord() && getMinSignedBits() > 64) ? isNegative()
 1286     return (!isSingleWord() && getMinSignedBits() > 64) ? !isNegative()
 1565     if (isNegative())
 1633     return isNegative() ? countLeadingOnes() : countLeadingZeros();
 1813     if (isNegative())
include/llvm/ADT/APSInt.h
   48   bool isNegative() const { return isSigned() && APInt::isNegative(); }
include/llvm/Analysis/TargetTransformInfoImpl.h
  625           bool signedElement = IntElement->getValue().isNegative();
  643       isSigned = CI->getValue().isNegative();
include/llvm/IR/Constants.h
  187   bool isNegative() const { return Val.isNegative(); }
include/llvm/IR/PatternMatch.h
  354   bool isValue(const APInt &C) { return C.isNegative(); }
lib/Analysis/ConstantFolding.cpp
  964       if (Offset.isNegative() || Offset.uge(SL.getSizeInBytes()))
lib/Analysis/InstructionSimplify.cpp
 2396         if (!LHSOffsetValue.isNegative() &&
 2397             !RHSOffsetValue.isNegative() &&
 3315             return CI->getValue().isNegative() ?
 3321             return CI->getValue().isNegative() ?
 3367             return CI->getValue().isNegative() ?
 3372             return CI->getValue().isNegative() ?
lib/Analysis/Loads.cpp
   87     if (!GEP->accumulateConstantOffset(DL, Offset) || Offset.isNegative() ||
lib/Analysis/LoopAccessAnalysis.cpp
 1521   if (Val.isNegative()) {
lib/Analysis/MemoryBuiltins.cpp
  482   if (Data.second.isNegative() || Data.first.ult(Data.second))
lib/Analysis/ScalarEvolution.cpp
  410   return SC->getAPInt().isNegative();
 2207     if (SC->getAPInt().isNegative())
 5775   bool Descending = Signed && Step.isNegative();
 8777   bool CountDown = StepC->getAPInt().isNegative();
 9092   return getSignedRangeMax(S).isNegative();
 9100   return !getSignedRangeMin(S).isNegative();
 9401     if (MatchBinaryAddToConst(LHS, RHS, C, SCEV::FlagNSW) && C.isNegative())
lib/Analysis/ValueTracking.cpp
 5150       return !C->isNegative();
 5430         if (C->isNegative()) {
 5464       if (C->isNegative()) {
 5497         if (C->isNegative()) {
 5587       if (C->isNegative()) {
 5608       if (C->isNegative()) {
 5618       if (C->isNegative()) {
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 3432       if (ConstValue1.isNegative())
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 3290         if (ValueLow.isNegative() && ValueHigh.isNegative()) {
 3290         if (ValueLow.isNegative() && ValueHigh.isNegative()) {
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 3313           return DAG.getConstant(C1.isNegative(), dl, VT);
 4671     } else if (Divisor.isStrictlyPositive() && magics.m.isNegative()) {
 4674     } else if (Divisor.isNegative() && magics.m.isStrictlyPositive()) {
 5141     if (D.isNegative())
lib/IR/ConstantRange.cpp
  211   if (V.isNegative()) {
  251         SMin.isNegative() ? SignedMinVal - SMin : SignedMinVal,
  263         SMin.isNegative() ? SignedMinVal + SMin : SignedMinVal);
  887     if (LMax.isNegative()) {
 1170   if (MaxLHS.isNegative()) {
 1280   } else if (getSignedMax().isNegative()) {
 1359   if (SMax.isNegative())
 1399   if (Max.isNegative() && OtherMax.isNegative() &&
 1399   if (Max.isNegative() && OtherMax.isNegative() &&
 1406   if (Min.isNegative() && OtherMin.isNegative() &&
 1406   if (Min.isNegative() && OtherMin.isNegative() &&
 1442   if (Min.isNonNegative() && OtherMax.isNegative() &&
 1445   if (Max.isNegative() && OtherMin.isNonNegative() &&
 1449   if (Max.isNonNegative() && OtherMin.isNegative() &&
 1452   if (Min.isNegative() && OtherMax.isNonNegative() &&
lib/Support/APFloat.cpp
 2252   if (isSigned && api.isNegative()) {
lib/Support/APInt.cpp
  291   bool lhsNeg = isNegative();
  292   bool rhsNeg = RHS.isNegative();
  905   std::memset(Result.U.pVal + getNumWords(), isNegative() ? -1 : 0,
  972   bool Negative = isNegative();
 1191   if (t[i].isNegative())
 1234   if (d.isNegative()) mag.m = -mag.m;   // resulting magic number
 1648   if (isNegative()) {
 1649     if (RHS.isNegative())
 1653   if (RHS.isNegative())
 1659   if (isNegative()) {
 1740   if (isNegative()) {
 1741     if (RHS.isNegative())
 1745   if (RHS.isNegative())
 1751   if (isNegative()) {
 1895   if (LHS.isNegative()) {
 1896     if (RHS.isNegative())
 1903   } else if (RHS.isNegative()) {
 1914   if (LHS.isNegative()) {
 1980   Overflow = Res.isNegative();
 2019   return isNegative() ? APInt::getSignedMinValue(BitWidth)
 2038   return isNegative() ? APInt::getSignedMinValue(BitWidth)
 2058   bool ResIsNegative = isNegative() ^ RHS.isNegative();
 2058   bool ResIsNegative = isNegative() ^ RHS.isNegative();
 2079   return isNegative() ? APInt::getSignedMinValue(BitWidth)
 2214   if (Signed && isNegative()) {
 2825       if (Rem.isNegative() != B.isNegative())
 2825       if (Rem.isNegative() != B.isNegative())
 2829     if (Rem.isNegative() != B.isNegative())
 2829     if (Rem.isNegative() != B.isNegative())
 2879   if (A.isNegative()) {
 2917     return V.isNegative() ? V+T : V+(A-T);
 3015   bool SignChange = VX.isNegative() != VY.isNegative() ||
 3015   bool SignChange = VX.isNegative() != VY.isNegative() ||
lib/Target/AArch64/AArch64FastISel.cpp
 4974   if (C.isNegative())
lib/Target/ARM/ARMTargetTransformInfo.cpp
  130   if (Opcode == Instruction::ICmp && Imm.isNegative() &&
lib/Target/Hexagon/HexagonConstPropagation.cpp
 1272                ((Cmp & Comparison::L) && !A2.isNegative()) ||
 1273                ((Cmp & Comparison::G) &&  A2.isNegative());
 1278     if (!A2.isNegative())
 1286     if (A2 == 0 || A2.isNegative())
lib/Target/Hexagon/HexagonISelLowering.cpp
  859     bool IsNegative = C && C->getAPIntValue().isNegative();
lib/Target/Mips/MipsSEISelLowering.cpp
  765     APInt Ceil = Val.isNegative() ? APInt(BitWidth, 0)
  809   APInt Ceil = C.isNegative() ? APInt(BitWidth, 0) :
lib/Target/PowerPC/PPCISelLowering.cpp
15363   bool IsNeg = MulAmt.isNegative();
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  190     return std::string(AI.isNegative() ? "-" : "") + "nan:0x" +
lib/Target/X86/X86ISelLowering.cpp
38339   if (SarConst.isNegative())
38354     else if (SarConst.isNegative())
38464           else if (Val.isNegative())
38474           else if (Val.isNegative())
42911           Src.getConstantOperandAPInt(Idx).isNegative())
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  840       C1->isNegative() && C1->sge(-C2->sext(C1->getBitWidth()))) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
  114   if (UnknownBits.isNegative()) { // Sign bit is unknown
 1171     if (AP2.isNegative() != AP1.isNegative())
 1171     if (AP2.isNegative() != AP1.isNegative())
 1186   if (IsAShr && AP1.isNegative())
 1578     if (!XorC->isNegative()) {
 1654       if (!Cmp.isSigned() || (!C2.isNegative() && !C1.isNegative()))
 1654       if (!Cmp.isSigned() || (!C2.isNegative() && !C1.isNegative()))
 1668             (!C2.shl(*C3).isNegative() && !C1.shl(*C3).isNegative()))
 1668             (!C2.shl(*C3).isNegative() && !C1.shl(*C3).isNegative()))
 1766       (Cmp.isEquality() || (!C1.isNegative() && !C2->isNegative()))) {
 1766       (Cmp.isEquality() || (!C1.isNegative() && !C2->isNegative()))) {
 1951     if (MulC->isNegative())
 2412   } else if (C2->isNegative()) { // Divisor is < 0.
 3826         if (AP1.isNegative() == AP2.isNegative()) {
 3826         if (AP1.isNegative() == AP2.isNegative()) {
 5144       ((Op0Known.Zero.isNegative() && Op1Known.Zero.isNegative()) ||
 5144       ((Op0Known.Zero.isNegative() && Op1Known.Zero.isNegative()) ||
 5145        (Op0Known.One.isNegative() && Op1Known.One.isNegative())))
 5145        (Op0Known.One.isNegative() && Op1Known.One.isNegative())))
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  239       if (Val.isNegative() && PosVal.isPowerOf2()) {
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 3818         int64_t Step = StepInt.isNegative() ?
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  423   if (PtrDelta.isNegative()) {
tools/clang/lib/Analysis/CFG.cpp
  942                      !IntValue.isNegative();
tools/clang/lib/CodeGen/CGExprCXX.cpp
  739     if (isSigned && count.isNegative())
tools/lldb/source/Utility/Scalar.cpp
 2027     if (m_integer.isNegative())
tools/polly/lib/Support/GICHelper.cpp
   45   if (IsSigned && Int.isNegative())
unittests/ADT/APIntTest.cpp
 1011   if (!a.isNegative()) {
 1023   if (c.isNegative())
 1030   if (c.isNegative())
unittests/IR/ConstantRangeTest.cpp
 2146       if (!N.isNegative())