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

Hal Finkel hfinkel at anl.gov
Wed Nov 14 20:12:07 PST 2012


----- Original Message -----
> From: "Craig Topper" <craig.topper at gmail.com>
> To: llvm-commits at cs.uiuc.edu
> Sent: Wednesday, November 14, 2012 10:00:59 PM
> Subject: [llvm-commits] [Patch] Add other fp rounding intrinsics to	complement llvm.floor
> 
> 
> 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.

I assume that we should update the language reference.

 -Hal

> 
> Thanks,
> ~Craig
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-commits mailing list