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

References

include/llvm/ADT/DenseMap.h
  379         DestBucket->getFirst() = std::move(B->getFirst());
include/llvm/Support/type_traits.h
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
lib/AsmParser/LLLexer.cpp
 1004     APFloatVal = APFloat(APFloat::IEEEdouble(),
 1015     APFloatVal = APFloat(APFloat::x87DoubleExtended(), APInt(80, Pair));
 1020     APFloatVal = APFloat(APFloat::IEEEquad(), APInt(128, Pair));
 1025     APFloatVal = APFloat(APFloat::PPCDoubleDouble(), APInt(128, Pair));
 1028     APFloatVal = APFloat(APFloat::IEEEhalf(),
 1105   APFloatVal = APFloat(APFloat::IEEEdouble(),
 1142   APFloatVal = APFloat(APFloat::IEEEdouble(),
lib/MC/MCParser/AsmParser.cpp
 3136       Value = APFloat::getInf(Semantics);
 3138       Value = APFloat::getNaN(Semantics, false, ~0);
lib/Support/APFloat.cpp
 3674     *inv = APFloat(reciprocal, *semantics);
 3957       Floats[0] = std::move(z);
 3975       Floats[0] = std::move(z);
 4011       Floats[0] = std::move(z);
 4021     Floats[1] = std::move(z);
 4265   Floats[0] = APFloat(semIEEEdouble, APInt(64, 0x7fefffffffffffffull));
 4266   Floats[1] = APFloat(semIEEEdouble, APInt(64, 0x7c8ffffffffffffeull));
 4279   Floats[0] = APFloat(semIEEEdouble, APInt(64, 0x0360000000000000ull));
 4429   *inv = APFloat(semPPCDoubleDouble, Inv.bitcastToAPInt());
 4445     Second = scalbn(Second, -Exp, RM);
 4496     *this = APFloat(ToSemantics, U.IEEE.bitcastToAPInt());
 4502     *this = APFloat(std::move(getIEEE()), ToSemantics);
lib/Transforms/InstCombine/InstCombineCalls.cpp
 2202           Res = maxnum(*C1, *C2);
 2205           Res = minnum(*C1, *C2);
 2208           Res = maximum(*C1, *C2);
 2211           Res = minimum(*C1, *C2);
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1520     BaseR = BaseR / *BaseF;
tools/clang/include/clang/AST/APValue.h
  549     *(APFloat *)(char *)Data.buffer = std::move(F);
  573     ((ComplexAPFloat *)(char *)Data.buffer)->Real = std::move(R);
  574     ((ComplexAPFloat *)(char *)Data.buffer)->Imag = std::move(I);
tools/clang/lib/AST/ExprConstant.cpp
 2383   Result = APFloat(Info.Ctx.getFloatTypeSemantics(DestType), 1);
 9369         f = APFloat::getZero(Info.Ctx.getFloatTypeSemantics(EltTy));
11497         LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics());
11509       RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics());
12385     Result = APFloat::getZero(Info.Ctx.getFloatTypeSemantics(E->getType()));
12428       Result = llvm::APFloat::getSNaN(Sem, false, &fill);
12430       Result = llvm::APFloat::getQNaN(Sem, false, &fill);
12438       Result = llvm::APFloat::getQNaN(Sem, false, &fill);
12440       Result = llvm::APFloat::getSNaN(Sem, false, &fill);
12461     Result = llvm::APFloat::getInf(Sem);
12537   Result = llvm::APFloat::getZero(Sem);
12567   Result = E->getValue();
12665     Result.FloatReal = APFloat(Imag.getSemantics());
12752     Result.FloatImag = APFloat(Real.getSemantics());
12838       Result.FloatImag = APFloat(Real.getSemantics());
12853     RHS.FloatImag = APFloat(Real.getSemantics());
12906         ResR = A * C;
12907         ResI = A * D;
12909         ResR = C * A;
12910         ResI = C * B;
12918         ResR = AC - BD;
12919         ResI = AD + BC;
12923             A = APFloat::copySign(
12925             B = APFloat::copySign(
12928               C = APFloat::copySign(APFloat(C.getSemantics()), C);
12930               D = APFloat::copySign(APFloat(D.getSemantics()), D);
12934             C = APFloat::copySign(
12936             D = APFloat::copySign(
12939               A = APFloat::copySign(APFloat(A.getSemantics()), A);
12941               B = APFloat::copySign(APFloat(B.getSemantics()), B);
12947               A = APFloat::copySign(APFloat(A.getSemantics()), A);
12949               B = APFloat::copySign(APFloat(B.getSemantics()), B);
12951               C = APFloat::copySign(APFloat(C.getSemantics()), C);
12953               D = APFloat::copySign(APFloat(D.getSemantics()), D);
12957             ResR = APFloat::getInf(A.getSemantics()) * (A * C - B * D);
12958             ResI = APFloat::getInf(A.getSemantics()) * (A * D + B * C);
12986         ResR = A / C;
12987         ResI = B / C;
12991           B = APFloat::getZero(A.getSemantics());
12997           C = scalbn(C, -DenomLogB, APFloat::rmNearestTiesToEven);
12998           D = scalbn(D, -DenomLogB, APFloat::rmNearestTiesToEven);
13001         ResR = scalbn((A * C + B * D) / Denom, -DenomLogB,
13003         ResI = scalbn((B * C - A * D) / Denom, -DenomLogB,
13007             ResR = APFloat::getInf(ResR.getSemantics(), C.isNegative()) * A;
13008             ResI = APFloat::getInf(ResR.getSemantics(), C.isNegative()) * B;
13011             A = APFloat::copySign(
13013             B = APFloat::copySign(
13015             ResR = APFloat::getInf(ResR.getSemantics()) * (A * C + B * D);
13016             ResI = APFloat::getInf(ResI.getSemantics()) * (B * C - A * D);
13018             C = APFloat::copySign(
13020             D = APFloat::copySign(
13022             ResR = APFloat::getZero(ResR.getSemantics()) * (A * C + B * D);
13023             ResI = APFloat::getZero(ResI.getSemantics()) * (B * C - A * D);
tools/clang/lib/CodeGen/CGExprScalar.cpp
  898     MinSrc = APFloat::getInf(SrcSema, true);
  910     MaxSrc = APFloat::getInf(SrcSema, false);
tools/lldb/include/lldb/Utility/Scalar.h
   82   Scalar(float v) : m_type(e_float), m_float(v) { m_float = llvm::APFloat(v); }
   84     m_float = llvm::APFloat(v);
   90       m_float =
   95       m_float =
tools/lldb/source/Utility/Scalar.cpp
  355   m_float = llvm::APFloat(v);
  361   m_float = llvm::APFloat(v);
  368     m_float = llvm::APFloat(llvm::APFloat::IEEEquad(),
  372     m_float = llvm::APFloat(llvm::APFloat::x87DoubleExtended(),
  521       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  528       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  535       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
  591       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  598       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  605       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
  657       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  664       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  671       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
  719       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  726       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  733       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
  777       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  784       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  791       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
  831       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  838       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  845       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
  885       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  892       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  899       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
  935       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  942       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  949       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
  985       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
  992       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
  999       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
 1032       m_float = llvm::APFloat(llvm::APFloat::IEEEsingle());
 1039       m_float = llvm::APFloat(llvm::APFloat::IEEEdouble());
 1046       m_float = llvm::APFloat(m_ieee_quad ? llvm::APFloat::IEEEquad()
 1080       m_float = llvm::APFloat(static_cast<double_t>(m_float.convertToFloat()));
 1817       m_float = a->m_float + b->m_float;
 2127       result.m_float = a->m_float + b->m_float;
 2161       result.m_float = a->m_float - b->m_float;
 2204         result.m_float = a->m_float / b->m_float;
 2243       result.m_float = a->m_float * b->m_float;
 2500         m_float = llvm::APFloat(f_val);
 2507         m_float = llvm::APFloat(d_val);
 2514         m_float = llvm::APFloat(
unittests/ADT/APFloatTest.cpp
   75   test = APFloat::getInf(APFloat::IEEEquad(), false);
   76   expected = APFloat::getInf(APFloat::IEEEquad(), false);
   83   test = APFloat::getInf(APFloat::IEEEquad(), false);
   84   expected = APFloat::getLargest(APFloat::IEEEquad(), false);
   90   test = APFloat::getInf(APFloat::IEEEquad(), true);
   91   expected = APFloat::getLargest(APFloat::IEEEquad(), true);
   97   test = APFloat::getInf(APFloat::IEEEquad(), true);
   98   expected = APFloat::getInf(APFloat::IEEEquad(), true);
  104   test = APFloat::getLargest(APFloat::IEEEquad(), false);
  105   expected = APFloat::getInf(APFloat::IEEEquad(), false);
  113   test = APFloat::getLargest(APFloat::IEEEquad(), false);
  114   expected = APFloat(APFloat::IEEEquad(),
  121   test = APFloat::getLargest(APFloat::IEEEquad(), true);
  122   expected = APFloat(APFloat::IEEEquad(),
  128   test = APFloat::getLargest(APFloat::IEEEquad(), true);
  129   expected = APFloat::getInf(APFloat::IEEEquad(), true);
  135   test = APFloat(APFloat::IEEEquad(), "0x0.0000000000000000000000000001p-16382");
  136   expected = APFloat(APFloat::IEEEquad(),
  142   test = APFloat(APFloat::IEEEquad(), "0x0.0000000000000000000000000001p-16382");
  143   expected = APFloat::getZero(APFloat::IEEEquad(), false);
  149   test = APFloat(APFloat::IEEEquad(), "-0x0.0000000000000000000000000001p-16382");
  150   expected = APFloat::getZero(APFloat::IEEEquad(), true);
  156   test = APFloat(APFloat::IEEEquad(), "-0x0.0000000000000000000000000001p-16382");
  157   expected = APFloat(APFloat::IEEEquad(),
  163   test = APFloat::getQNaN(APFloat::IEEEquad(), false);
  164   expected = APFloat::getQNaN(APFloat::IEEEquad(), false);
  169   test = APFloat::getQNaN(APFloat::IEEEquad(), false);
  170   expected = APFloat::getQNaN(APFloat::IEEEquad(), false);
  175   test = APFloat::getSNaN(APFloat::IEEEquad(), false);
  176   expected = APFloat::getQNaN(APFloat::IEEEquad(), false);
  181   test = APFloat::getSNaN(APFloat::IEEEquad(), false);
  182   expected = APFloat::getQNaN(APFloat::IEEEquad(), false);
  187   test = APFloat::getZero(APFloat::IEEEquad(), false);
  188   expected = APFloat::getSmallest(APFloat::IEEEquad(), false);
  193   test = APFloat::getZero(APFloat::IEEEquad(), false);
  194   expected = APFloat::getSmallest(APFloat::IEEEquad(), true);
  199   test = APFloat::getZero(APFloat::IEEEquad(), true);
  200   expected = APFloat::getSmallest(APFloat::IEEEquad(), false);
  205   test = APFloat::getZero(APFloat::IEEEquad(), true);
  206   expected = APFloat::getSmallest(APFloat::IEEEquad(), true);
  219   test = APFloat(APFloat::IEEEquad(), "0x0.ffffffffffffffffffffffffffffp-16382");
  220   expected = APFloat(APFloat::IEEEquad(),
  227   test = APFloat(APFloat::IEEEquad(),
  229   expected = APFloat(APFloat::IEEEquad(),
  236   test = APFloat(APFloat::IEEEquad(),
  238   expected = APFloat(APFloat::IEEEquad(),
  245   test = APFloat(APFloat::IEEEquad(),
  247   expected = APFloat(APFloat::IEEEquad(),
  260   test = APFloat(APFloat::IEEEquad(), "-0x1p+1");
  261   expected = APFloat(APFloat::IEEEquad(),
  267   test = APFloat(APFloat::IEEEquad(), "0x1p+1");
  268   expected = APFloat(APFloat::IEEEquad(), "0x1.ffffffffffffffffffffffffffffp+0");
  273   test = APFloat(APFloat::IEEEquad(), "0x1.ffffffffffffffffffffffffffffp+0");
  274   expected = APFloat(APFloat::IEEEquad(), "0x1p+1");
  279   test = APFloat(APFloat::IEEEquad(), "-0x1.ffffffffffffffffffffffffffffp+0");
  280   expected = APFloat(APFloat::IEEEquad(), "-0x1p+1");
  296   test = APFloat(APFloat::IEEEquad(), "-0x0.ffffffffffffffffffffffffffffp-16382");
  297   expected = APFloat(APFloat::IEEEquad(),
  305   test = APFloat(APFloat::IEEEquad(), "0x0.ffffffffffffffffffffffffffffp-16382");
  306   expected = APFloat(APFloat::IEEEquad(),
  314   test = APFloat(APFloat::IEEEquad(), "0x1.0000000000000000000000000000p-16382");
  315   expected = APFloat(APFloat::IEEEquad(),
  323   test = APFloat(APFloat::IEEEquad(), "-0x1.0000000000000000000000000000p-16382");
  324   expected = APFloat(APFloat::IEEEquad(),
  341   test = APFloat(APFloat::IEEEquad(), "-0x1p-16381");
  342   expected = APFloat(APFloat::IEEEquad(),
  349   test = APFloat(APFloat::IEEEquad(), "-0x1.ffffffffffffffffffffffffffffp-16382");
  350   expected = APFloat(APFloat::IEEEquad(), "-0x1p-16381");
  355   test = APFloat(APFloat::IEEEquad(), "0x1.ffffffffffffffffffffffffffffp-16382");
  356   expected = APFloat(APFloat::IEEEquad(), "0x1p-16381");
  361   test = APFloat(APFloat::IEEEquad(), "0x1p-16381");
  362   expected = APFloat(APFloat::IEEEquad(),
  379   test = APFloat(APFloat::IEEEquad(),
  381   expected = APFloat(APFloat::IEEEquad(),
  389   test = APFloat(APFloat::IEEEquad(),
  391   expected = APFloat(APFloat::IEEEquad(),
  399   test = APFloat(APFloat::IEEEquad(),
  401   expected = APFloat(APFloat::IEEEquad(),
  409   test = APFloat(APFloat::IEEEquad(),
  411   expected = APFloat(APFloat::IEEEquad(),
  419   test = APFloat(APFloat::IEEEquad(),
  421   expected = APFloat(APFloat::IEEEquad(),
  429   test = APFloat(APFloat::IEEEquad(),
  431   expected = APFloat(APFloat::IEEEquad(),
  439   test = APFloat(APFloat::IEEEquad(),
  441   expected = APFloat(APFloat::IEEEquad(),
  449   test = APFloat(APFloat::IEEEquad(),
  451   expected = APFloat(APFloat::IEEEquad(),
 1386   P = APFloat::getZero(APFloat::IEEEdouble());
 1389   P = APFloat::getZero(APFloat::IEEEdouble(), true);
 1392   P = APFloat::getNaN(APFloat::IEEEdouble());
 1395   P = APFloat::getInf(APFloat::IEEEdouble());
 1398   P = APFloat::getInf(APFloat::IEEEdouble(), true);
 1406   T = APFloat(3.14159);
 1408   T = APFloat::getNaN(APFloat::IEEEdouble());
 1410   T = APFloat::getInf(APFloat::IEEEdouble());
 1412   T = APFloat::getInf(APFloat::IEEEdouble(), true);
 1414   T = APFloat::getLargest(APFloat::IEEEdouble());
 1449   test = APFloat::getSmallest(APFloat::IEEEsingle(), true);
 1450   expected = APFloat(APFloat::IEEEsingle(), "-0x0.000002p-126");
 1456   test = APFloat::getSmallest(APFloat::IEEEquad(), false);
 1457   expected = APFloat(APFloat::IEEEquad(), "0x0.0000000000000000000000000001p-16382");
 1463   test = APFloat::getSmallest(APFloat::IEEEquad(), true);
 1464   expected = APFloat(APFloat::IEEEquad(), "-0x0.0000000000000000000000000001p-16382");
 1479   test = APFloat::getSmallestNormalized(APFloat::IEEEsingle(), true);
 1480   expected = APFloat(APFloat::IEEEsingle(), "-0x1p-126");
 1486   test = APFloat::getSmallestNormalized(APFloat::IEEEquad(), false);
 1487   expected = APFloat(APFloat::IEEEquad(), "0x1p-16382");
 1493   test = APFloat::getSmallestNormalized(APFloat::IEEEquad(), true);
 1494   expected = APFloat(APFloat::IEEEquad(), "-0x1p-16382");
 1556   test = APFloat(APFloat::x87DoubleExtended(), "0x1p-53");
 1562   test = APFloat(APFloat::IEEEquad(), "0x1p-53");
 1568   test = APFloat(APFloat::x87DoubleExtended(), "0xf.fffffffp+28");
 1573   test = APFloat::getSNaN(APFloat::IEEEsingle());
 1580   test = APFloat::getQNaN(APFloat::IEEEsingle());
 1587   test = APFloat::getSNaN(APFloat::x87DoubleExtended());
 1593   test = APFloat::getQNaN(APFloat::x87DoubleExtended());
 1606   test = APFloat(APFloat::PPCDoubleDouble(), "1.79769313486231580793728971405301e+308");
 1611   test = APFloat(APFloat::PPCDoubleDouble(), "2.00416836000897277799610805135016e-292");
 1621     Result = APFloat(APFloat::PPCDoubleDouble(), "1.0") -
 1625     Result = APFloat(APFloat::PPCDoubleDouble(), "1.0") *
 1629     Result = APFloat(APFloat::PPCDoubleDouble(), "1.0") /
 1634     Result = frexp(APFloat(APFloat::PPCDoubleDouble(), "1.0"), Exp,
 1638     Result = scalbn(APFloat(APFloat::PPCDoubleDouble(), "1.0"), 1,
 1647   t = APFloat(APFloat::IEEEsingle(), "-0x1p+0");
 3214   Frac = frexp(PZero, Exp, RM);
 3218   Frac = frexp(MZero, Exp, RM);
 3223   Frac = frexp(One, Exp, RM);
 3227   Frac = frexp(MOne, Exp, RM);
 3231   Frac = frexp(LargestDenormal, Exp, RM);
 3235   Frac = frexp(NegLargestDenormal, Exp, RM);
 3240   Frac = frexp(Smallest, Exp, RM);
 3244   Frac = frexp(NegSmallest, Exp, RM);
 3249   Frac = frexp(Largest, Exp, RM);
 3253   Frac = frexp(NegLargest, Exp, RM);
 3258   Frac = frexp(PInf, Exp, RM);
 3262   Frac = frexp(MInf, Exp, RM);
 3266   Frac = frexp(QPNaN, Exp, RM);
 3270   Frac = frexp(QMNaN, Exp, RM);
 3274   Frac = frexp(SNaN, Exp, RM);
 3278   Frac = frexp(SNaNWithPayload, Exp, RM);
 3283   Frac = frexp(APFloat(APFloat::IEEEdouble(), "0x0.ffffp-1"), Exp, RM);
 3287   Frac = frexp(APFloat(APFloat::IEEEdouble(), "0x1p-51"), Exp, RM);
 3291   Frac = frexp(APFloat(APFloat::IEEEdouble(), "0x1.c60f120d9f87cp+51"), Exp, RM);