[LLVMdev] StmtPrinter long double support.
Chris Lattner
sabre at nondot.org
Sat Jun 7 15:14:34 PDT 2008
On Jun 6, 2008, at 9:47 AM, Dale Johannesen wrote:
>> I wonder what will be the best way to solve those both issue. Has
>> somebody planned to add support for long double to APInt and
>> APFloat ?
>
> There are no plans to support the use of host long double anywhere,
> if that's what you mean.
>
> Probably this dumper should use APFloat::convert to get the long
> double into APFloat::IEEEdouble format (with loss of precision; the
> comment claims that's OK), then use convertToDouble on that. If you
> want full precision, you'll need to print all the bits in hex; see
> EmitGlobalConstant in AsmPrinter.cpp.
>
I implemented this, thanks Dale. As a note, the preferred list for
clang discussion is on cfe-dev. No harm in using llvmdev though.
-Chris
More information about the llvm-dev
mailing list