Justin Holewinski
2012-Apr-19 15:05 UTC
[LLVMdev] [PATCH][RFC] Allow target-specific morphing of intrinsics during SelectionDAG building
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>
Possibly Parallel Threads
- [LLVMdev] [PATCH][RFC] Add extra arguments to TargetLowering::LowerCall() so targets have more context in which to construct call chains
- [LLVMdev] [llvm-commits] [PATCH][RFC] Add extra arguments to TargetLowering::LowerCall() so targets have more context in which to construct call chains
- [LLVMdev] [llvm-commits] [PATCH][RFC] Add extra arguments to TargetLowering::LowerCall() so targets have more context in which to construct call chains
- [LLVMdev] [llvm-commits] [PATCH][RFC] Add extra arguments to TargetLowering::LowerCall() so targets have more context in which to construct call chains
- [LLVMdev] Bug in SelectionDAG visitTargetIntrinsic