[llvm-commits] [llvm] r167922 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Craig Topper craig.topper at gmail.com
Wed Nov 14 14:09:22 PST 2012


On Wed, Nov 14, 2012 at 1:02 PM, Owen Anderson <resistor at mac.com> wrote:

>
> On Nov 14, 2012, at 9:53 AM, Craig Topper <craig.topper at gmail.com> wrote:
>
> I'm also looking into adding intrinsics for supporting ceil, trunc, rint,
> and nearbyint for vectors. The ISD nodes exist already but they currently
> only get created for scalar types when libcalls are lowered. So if you want
> to go ahead and do the right thing for FCEIL, FTRUNC, FRINT, FNEARBYINT of
> vectors while you're in there.
>
>
> On a tangential note, it's a pet peeve of mine that some of these nodes
> are on accessible from libcall lowering, which is a very C-centric
> optimization pass.  IMO, they should all have corresponding intrinsics that
> map directly onto them, so that they can be more readily accessed from
> languages that don't want to be restricted to C's nomenclature.  Plus, the
> libcall lowering becomes simpler: it just transforms the libcall to the
> intrinsic call.
>

I was going to make the intrinsics work for scalar types too just like the
existing llvm.floor. May also do the others like sin, cos, exp, log, etc.
Was starting with the rounding ones specifically so I could support them
with roundps/pd on x86.


>
> --Owen
>



-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121114/ff59f77b/attachment.html>


More information about the llvm-commits mailing list