llvm-project/mlir
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
..
cmake/modules [Flang] add some cmake code to allow for out-of-tree building of MLIR and LLVM 2020-01-22 17:43:15 +00:00
docs [mlir] Enable specifying verify on OpInterface 2020-01-22 04:43:22 -08:00
examples [MLIR] Fix broken link locations after move to monorepo 2020-01-14 07:15:02 +00:00
include [mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen. 2020-01-23 11:23:25 -08:00
lib [mlir] Fix vectorize transform crashing on none-op operand 2020-01-23 09:57:16 -08:00
test [mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen. 2020-01-23 11:23:25 -08:00
tools [mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen. 2020-01-23 11:23:25 -08:00
unittests [mlir] Use getDenseElementBitwidth instead of Type::getElementTypeBitWidth. 2020-01-09 14:51:44 -08:00
utils [mlir][spirv] Support implied extensions and capabilities 2020-01-17 08:01:57 -05:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.clang-tidy Add a clang-tidy configuration file for MLIR, it is using camelBack for naming at the moment 2019-12-26 21:42:01 +00:00
CMakeLists.txt [Flang] add some cmake code to allow for out-of-tree building of MLIR and LLVM 2020-01-22 17:43:15 +00:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.