llvm-project/mlir/tools
Mehdi Amini 575b22b5d1 Revisit Dialect registration: require and store a TypeID on dialects
This patch moves the registration to a method in the MLIRContext: getOrCreateDialect<ConcreteDialect>()

This method requires dialect to provide a static getDialectNamespace()
and store a TypeID on the Dialect itself, which allows to lazyily
create a dialect when not yet loaded in the context.
As a side effect, it means that duplicated registration of the same
dialect is not an issue anymore.

To limit the boilerplate, TableGen dialect generation is modified to
emit the constructor entirely and invoke separately a "init()" method
that the user implements.

Differential Revision: https://reviews.llvm.org/D85495
2020-08-07 15:57:08 +00:00
..
mlir-cpu-runner [MLIR] Move JitRunner to live with ExecutionEngine 2020-05-15 14:37:10 -07:00
mlir-cuda-runner [MLIR] Change GpuLaunchFuncToGpuRuntimeCallsPass to wrap a RewritePattern with the same functionality. 2020-08-06 11:55:46 +02:00
mlir-linalg-ods-gen [mlir][Linalg] Retire C++ MatmulOp in favor of a linalg-ods-gen'd op. 2020-06-16 10:46:35 -04:00
mlir-opt [mlir] Remove LLVMTypeTestDialect 2020-08-05 14:39:36 +02:00
mlir-reduce Create the MLIR Reduce framework 2020-07-07 23:42:53 +00:00
mlir-rocm-runner [mlir] take LLVMContext in MLIR-to-LLVM-IR translation 2020-08-07 14:22:30 +02:00
mlir-shlib [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-tblgen Revisit Dialect registration: require and store a TypeID on dialects 2020-08-07 15:57:08 +00:00
mlir-translate [mlir] use the new stateful LLVM type translator by default 2020-08-06 00:36:33 +02:00
mlir-vulkan-runner [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
CMakeLists.txt Create the MLIR Reduce framework 2020-07-07 23:42:53 +00:00