Lines Matching refs:APFloat
184 APFloat::getZero(APFloat::IEEEhalf)); in getNullValue()
187 APFloat::getZero(APFloat::IEEEsingle)); in getNullValue()
190 APFloat::getZero(APFloat::IEEEdouble)); in getNullValue()
193 APFloat::getZero(APFloat::x87DoubleExtended)); in getNullValue()
196 APFloat::getZero(APFloat::IEEEquad)); in getNullValue()
199 APFloat(APFloat::PPCDoubleDouble, in getNullValue()
236 APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(), in getAllOnesValue()
617 return &APFloat::IEEEhalf; in TypeToFloatSemantics()
619 return &APFloat::IEEEsingle; in TypeToFloatSemantics()
621 return &APFloat::IEEEdouble; in TypeToFloatSemantics()
623 return &APFloat::x87DoubleExtended; in TypeToFloatSemantics()
625 return &APFloat::IEEEquad; in TypeToFloatSemantics()
628 return &APFloat::PPCDoubleDouble; in TypeToFloatSemantics()
639 APFloat FV(V); in get()
642 APFloat::rmNearestTiesToEven, &ignored); in get()
656 APFloat FV(*TypeToFloatSemantics(Ty->getScalarType()), Str); in get()
668 APFloat NegZero = APFloat::getZero(Semantics, /*Negative=*/true); in getNegativeZero()
687 ConstantFP* ConstantFP::get(LLVMContext &Context, const APFloat& V) { in get()
694 if (&V.getSemantics() == &APFloat::IEEEhalf) in get()
696 else if (&V.getSemantics() == &APFloat::IEEEsingle) in get()
698 else if (&V.getSemantics() == &APFloat::IEEEdouble) in get()
700 else if (&V.getSemantics() == &APFloat::x87DoubleExtended) in get()
702 else if (&V.getSemantics() == &APFloat::IEEEquad) in get()
705 assert(&V.getSemantics() == &APFloat::PPCDoubleDouble && in get()
717 Constant *C = get(Ty->getContext(), APFloat::getInf(Semantics, Negative)); in getInfinity()
725 ConstantFP::ConstantFP(Type *Ty, const APFloat& V) in ConstantFP()
731 bool ConstantFP::isExactlyValue(const APFloat &V) const { in isExactlyValue()
1294 bool ConstantFP::isValueValidForType(Type *Ty, const APFloat& Val) { in isValueValidForType()
1296 APFloat Val2 = APFloat(Val); in isValueValidForType()
1304 if (&Val2.getSemantics() == &APFloat::IEEEhalf) in isValueValidForType()
1306 Val2.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1310 if (&Val2.getSemantics() == &APFloat::IEEEsingle) in isValueValidForType()
1312 Val2.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1316 if (&Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
1317 &Val2.getSemantics() == &APFloat::IEEEsingle || in isValueValidForType()
1318 &Val2.getSemantics() == &APFloat::IEEEdouble) in isValueValidForType()
1320 Val2.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1324 return &Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
1325 &Val2.getSemantics() == &APFloat::IEEEsingle || in isValueValidForType()
1326 &Val2.getSemantics() == &APFloat::IEEEdouble || in isValueValidForType()
1327 &Val2.getSemantics() == &APFloat::x87DoubleExtended; in isValueValidForType()
1329 return &Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
1330 &Val2.getSemantics() == &APFloat::IEEEsingle || in isValueValidForType()
1331 &Val2.getSemantics() == &APFloat::IEEEdouble || in isValueValidForType()
1332 &Val2.getSemantics() == &APFloat::IEEEquad; in isValueValidForType()
1334 return &Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
1335 &Val2.getSemantics() == &APFloat::IEEEsingle || in isValueValidForType()
1336 &Val2.getSemantics() == &APFloat::IEEEdouble || in isValueValidForType()
1337 &Val2.getSemantics() == &APFloat::PPCDoubleDouble; in isValueValidForType()
2717 APFloat ConstantDataSequential::getElementAsAPFloat(unsigned Elt) const { in getElementAsAPFloat()
2725 return APFloat(APFloat::IEEEsingle, APInt(32, EltVal)); in getElementAsAPFloat()
2729 return APFloat(APFloat::IEEEdouble, APInt(64, EltVal)); in getElementAsAPFloat()