[llvm-commits] [llvm-gcc-4.0] r42134 - /llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
Chris Lattner
clattner at apple.com
Wed Sep 26 13:23:49 PDT 2007
On Sep 26, 2007, at 11:57 AM, Duncan Sands wrote:
> Hi Chris,
>
>>> How about constant folding calls to functions such as sqrt?
>>
>> Do you mean sqrt specifically or something more general?
>>
>> In general, we can extend APFloat to do lots of different math
>> functions, including sqrt etc. In practice, APFloat doesn't do sqrt
>> yet, so we use host float/double to do it.
>
> sorry I wasn't very clear. I was asking if you were planning to
> implement APFloat versions of all elementary functions for constant
> folding purposes.
Not in the short term, though Neil may contribute some stuff here and
there as his time permits.
> Sounds like a lot of work :)
Indeed :)
-Chris
More information about the llvm-commits
mailing list