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

Eli Bendersky eliben at google.com
Mon Jul 1 09:17:06 PDT 2013


Ping


---------- Forwarded message ----------
From: Eli Bendersky <eliben at google.com>
Date: Thu, Jun 27, 2013 at 3:57 PM
Subject: [PATCH] CodeGen target hook for emitting intrinsic or libcall for
pow*
To: llvm cfe <cfe-commits at cs.uiuc.edu>


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/20130701/914d8160/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/20130701/914d8160/attachment.obj>


More information about the cfe-commits mailing list