[PATCH] Add ISD::FROUND for libm round()

Hal Finkel hfinkel at anl.gov
Sun Jul 14 09:10:25 PDT 2013


Ping.

 -Hal

----- Original Message -----
> Hello!
> 
> round() has been feeling a little left out; all of its friends (like
> rint() and nearbyint()) have their own ISD nodes, and round()
> doesn't. Recent PowerPC cores have an instruction for round(), and
> so I'd like to correct this injustice and add ISD::FROUND.
> 
> For the most part, this is extremely straightforward. I've added an
> intrinsic and matching ISD node just like those for nearbyint() and
> friends. The SelectionDAG pattern I've named frnd (because
> ISD::FP_ROUND has already claimed fround); obviously we can use a
> different name if someone has a better suggestion. Please review.
> 
> Thanks again,
> Hal
> 
> --
> Hal Finkel
> Assistant Computational Scientist
> Leadership Computing Facility
> Argonne National Laboratory
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-commits mailing list