llvm-project/mlir/tools
Alex Zinenko 6ec3872845 [mlir] ODS: support TableGen dag objects to specify OpBuilder parameters
Historically, custom builder specification in OpBuilder has been accepting the
formal parameter list for the builder method as a raw string containing C++.
While this worked well to connect the signature and the body, this became
problematic when ODS needs to manipulate the parameter list, e.g. to inject
OpBuilder or to trim default values when generating the definition. This has
also become inconsistent with other method declarations, in particular in
interface definitions.

Introduce the possibility to define OpBuilder formal parameters using a
TableGen dag similarly to other methods. Additionally, introduce a mechanism to
declare parameters with default values using an additional class. This
mechanism can be reused in other methods. The string-based builder signature
declaration is deprecated and will be removed after a transition period.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D89470
2020-10-21 11:42:50 +02:00
..
mlir-cpu-runner Revert "[RFC] Factor out repetitive cmake patterns for llvm-style projects" 2020-10-04 15:17:34 -07:00
mlir-cuda-runner [mlir-cuda-runner] Unbreak the build 2020-10-13 22:36:08 +02:00
mlir-linalg-ods-gen [mlir] More changes to avoid args now inserted.NFC 2020-10-14 10:47:45 -07:00
mlir-opt [mlir][Linalg] Make a Linalg CodegenStrategy available. 2020-10-14 11:11:26 +00:00
mlir-reduce Revert "[RFC] Factor out repetitive cmake patterns for llvm-style projects" 2020-10-04 15:17:34 -07:00
mlir-rocm-runner [mlir][gpu] Adding gpu runtime wrapper functions for async execution. 2020-10-12 14:07:27 +02:00
mlir-shlib [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-tblgen [mlir] ODS: support TableGen dag objects to specify OpBuilder parameters 2020-10-21 11:42:50 +02:00
mlir-translate Revert "[RFC] Factor out repetitive cmake patterns for llvm-style projects" 2020-10-04 15:17:34 -07:00
mlir-vulkan-runner [mlir][vulkan-runner] Fix buffer usage flags 2020-10-14 16:29:32 +01:00
CMakeLists.txt Create the MLIR Reduce framework 2020-07-07 23:42:53 +00:00