[llvm-dev] TableGen support for Intrinsics with multiple outputs

sunwenbo (A) via llvm-dev llvm-dev at lists.llvm.org
Fri Apr 28 02:16:06 PDT 2017


Hi folks,

I am developing backend for a new architecture, which has many Intrinsics with multiple outputs. However, I found TableGen doesn't support such Intrinsics during Instruction Selection.
For example, load intrinsic with address updated.
def int_xxx_load_addr_updated: Intrinsic<[llvm_i32_ty, llvm_ptr_ty], [llvm_ptr_ty, llvm_i32_ty], []>;

NVPTX has the same situation in the trunk, but it handles all intrinsics in source code which introduced a huge chunk of repetitive codes.

I have a patch for this issue, which is waiting for review.  https://reviews.llvm.org/D32280

Any suggestions are highly appreciated.

Thanks,
Wenbo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170428/fd2fcde4/attachment.html>


More information about the llvm-dev mailing list