Lines Matching refs:CFP
1541 static bool fitsInFPType(ConstantFP *CFP, const fltSemantics &Sem) { in fitsInFPType() argument
1543 APFloat F = CFP->getValueAPF(); in fitsInFPType()
1548 static Type *shrinkFPConstant(ConstantFP *CFP) { in shrinkFPConstant() argument
1549 if (CFP->getType() == Type::getPPC_FP128Ty(CFP->getContext())) in shrinkFPConstant()
1552 if (fitsInFPType(CFP, APFloat::IEEEhalf())) in shrinkFPConstant()
1553 return Type::getHalfTy(CFP->getContext()); in shrinkFPConstant()
1555 if (fitsInFPType(CFP, APFloat::IEEEsingle())) in shrinkFPConstant()
1556 return Type::getFloatTy(CFP->getContext()); in shrinkFPConstant()
1557 if (CFP->getType()->isDoubleTy()) in shrinkFPConstant()
1559 if (fitsInFPType(CFP, APFloat::IEEEdouble())) in shrinkFPConstant()
1560 return Type::getDoubleTy(CFP->getContext()); in shrinkFPConstant()
1578 auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i)); in shrinkFPConstantVector() local
1579 if (!CFP) in shrinkFPConstantVector()
1582 Type *T = shrinkFPConstant(CFP); in shrinkFPConstantVector()
1604 if (auto *CFP = dyn_cast<ConstantFP>(V)) in getMinimumFPType() local
1605 if (Type *T = shrinkFPConstant(CFP)) in getMinimumFPType()