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

References

include/llvm/ADT/APFloat.h
 1067     if (isNegative())
 1071     if (isNegative() != RHS.isNegative())
 1071     if (isNegative() != RHS.isNegative())
 1173   bool isPosZero() const { return isZero() && !isNegative(); }
 1174   bool isNegZero() const { return isZero() && isNegative(); }
 1269   if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative()))
 1269   if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative()))
 1270     return A.isNegative() ? A : B;
 1282   if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative()))
 1282   if (A.isZero() && B.isZero() && (A.isNegative() != B.isNegative()))
 1283     return A.isNegative() ? B : A;
include/llvm/IR/Constants.h
  308   bool isNegative() const { return Val.isNegative(); }
lib/Analysis/ConstantFolding.cpp
 2514         return Op.isNaN() || (!Op.isZero() && !Op.isNegative());
 2590         return Op.isNaN() || Op.isZero() || !Op.isNegative();
lib/Analysis/InstructionSimplify.cpp
 3533       if (C->isNegative()) {
 3557     if (C->isNegative() && !C->isNegZero()) {
 5122          C->isNegative() == UseNegInf) ||
 5124          C->isNegative() == UseNegInf))
lib/Analysis/ValueTracking.cpp
 2952     return !CFP->getValueAPF().isNegative() ||
 2964         if (CFP->getValueAPF().isNegative() &&
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
12679     if (!V.isNegative()) {
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 3724         if (CFP->getValueAPF().isNegative()) {
lib/IR/Verifier.cpp
 4168       Assert(Accuracy.isFiniteNonZero() && !Accuracy.isNegative(),
lib/Support/APFloat.cpp
 4010     if (zz.isZero() && !zz.isNegative()) {
 4233     auto Against = Floats[0].isNegative() ^ Floats[1].isNegative();
 4233     auto Against = Floats[0].isNegative() ^ Floats[1].isNegative();
 4234     auto RHSAgainst = RHS.Floats[0].isNegative() ^ RHS.Floats[1].isNegative();
 4234     auto RHSAgainst = RHS.Floats[0].isNegative() ^ RHS.Floats[1].isNegative();
 4251 bool DoubleAPFloat::isNegative() const { return Floats[0].isNegative(); }
lib/Target/AMDGPU/SIISelLowering.cpp
 9847     if (APF.isInfinity() && !APF.isNegative()) {
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3461       ((Mask & N_INFINITY) && Val.isInfinity() && Val.isNegative()) ||
 3462       ((Mask & N_NORMAL) && Val.isNormal() && Val.isNegative()) ||
 3463       ((Mask & N_SUBNORMAL) && Val.isDenormal() && Val.isNegative()) ||
 3464       ((Mask & N_ZERO) && Val.isZero() && Val.isNegative()) ||
 3465       ((Mask & P_ZERO) && Val.isZero() && !Val.isNegative()) ||
 3466       ((Mask & P_SUBNORMAL) && Val.isDenormal() && !Val.isNegative()) ||
 3467       ((Mask & P_NORMAL) && Val.isNormal() && !Val.isNegative()) ||
 3468       ((Mask & P_INFINITY) && Val.isInfinity() && !Val.isNegative());
lib/Transforms/InstCombine/InstCombineCompares.cpp
 5786         if (RHS.isNegative())
 5792         if (RHS.isNegative())
 5798         if (RHS.isNegative())
 5805         if (!RHS.isNegative())
 5811         if (RHS.isNegative())
 5817         if (RHS.isNegative())
 5823         if (RHS.isNegative())
 5830         if (!RHS.isNegative())
 5883   if (C->isNegative())
lib/Transforms/Scalar/Float2Int.cpp
  319             (F.isZero() && F.isNegative() && isa<FPMathOperator>(I) &&
lib/Transforms/Scalar/Reassociate.cpp
 1961       if (match(I->getOperand(1), m_APFloat(C)) && C->isNegative()) {
 1974       if ((match(I->getOperand(0), m_APFloat(C)) && C->isNegative()) ||
 1975           (match(I->getOperand(1), m_APFloat(C)) && C->isNegative())) {
 2016       assert(C->isNegative() && "Expected negative FP constant");
 2023       assert(C->isNegative() && "Expected negative FP constant");
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1548       Pow->hasNoInfs() && BaseF->isNormal() && !BaseF->isNegative()) {
 1622   if (ExpoF->isNegative())
 1735       if (ExpoF->isNegative())
tools/clang/lib/AST/ExprConstant.cpp
10646            Success(Val.isInfinity() ? (Val.isNegative() ? -1 : 1) : 0, E);
12492     if (Result.isNegative())
13007             ResR = APFloat::getInf(ResR.getSemantics(), C.isNegative()) * A;
13008             ResI = APFloat::getInf(ResR.getSemantics(), C.isNegative()) * B;
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  123     return Value.isZero() && !Value.isNegative();
unittests/ADT/APFloatTest.cpp
   79   EXPECT_TRUE(!test.isNegative());
   86   EXPECT_TRUE(!test.isNegative());
   93   EXPECT_TRUE(test.isNegative());
  100   EXPECT_TRUE(test.isInfinity() && test.isNegative());
  107   EXPECT_TRUE(test.isInfinity() && !test.isNegative());
  117   EXPECT_TRUE(!test.isInfinity() && !test.isNegative());
  131   EXPECT_TRUE(test.isInfinity() && test.isNegative());
  301   EXPECT_TRUE(test.isNegative());
  310   EXPECT_TRUE(!test.isNegative());
  319   EXPECT_TRUE(!test.isNegative());
  328   EXPECT_TRUE(test.isNegative());
  385   EXPECT_TRUE(!test.isNegative());
  395   EXPECT_TRUE(!test.isNegative());
  405   EXPECT_TRUE(test.isNegative());
  415   EXPECT_TRUE(test.isNegative());
  425   EXPECT_TRUE(!test.isNegative());
  435   EXPECT_TRUE(!test.isNegative());
  445   EXPECT_TRUE(test.isNegative());
  455   EXPECT_TRUE(test.isNegative());
  488     EXPECT_TRUE(!f1.isNegative() && f1.isZero());
  499     EXPECT_TRUE(f1.isNegative() && f1.isZero());
  509     EXPECT_TRUE(f1.isNegative() && f1.isZero());
  518     EXPECT_TRUE(f1.isNegative() && f1.isZero());
  642   EXPECT_TRUE(APFloat(-0.0f).isNegative());
  646   EXPECT_TRUE(APFloat(-0.0).isNegative());
 1444   EXPECT_FALSE(test.isNegative());
 1451   EXPECT_TRUE(test.isNegative());
 1458   EXPECT_FALSE(test.isNegative());
 1465   EXPECT_TRUE(test.isNegative());
 1474   EXPECT_FALSE(test.isNegative());
 1481   EXPECT_TRUE(test.isNegative());
 1488   EXPECT_FALSE(test.isNegative());
 1495   EXPECT_TRUE(test.isNegative());
 1529     EXPECT_TRUE(GetZeroTest[i].sign? test.isNegative() : !test.isNegative());
 1529     EXPECT_TRUE(GetZeroTest[i].sign? test.isNegative() : !test.isNegative());
 1646   EXPECT_FALSE(t.isNegative());
 1648   EXPECT_TRUE(t.isNegative());
 1650   EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle(), false).isNegative());
 1651   EXPECT_TRUE(APFloat::getInf(APFloat::IEEEsingle(), true).isNegative());
 1653   EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle(), false).isNegative());
 1654   EXPECT_TRUE(APFloat::getZero(APFloat::IEEEsingle(), true).isNegative());
 1656   EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle(), false).isNegative());
 1657   EXPECT_TRUE(APFloat::getNaN(APFloat::IEEEsingle(), true).isNegative());
 1659   EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle(), false).isNegative());
 1660   EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle(), true).isNegative());
 3260   EXPECT_TRUE(Frac.isInfinity() && !Frac.isNegative());
 3264   EXPECT_TRUE(Frac.isInfinity() && Frac.isNegative());