Lines Matching full:cfp
141 void printCFP(const ConstantFP* CFP);
220 void CppWriter::printCFP(const ConstantFP *CFP) {
222 APFloat APF = APFloat(CFP->getValueAPF()); // copy
223 if (CFP->getType() == Type::getFloatTy(CFP->getContext()))
234 if (CFP->getType() == Type::getDoubleTy(CFP->getContext()))
241 std::string StrVal = ftostr(CFP->getValueAPF());
251 (CFP->isExactlyValue(atof(StrVal.c_str())))) {
252 if (CFP->getType() == Type::getDoubleTy(CFP->getContext()))
256 } else if (CFP->getType() == Type::getDoubleTy(CFP->getContext()))
258 << utohexstr(CFP->getValueAPF().bitcastToAPInt().getZExtValue())
262 << utohexstr((uint32_t)CFP->getValueAPF().
748 } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) {
750 printCFP(CFP);