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

References

include/llvm/ADT/APFloat.h
 1167   bool isFinite() const { return !isNaN() && !isInfinity(); }
include/llvm/IR/Constants.h
  311   bool isInfinity() const { return Val.isInfinity(); }
lib/Analysis/ConstantFolding.cpp
 1780     if (Op->getValueAPF().isNaN() || Op->getValueAPF().isInfinity())
 2546         return !Op.isInfinity();
 2628                (!Op0.isInfinity() && !Op1.isZero());
lib/Analysis/InstructionSimplify.cpp
 3532     if (C->isInfinity()) {
 5121     if ((match(Op0, m_APFloat(C)) && C->isInfinity() &&
 5123         (match(Op1, m_APFloat(C)) && C->isInfinity() &&
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 3723       if (CFP->getValueAPF().isInfinity()) {
lib/IR/AsmWriter.cpp
 1313       bool isInf = APF.isInfinity();
lib/Support/APFloat.cpp
 3956     if (!z.isInfinity()) {
lib/Target/AMDGPU/SIISelLowering.cpp
 9847     if (APF.isInfinity() && !APF.isNegative()) {
lib/Target/Hexagon/HexagonConstPropagation.cpp
  442     if (Val.isInfinity())
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3461       ((Mask & N_INFINITY) && Val.isInfinity() && Val.isNegative()) ||
 3468       ((Mask & P_INFINITY) && Val.isInfinity() && !Val.isNegative());
tools/clang/lib/AST/ExprConstant.cpp
10646            Success(Val.isInfinity() ? (Val.isNegative() ? -1 : 1) : 0, E);
10652            Success(Val.isInfinity() ? 1 : 0, E);
12922           if (A.isInfinity() || B.isInfinity()) {
12922           if (A.isInfinity() || B.isInfinity()) {
12924                 APFloat(A.getSemantics(), A.isInfinity() ? 1 : 0), A);
12926                 APFloat(B.getSemantics(), B.isInfinity() ? 1 : 0), B);
12933           if (C.isInfinity() || D.isInfinity()) {
12933           if (C.isInfinity() || D.isInfinity()) {
12935                 APFloat(C.getSemantics(), C.isInfinity() ? 1 : 0), C);
12937                 APFloat(D.getSemantics(), D.isInfinity() ? 1 : 0), D);
12944           if (!Recalc && (AC.isInfinity() || BD.isInfinity() ||
12944           if (!Recalc && (AC.isInfinity() || BD.isInfinity() ||
12945                           AD.isInfinity() || BC.isInfinity())) {
12945                           AD.isInfinity() || BC.isInfinity())) {
13009           } else if ((A.isInfinity() || B.isInfinity()) && C.isFinite() &&
13009           } else if ((A.isInfinity() || B.isInfinity()) && C.isFinite() &&
13012                 APFloat(A.getSemantics(), A.isInfinity() ? 1 : 0), A);
13014                 APFloat(B.getSemantics(), B.isInfinity() ? 1 : 0), B);
13017           } else if (MaxCD.isInfinity() && A.isFinite() && B.isFinite()) {
13019                 APFloat(C.getSemantics(), C.isInfinity() ? 1 : 0), C);
13021                 APFloat(D.getSemantics(), D.isInfinity() ? 1 : 0), D);
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
  341       if (Tmp.isInfinity())
unittests/ADT/APFloatTest.cpp
   78   EXPECT_TRUE(test.isInfinity());
  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());
  900   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "99e99999").isInfinity());
  901   EXPECT_TRUE(APFloat(APFloat::IEEEdouble(), "-99e99999").isInfinity());
 1686   EXPECT_FALSE(t.isInfinity());
 1687   EXPECT_TRUE(APFloat::getInf(APFloat::IEEEsingle(), false).isInfinity());
 1688   EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle(), false).isInfinity());
 1689   EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle(), false).isInfinity());
 1690   EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle(), false).isInfinity());
 1691   EXPECT_FALSE(APFloat(APFloat::IEEEsingle(), "0x1p-149").isInfinity());
 3089   EXPECT_TRUE(scalbn(SmallestF64, 2098, RM).isInfinity());
 3090   EXPECT_TRUE(scalbn(SmallestF64, 2099, RM).isInfinity());
 3094   EXPECT_TRUE(scalbn(LargestF64, INT_MAX, RM).isInfinity());
 3111   EXPECT_TRUE(scalbn(LargestDenormalF64, 2047, RM).isInfinity());
 3112   EXPECT_TRUE(scalbn(LargestDenormalF64, 2098, RM).isInfinity());
 3113   EXPECT_TRUE(scalbn(LargestDenormalF64, 2099, RM).isInfinity());
 3158   EXPECT_TRUE(scalbn(LargestF64, 1, RM).isInfinity());
 3260   EXPECT_TRUE(Frac.isInfinity() && !Frac.isNegative());
 3264   EXPECT_TRUE(Frac.isInfinity() && Frac.isNegative());