Lines Matching defs:CFP
1503 static bool fitsInFPType(ConstantFP *CFP, const fltSemantics &Sem) {
1505 APFloat F = CFP->getValueAPF();
1510 static Type *shrinkFPConstant(ConstantFP *CFP) {
1511 if (CFP->getType() == Type::getPPC_FP128Ty(CFP->getContext()))
1514 if (fitsInFPType(CFP, APFloat::IEEEhalf()))
1515 return Type::getHalfTy(CFP->getContext());
1517 if (fitsInFPType(CFP, APFloat::IEEEsingle()))
1518 return Type::getFloatTy(CFP->getContext());
1519 if (CFP->getType()->isDoubleTy())
1521 if (fitsInFPType(CFP, APFloat::IEEEdouble()))
1522 return Type::getDoubleTy(CFP->getContext());
1540 auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
1541 if (!CFP)
1544 Type *T = shrinkFPConstant(CFP);
1566 if (auto *CFP = dyn_cast<ConstantFP>(V))
1567 if (Type *T = shrinkFPConstant(CFP))