<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">In the latest sync from tip of tree
this llvm.pow.f32 and f64 works but not any of the other builtins.<br>
<br>
shouldn't all these gcc __builtin_xxx be mapping to the
corresponding llvm ir function, if available?<br>
<br>
otherwise how do you make C code use the desired llvm IR function?<br>
<br>
<br>
On 02/04/2015 04:23 PM, Reid Kleckner wrote:<br>
</div>
<blockquote
cite="mid:CACs=tyLeneTwyra2gg=WXdT3kMYyadMZCcNQS-Stzp_k8xd7Cg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">Should be fixed in to always use the LLVM builtin
in r228240.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Feb 4, 2015 at 3:39 PM, reed
kotler <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:rkotler@mips.com" target="_blank">rkotler@mips.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">In the
following example with gcc style builtins, in once case
llvm.powi.f64 is emitted<br>
and in the other just a call to library function powf.<br>
<br>
~/llvm/build/Debug+Asserts/bin/clang -S -emit-llvm pow1.c<br>
<br>
Why is that?<br>
<br>
Is there a way to force the call to an llvm style builtin?<br>
<br>
Tia.<span class="HOEnZb"><font color="#888888"><br>
<br>
Reed<br>
</font></span><br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>
<a moz-do-not-send="true"
href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a moz-do-not-send="true"
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>