Lines Matching refs:APFloat
202 APFloat::getZero(APFloat::IEEEhalf)); in getNullValue()
205 APFloat::getZero(APFloat::IEEEsingle)); in getNullValue()
208 APFloat::getZero(APFloat::IEEEdouble)); in getNullValue()
211 APFloat::getZero(APFloat::x87DoubleExtended)); in getNullValue()
214 APFloat::getZero(APFloat::IEEEquad)); in getNullValue()
217 APFloat(APFloat::PPCDoubleDouble, in getNullValue()
256 APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(), in getAllOnesValue()
632 return &APFloat::IEEEhalf; in TypeToFloatSemantics()
634 return &APFloat::IEEEsingle; in TypeToFloatSemantics()
636 return &APFloat::IEEEdouble; in TypeToFloatSemantics()
638 return &APFloat::x87DoubleExtended; in TypeToFloatSemantics()
640 return &APFloat::IEEEquad; in TypeToFloatSemantics()
643 return &APFloat::PPCDoubleDouble; in TypeToFloatSemantics()
654 APFloat FV(V); in get()
657 APFloat::rmNearestTiesToEven, &ignored); in get()
671 APFloat FV(*TypeToFloatSemantics(Ty->getScalarType()), Str); in get()
683 APFloat NaN = APFloat::getNaN(Semantics, Negative, Type); in getNaN()
694 APFloat NegZero = APFloat::getZero(Semantics, /*Negative=*/true); in getNegativeZero()
713 ConstantFP* ConstantFP::get(LLVMContext &Context, const APFloat& V) { in get()
720 if (&V.getSemantics() == &APFloat::IEEEhalf) in get()
722 else if (&V.getSemantics() == &APFloat::IEEEsingle) in get()
724 else if (&V.getSemantics() == &APFloat::IEEEdouble) in get()
726 else if (&V.getSemantics() == &APFloat::x87DoubleExtended) in get()
728 else if (&V.getSemantics() == &APFloat::IEEEquad) in get()
731 assert(&V.getSemantics() == &APFloat::PPCDoubleDouble && in get()
743 Constant *C = get(Ty->getContext(), APFloat::getInf(Semantics, Negative)); in getInfinity()
751 ConstantFP::ConstantFP(Type *Ty, const APFloat& V) in ConstantFP()
757 bool ConstantFP::isExactlyValue(const APFloat &V) const { in isExactlyValue()
1261 bool ConstantFP::isValueValidForType(Type *Ty, const APFloat& Val) { in isValueValidForType()
1263 APFloat Val2 = APFloat(Val); in isValueValidForType()
1271 if (&Val2.getSemantics() == &APFloat::IEEEhalf) in isValueValidForType()
1273 Val2.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1277 if (&Val2.getSemantics() == &APFloat::IEEEsingle) in isValueValidForType()
1279 Val2.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1283 if (&Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
1284 &Val2.getSemantics() == &APFloat::IEEEsingle || in isValueValidForType()
1285 &Val2.getSemantics() == &APFloat::IEEEdouble) in isValueValidForType()
1287 Val2.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1291 return &Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
1292 &Val2.getSemantics() == &APFloat::IEEEsingle || in isValueValidForType()
1293 &Val2.getSemantics() == &APFloat::IEEEdouble || in isValueValidForType()
1294 &Val2.getSemantics() == &APFloat::x87DoubleExtended; in isValueValidForType()
1296 return &Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
1297 &Val2.getSemantics() == &APFloat::IEEEsingle || in isValueValidForType()
1298 &Val2.getSemantics() == &APFloat::IEEEdouble || in isValueValidForType()
1299 &Val2.getSemantics() == &APFloat::IEEEquad; in isValueValidForType()
1301 return &Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
1302 &Val2.getSemantics() == &APFloat::IEEEsingle || in isValueValidForType()
1303 &Val2.getSemantics() == &APFloat::IEEEdouble || in isValueValidForType()
1304 &Val2.getSemantics() == &APFloat::PPCDoubleDouble; in isValueValidForType()
2685 APFloat ConstantDataSequential::getElementAsAPFloat(unsigned Elt) const { in getElementAsAPFloat()
2693 return APFloat(APFloat::IEEEhalf, APInt(16, EltVal)); in getElementAsAPFloat()
2697 return APFloat(APFloat::IEEEsingle, APInt(32, EltVal)); in getElementAsAPFloat()
2701 return APFloat(APFloat::IEEEdouble, APInt(64, EltVal)); in getElementAsAPFloat()