llvm-project/mlir/tools
Marcello Maggioni be9f09c768 [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
2020-01-23 11:23:25 -08:00
..
mlir-cpu-runner Adjust License.txt file to use the LLVM license 2019-12-23 15:33:37 -08:00
mlir-cuda-runner Create a gpu.module operation for the GPU Dialect. 2020-01-21 14:05:03 +01:00
mlir-opt [mlir][EDSC] Refactor dependencies involving EDSCs. 2020-01-15 09:34:29 -05:00
mlir-tblgen [mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen. 2020-01-23 11:23:25 -08:00
mlir-translate Adjust License.txt file to use the LLVM license 2019-12-23 15:33:37 -08:00
CMakeLists.txt Add an mlir-cuda-runner tool. 2019-07-04 07:53:54 -07:00