[LLVMdev] [PATCH][RFC] Allow target-specific morphing of intrinsics during SelectionDAG building

Justin Holewinski jholewinski at nvidia.com
Thu Apr 19 08:05:51 PDT 2012


All,

The attached patch adds an extra hook to TargetLowering that allows a target to change the Intrinsic ID and Values associated with an intrinsic call during SelectionDAG construction.  The existing getTgtMemIntrinsic hook allows a target to change the Intrinsic ID but not the associated Values.  Further, we wish to use this hook for more than just memory-touching intrinsics.

We would like to get the community's feedback on this so as to make sure this patch is as universally applicable as possible.  While not currently used in the open-source tree, this patch lays some groundwork for submission of the NVIDIA NVPTX back-end into the open-source tree.


Thanks,

Justin Holewinski


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120419/04d8fd66/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-a-hook-to-TargetLowering-that-allows-a-target-to.patch
Type: application/octet-stream
Size: 3220 bytes
Desc: 0002-Add-a-hook-to-TargetLowering-that-allows-a-target-to.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120419/04d8fd66/attachment.obj>


More information about the llvm-dev mailing list