[PATCH] CodeGen target hook for emitting intrinsic or libcall for pow*

Eli Bendersky eliben at google.com
Thu Jun 27 15:57:05 PDT 2013


Hello,

Without fmath-errno, Clang currently generates calls to @llvm.pow.*
intrinsics when it sees pow*(). This may not be suitable for all targets
(for example PNaCl), so the attached patch adds a target hook that CodeGen
queries. The target can state its preference for having or not having the
intrinsic generated. Non-PNaCl behavior remains unchanged; PNaCl-specific
test added.

Please take a look,

Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130627/6af5561c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codegen-builtin-pow-le32.1.patch
Type: application/octet-stream
Size: 3259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130627/6af5561c/attachment.obj>


More information about the cfe-commits mailing list