llvm-project/mlir/test
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
..
AffineOps [mlir] Change the syntax of AffineMapAttr and IntegerSetAttr to avoid conflicts with function types. 2020-01-13 13:24:39 -08:00
Analysis [mlir] Update the CallGraph for nested symbol references, and simplify CallableOpInterface 2020-01-13 15:51:28 -08:00
Conversion [mlir][spirv] Add lowering for composite std.constant. 2020-01-22 08:25:00 -05:00
Dialect Create a gpu.module operation for the GPU Dialect. 2020-01-21 14:05:03 +01:00
EDSC [mlir][Linalg] Add tensor support to Linalg EDSC Builders 2020-01-22 16:57:27 -05:00
Examples Fixed typo in Toy tutorial (second var e -> var f) 2019-11-27 11:58:45 -08:00
IR [mlir] Enable printing of FuncOp in the generic form. 2020-01-14 15:10:07 -08:00
Pass Refactor the way that pass options are specified. 2019-12-23 16:48:22 -08:00
Quantizer Convert the Canonicalize and CSE passes to generic Operation Passes. 2019-10-24 15:01:09 -07:00
SDBM Adjust License.txt file to use the LLVM license 2019-12-23 15:33:37 -08:00
Target [MLIR] LLVM Dialect: add llvm.cmpxchg and improve llvm.atomicrmw custom parser 2020-01-21 01:09:42 -08:00
Transforms [mlir] : Fix ViewOp shape folder for identity affine maps 2020-01-15 00:54:00 +00:00
Unit Add build files and update README. 2019-03-30 11:23:22 -07:00
lib [mlir] Enable specifying verify on OpInterface 2020-01-22 04:43:22 -08:00
mlir-cpu-runner [mlir] Change the syntax of AffineMapAttr and IntegerSetAttr to avoid conflicts with function types. 2020-01-13 13:24:39 -08:00
mlir-cuda-runner Add gpu.shuffle op. 2019-12-20 02:52:52 -08:00
mlir-tblgen [mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen. 2020-01-23 11:23:25 -08:00
APITest.h Adjust License.txt file to use the LLVM license 2019-12-23 15:33:37 -08:00
CMakeLists.txt [mlir][spirv] Add basic definitions for supporting availability 2019-12-27 16:25:09 -05:00
lit.cfg.py Automated rollback of commit d60133f89b 2019-11-26 08:47:48 -08:00
lit.site.cfg.py.in Automated rollback of commit d60133f89b 2019-11-26 08:47:48 -08:00