Lines Matching refs:APFloat
96 APFloat::getZero(APFloat::IEEEhalf));
99 APFloat::getZero(APFloat::IEEEsingle));
102 APFloat::getZero(APFloat::IEEEdouble));
105 APFloat::getZero(APFloat::x87DoubleExtended));
108 APFloat::getZero(APFloat::IEEEquad));
111 APFloat(APInt::getNullValue(128)));
147 APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(),
479 return &APFloat::IEEEhalf;
481 return &APFloat::IEEEsingle;
483 return &APFloat::IEEEdouble;
485 return &APFloat::x87DoubleExtended;
487 return &APFloat::IEEEquad;
490 return &APFloat::PPCDoubleDouble;
501 APFloat FV(V);
504 APFloat::rmNearestTiesToEven, &ignored);
518 APFloat FV(*TypeToFloatSemantics(Ty->getScalarType()), Str);
531 APFloat apf = cast<ConstantFP>(Constant::getNullValue(Ty))->getValueAPF();
551 ConstantFP* ConstantFP::get(LLVMContext &Context, const APFloat& V) {
560 if (&V.getSemantics() == &APFloat::IEEEhalf)
562 else if (&V.getSemantics() == &APFloat::IEEEsingle)
564 else if (&V.getSemantics() == &APFloat::IEEEdouble)
566 else if (&V.getSemantics() == &APFloat::x87DoubleExtended)
568 else if (&V.getSemantics() == &APFloat::IEEEquad)
571 assert(&V.getSemantics() == &APFloat::PPCDoubleDouble &&
584 APFloat::getInf(Semantics, Negative));
587 ConstantFP::ConstantFP(Type *Ty, const APFloat& V)
593 bool ConstantFP::isExactlyValue(const APFloat &V) const {
1122 bool ConstantFP::isValueValidForType(Type *Ty, const APFloat& Val) {
1124 APFloat Val2 = APFloat(Val);
1132 if (&Val2.getSemantics() == &APFloat::IEEEhalf)
1134 Val2.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &losesInfo);
1138 if (&Val2.getSemantics() == &APFloat::IEEEsingle)
1140 Val2.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &losesInfo);
1144 if (&Val2.getSemantics() == &APFloat::IEEEhalf ||
1145 &Val2.getSemantics() == &APFloat::IEEEsingle ||
1146 &Val2.getSemantics() == &APFloat::IEEEdouble)
1148 Val2.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &losesInfo);
1152 return &Val2.getSemantics() == &APFloat::IEEEhalf ||
1153 &Val2.getSemantics() == &APFloat::IEEEsingle ||
1154 &Val2.getSemantics() == &APFloat::IEEEdouble ||
1155 &Val2.getSemantics() == &APFloat::x87DoubleExtended;
1157 return &Val2.getSemantics() == &APFloat::IEEEhalf ||
1158 &Val2.getSemantics() == &APFloat::IEEEsingle ||
1159 &Val2.getSemantics() == &APFloat::IEEEdouble ||
1160 &Val2.getSemantics() == &APFloat::IEEEquad;
1162 return &Val2.getSemantics() == &APFloat::IEEEhalf ||
1163 &Val2.getSemantics() == &APFloat::IEEEsingle ||
1164 &Val2.getSemantics() == &APFloat::IEEEdouble ||
1165 &Val2.getSemantics() == &APFloat::PPCDoubleDouble;
2297 /// type, return the specified element as an APFloat.
2298 APFloat ConstantDataSequential::getElementAsAPFloat(unsigned Elt) const {
2304 case Type::FloatTyID: return APFloat(*(float*)EltPtr);
2305 case Type::DoubleTyID: return APFloat(*(double*)EltPtr);