Lines Matching refs:APFloat
117 APFloat::getZero(APFloat::IEEEhalf));
120 APFloat::getZero(APFloat::IEEEsingle));
123 APFloat::getZero(APFloat::IEEEdouble));
126 APFloat::getZero(APFloat::x87DoubleExtended));
129 APFloat::getZero(APFloat::IEEEquad));
132 APFloat(APFloat::PPCDoubleDouble,
169 APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(),
538 return &APFloat::IEEEhalf;
540 return &APFloat::IEEEsingle;
542 return &APFloat::IEEEdouble;
544 return &APFloat::x87DoubleExtended;
546 return &APFloat::IEEEquad;
549 return &APFloat::PPCDoubleDouble;
560 APFloat FV(V);
563 APFloat::rmNearestTiesToEven, &ignored);
577 APFloat FV(*TypeToFloatSemantics(Ty->getScalarType()), Str);
590 APFloat apf = cast<ConstantFP>(Constant::getNullValue(Ty))->getValueAPF();
610 ConstantFP* ConstantFP::get(LLVMContext &Context, const APFloat& V) {
617 if (&V.getSemantics() == &APFloat::IEEEhalf)
619 else if (&V.getSemantics() == &APFloat::IEEEsingle)
621 else if (&V.getSemantics() == &APFloat::IEEEdouble)
623 else if (&V.getSemantics() == &APFloat::x87DoubleExtended)
625 else if (&V.getSemantics() == &APFloat::IEEEquad)
628 assert(&V.getSemantics() == &APFloat::PPCDoubleDouble &&
641 APFloat::getInf(Semantics, Negative));
644 ConstantFP::ConstantFP(Type *Ty, const APFloat& V)
650 bool ConstantFP::isExactlyValue(const APFloat &V) const {
1179 bool ConstantFP::isValueValidForType(Type *Ty, const APFloat& Val) {
1181 APFloat Val2 = APFloat(Val);
1189 if (&Val2.getSemantics() == &APFloat::IEEEhalf)
1191 Val2.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &losesInfo);
1195 if (&Val2.getSemantics() == &APFloat::IEEEsingle)
1197 Val2.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &losesInfo);
1201 if (&Val2.getSemantics() == &APFloat::IEEEhalf ||
1202 &Val2.getSemantics() == &APFloat::IEEEsingle ||
1203 &Val2.getSemantics() == &APFloat::IEEEdouble)
1205 Val2.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &losesInfo);
1209 return &Val2.getSemantics() == &APFloat::IEEEhalf ||
1210 &Val2.getSemantics() == &APFloat::IEEEsingle ||
1211 &Val2.getSemantics() == &APFloat::IEEEdouble ||
1212 &Val2.getSemantics() == &APFloat::x87DoubleExtended;
1214 return &Val2.getSemantics() == &APFloat::IEEEhalf ||
1215 &Val2.getSemantics() == &APFloat::IEEEsingle ||
1216 &Val2.getSemantics() == &APFloat::IEEEdouble ||
1217 &Val2.getSemantics() == &APFloat::IEEEquad;
1219 return &Val2.getSemantics() == &APFloat::IEEEhalf ||
1220 &Val2.getSemantics() == &APFloat::IEEEsingle ||
1221 &Val2.getSemantics() == &APFloat::IEEEdouble ||
1222 &Val2.getSemantics() == &APFloat::PPCDoubleDouble;
2450 /// type, return the specified element as an APFloat.
2451 APFloat ConstantDataSequential::getElementAsAPFloat(unsigned Elt) const {
2459 return APFloat(*const_cast<float *>(FloatPrt));
2463 return APFloat(*const_cast<double *>(DoublePtr));