diff options
author | Marcello Maggioni <hayarms@gmail.com> | 2020-01-22 14:22:29 -0800 |
---|---|---|
committer | Marcello Maggioni <hayarms@gmail.com> | 2020-01-23 11:23:25 -0800 |
commit | be9f09c768f925bcd0e394043663ed005cf7a17f (patch) | |
tree | 37f5d31a9dcf6ab713b761bfebad65010680c3f9 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 794b8a0329d1356455970fe1ae26f5d3b38e7906 (diff) | |
download | llvm-be9f09c768f925bcd0e394043663ed005cf7a17f.zip llvm-be9f09c768f925bcd0e394043663ed005cf7a17f.tar.gz llvm-be9f09c768f925bcd0e394043663ed005cf7a17f.tar.bz2 |
[mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen.
Summary:
LLVMIRIntrinsicGen is using LLVM_Op as the base class for intrinsics.
This works for LLVM intrinsics in the LLVM Dialect, but when we are
trying to convert custom intrinsics that originate from a custom
LLVM dialect (like NVVM or ROCDL) these usually have a different
"cppNamespace" that needs to be applied to these dialect.
These dialect specific characteristics (like "cppNamespace")
are typically organized by creating a custom op (like NVVM_Op or
ROCDL_Op) that passes the correct dialect to the LLVM_OpBase class.
It seems natural to allow LLVMIRIntrinsicGen to take that into
consideration when generating the conversion code from one of these
dialect to a set of target specific intrinsics.
Reviewers: rriddle, andydavis1, antiagainst, nicolasvasilache, ftynse
Subscribers: jdoerfert, mehdi_amini, jpienaar, burmako, shauheen, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73233
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions