Home | History | Annotate | Download | only in CppBackend

Lines Matching full:cfp

136     void printCFP(const ConstantFP* CFP);
215 void CppWriter::printCFP(const ConstantFP *CFP) {
217 APFloat APF = APFloat(CFP->getValueAPF()); // copy
218 if (CFP->getType() == Type::getFloatTy(CFP->getContext()))
229 if (CFP->getType() == Type::getDoubleTy(CFP->getContext()))
236 std::string StrVal = ftostr(CFP->getValueAPF());
246 (CFP->isExactlyValue(atof(StrVal.c_str())))) {
247 if (CFP->getType() == Type::getDoubleTy(CFP->getContext()))
251 } else if (CFP->getType() == Type::getDoubleTy(CFP->getContext()))
253 << utohexstr(CFP->getValueAPF().bitcastToAPInt().getZExtValue())
257 << utohexstr((uint32_t)CFP->getValueAPF().
737 } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) {
739 printCFP(CFP);