Lines Matching refs:APFloat

1314     APFloat APF(V);  in GetConstantFoldFPValue()
1316 APF.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &unused); in GetConstantFoldFPValue()
1320 return ConstantFP::get(Ty->getContext(), APFloat((float)V)); in GetConstantFoldFPValue()
1322 return ConstantFP::get(Ty->getContext(), APFloat(V)); in GetConstantFoldFPValue()
1380 static Constant *ConstantFoldConvertToInt(const APFloat &Val, in ConstantFoldConvertToInt()
1389 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldConvertToInt()
1390 : APFloat::rmNearestTiesToEven; in ConstantFoldConvertToInt()
1391 APFloat::opStatus status = Val.convertToInteger(&UIntVal, ResultWidth, in ConstantFoldConvertToInt()
1394 if (status != APFloat::opOK && status != APFloat::opInexact) in ConstantFoldConvertToInt()
1409 APFloat APF = Op->getValueAPF(); in getValueAsDouble()
1410 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &unused); in getValueAsDouble()
1420 APFloat Val(Op->getValueAPF()); in ConstantFoldScalarCall()
1423 Val.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &lost); in ConstantFoldScalarCall()
1432 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1433 V.roundToIntegral(APFloat::rmNearestTiesToAway); in ConstantFoldScalarCall()
1438 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1439 V.roundToIntegral(APFloat::rmTowardNegative); in ConstantFoldScalarCall()
1444 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1445 V.roundToIntegral(APFloat::rmTowardPositive); in ConstantFoldScalarCall()
1450 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1451 V.roundToIntegral(APFloat::rmTowardZero); in ConstantFoldScalarCall()
1456 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1457 V.roundToIntegral(APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall()
1462 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1463 V.roundToIntegral(APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall()
1596 APFloat Val(APFloat::IEEEhalf, Op->getValue()); in ConstantFoldScalarCall()
1599 APFloat::opStatus status = Val.convert( in ConstantFoldScalarCall()
1600 Ty->getFltSemantics(), APFloat::rmNearestTiesToEven, &lost); in ConstantFoldScalarCall()
1604 assert(status == APFloat::opOK && !lost && in ConstantFoldScalarCall()
1663 APFloat V1 = Op1->getValueAPF(); in ConstantFoldScalarCall()
1664 APFloat V2 = Op2->getValueAPF(); in ConstantFoldScalarCall()
1670 const APFloat &C1 = Op1->getValueAPF(); in ConstantFoldScalarCall()
1671 const APFloat &C2 = Op2->getValueAPF(); in ConstantFoldScalarCall()
1676 const APFloat &C1 = Op1->getValueAPF(); in ConstantFoldScalarCall()
1677 const APFloat &C2 = Op2->getValueAPF(); in ConstantFoldScalarCall()
1695 APFloat((float)std::pow((float)Op1V, in ConstantFoldScalarCall()
1699 APFloat((float)std::pow((float)Op1V, in ConstantFoldScalarCall()
1703 APFloat((double)std::pow((double)Op1V, in ConstantFoldScalarCall()
1774 APFloat V = Op1->getValueAPF(); in ConstantFoldScalarCall()
1775 APFloat::opStatus s = V.fusedMultiplyAdd(Op2->getValueAPF(), in ConstantFoldScalarCall()
1777 APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall()
1778 if (s != APFloat::opInvalidOp) in ConstantFoldScalarCall()