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

Owen Anderson resistor at mac.com
Wed Nov 14 13:02:47 PST 2012


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.

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


More information about the llvm-commits mailing list