[llvm-commits] [Patch] Add other fp rounding intrinsics to complement llvm.floor

Craig Topper craig.topper at gmail.com
Wed Nov 14 20:00:59 PST 2012


The attached patch adds target independent intrinsics for ceil, trunc,
rint, and nearbyint to complement the existing floor intrinsic. This gives
direct access to the existing ISD node types. My primary interest is the
vector types, as the scalar forms are already accessible through libcall
handling. This patch makes scalars available as intrinsics too. Maybe this
can simplify libcall handling?

I added setOperationAction(Expand) to targets where it was obvious where to
do so. Several targets seemed to just have problems returning vector types
in general.

Thanks,
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121114/eaa58a1a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fp_intrinsics.patch
Type: application/octet-stream
Size: 4980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121114/eaa58a1a/attachment.obj>


More information about the llvm-commits mailing list