llvm-project/mlir/test/mlir-tblgen
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
..
dialect.td [ODS] Allow dialect to specify C++ namespaces 2019-05-20 13:49:27 -07:00
expect-symbol.td Use `not` to invert return code in expected to fail tests 2019-10-30 14:38:18 -07:00
interfaces.mlir [mlir] Refactor InterfaceGen to support generating interfaces for Attributes and Types. 2020-06-30 15:52:33 -07:00
llvm-intrinsics.td [MLIR] Update intrinsic test, because ptrmask changed. 2020-05-15 14:35:39 -07:00
op-attribute.td [MLIR][TableGen] Automatic detection and elimination of redundant methods 2020-09-17 16:04:37 -07:00
op-decl.td [mlir] ODS: support TableGen dag objects to specify OpBuilder parameters 2020-10-21 11:42:50 +02:00
op-derived-attribute.mlir [MLIR] Add getSizeInBits() for tensor of complex 2020-08-07 12:38:49 -07:00
op-error.td [mlir] ODS: support TableGen dag objects to specify OpBuilder parameters 2020-10-21 11:42:50 +02:00
op-format-spec.td [mlir] Allow space literals (` `) in assemblyFormat. 2020-10-19 07:25:28 +02:00
op-format.mlir [mlir] Allow space literals (` `) in assemblyFormat. 2020-10-19 07:25:28 +02:00
op-interface.td [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
op-operand.td [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
op-result.td [MLIR] Change default builders generated by TableGen to use TypeRange for result types 2020-09-23 09:06:07 -07:00
op-side-effects.td [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
openmp-common.td [NFC][MLIR][OpenMP] Add comments and test for OpenMP enum declaration utility 2020-08-14 23:22:23 +01:00
pattern.mlir Fixed a failure when const matcher fails, added a test to catch 2020-10-16 15:02:24 -07:00
predicate.td [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
return-types.mlir Change filecheck default to dump input on failure 2020-06-09 18:57:46 +00:00
rewriter-errors.td [mlir] RewriterGen NativeCodeCall matcher with ConstantOp matcher 2020-10-15 16:32:20 -07:00
testdialect-typedefs.mlir [MLIR] Add support for defining Types in tblgen 2020-10-14 00:32:18 +00:00
trait.mlir [MLIR] Add idempotent trait folding 2020-10-16 15:51:04 +00:00
typedefs.td [MLIR] ODS TypeDefs: getChecked() and internal enhancements 2020-10-19 01:10:05 +00:00
types.mlir [mlir][core] Add IndexElementsAttr helpers. 2020-05-27 13:39:48 -07:00