[LLVMdev] llvm builtins
reed kotler
rkotler at mips.com
Thu Feb 5 18:04:06 PST 2015
In the latest sync from tip of tree this llvm.pow.f32 and f64 works but
not any of the other builtins.
shouldn't all these gcc __builtin_xxx be mapping to the corresponding
llvm ir function, if available?
otherwise how do you make C code use the desired llvm IR function?
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/20150205/00d0d002/attachment.html>
More information about the llvm-dev
mailing list