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(); }
 1243   if (A.isNaN())
 1245   if (B.isNaN())
 1254   if (A.isNaN())
 1256   if (B.isNaN())
 1265   if (A.isNaN())
 1267   if (B.isNaN())
 1278   if (A.isNaN())
 1280   if (B.isNaN())
include/llvm/IR/Constants.h
  314   bool isNaN() const { return Val.isNaN(); }
include/llvm/IR/PatternMatch.h
  502   bool isValue(const APFloat &C) { return C.isNaN(); }
lib/Analysis/ConstantFolding.cpp
 1780     if (Op->getValueAPF().isNaN() || Op->getValueAPF().isInfinity())
 2514         return Op.isNaN() || (!Op.isZero() && !Op.isNegative());
 2590         return Op.isNaN() || Op.isZero() || !Op.isNegative();
 2627         return Op0.isNaN() || Op1.isNaN() ||
 2627         return Op0.isNaN() || Op1.isNaN() ||
lib/Analysis/InstructionSimplify.cpp
 3558       assert(!C->isNaN() && "Unexpected NaN constant!");
lib/Analysis/ValueTracking.cpp
 4453       if (C->getElementAsAPFloat(I).isNaN())
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 2100   } else if ((N2CFP && N2CFP->getValueAPF().isNaN()) ||
 3991     return !C->getValueAPF().isNaN() ||
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 3698     assert(!CFP->getValueAPF().isNaN() && "Unexpected NaN value");
lib/IR/AsmWriter.cpp
 1314       bool isNaN = APF.isNaN();
lib/Target/AMDGPU/SIISelLowering.cpp
 8721     if (F.isNaN() && F.isSignaling())
 8878   if (C.isNaN()) {
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  186   if (FP.isNaN() && !FP.bitwiseIsEqual(APFloat::getQNaN(FP.getSemantics())) &&
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3459       ((Mask & S_NAN) && Val.isNaN() && Val.isSignaling()) ||
 3460       ((Mask & Q_NAN) && Val.isNaN() && !Val.isSignaling()) ||
lib/Transforms/InstCombine/InstCombineCompares.cpp
 5671   assert(!RHS.isNaN() && "NaN comparison not already folded!");
tools/clang/lib/AST/ExprConstant.cpp
 2615   if (LHS.isNaN()) {
 2616     Info.CCEDiag(E, diag::note_constexpr_float_arithmetic) << LHS.isNaN();
10664            Success(Val.isNaN() ? 1 : 0, E);
12920         if (ResR.isNaN() && ResI.isNaN()) {
12920         if (ResR.isNaN() && ResI.isNaN()) {
12927             if (C.isNaN())
12929             if (D.isNaN())
12938             if (A.isNaN())
12940             if (B.isNaN())
12946             if (A.isNaN())
12948             if (B.isNaN())
12950             if (C.isNaN())
12952             if (D.isNaN())
13005         if (ResR.isNaN() && ResI.isNaN()) {
13005         if (ResR.isNaN() && ResI.isNaN()) {
13006           if (Denom.isPosZero() && (!A.isNaN() || !B.isNaN())) {
13006           if (Denom.isPosZero() && (!A.isNaN() || !B.isNaN())) {
unittests/ADT/APFloatTest.cpp
 1696   EXPECT_FALSE(t.isNaN());
 1697   EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle(), false).isNaN());
 1698   EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle(), false).isNaN());
 1699   EXPECT_TRUE(APFloat::getNaN(APFloat::IEEEsingle(), false).isNaN());
 1700   EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle(), false).isNaN());
 1701   EXPECT_FALSE(APFloat(APFloat::IEEEsingle(), "0x1p-149").isNaN());
 3029   EXPECT_TRUE(ScalbnSNaN.isNaN() && !ScalbnSNaN.isSignaling());
 3040   EXPECT_TRUE(QuietPayload.isNaN() && !QuietPayload.isSignaling());
 3268   EXPECT_TRUE(Frac.isNaN());
 3272   EXPECT_TRUE(Frac.isNaN());
 3276   EXPECT_TRUE(Frac.isNaN() && !Frac.isSignaling());
 3280   EXPECT_TRUE(Frac.isNaN() && !Frac.isSignaling());
 3344     EXPECT_TRUE(f1.isNaN());
 3350     EXPECT_TRUE(f1.isNaN());
 3356     EXPECT_TRUE(f1.isNaN());