[LLVMdev] llvm builtins

reed kotler rkotler at mips.com
Wed Feb 4 16:56:09 PST 2015


I think at least the same issue applies to the following:

sqrt, sin, cos, exp,  exp2, log, log10, log2, fabs, floor,
copysign, ceil, trunc, rint, round...


On 02/04/2015 04:23 PM, Reid Kleckner wrote:
> Should be fixed in to always use the LLVM builtin in r228240.
>
> On Wed, Feb 4, 2015 at 3:39 PM, reed kotler <rkotler at mips.com 
> <mailto:rkotler at mips.com>> wrote:
>
>     In the following example with gcc style builtins, in once case
>     llvm.powi.f64 is emitted
>     and in the other just a call to library function powf.
>
>      ~/llvm/build/Debug+Asserts/bin/clang -S -emit-llvm pow1.c
>
>     Why is that?
>
>     Is there a way to force the call to an llvm style builtin?
>
>     Tia.
>
>     Reed
>
>     _______________________________________________
>     LLVM Developers mailing list
>     LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu>
>     http://llvm.cs.uiuc.edu
>     http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150204/26d7dcc5/attachment.html>


More information about the llvm-dev mailing list