llvm-project/mlir/test/mlir-tblgen
Stella Laurenzo 71b6b010e6 [mlir][python] Factor out standalone OpView._ods_build_default class method.
* This allows us to hoist trait level information for regions and sized-variadic to class level attributes (_ODS_REGIONS, _ODS_OPERAND_SEGMENTS, _ODS_RESULT_SEGMENTS).
* Eliminates some splicey python generated code in favor of a native helper for it.
* Makes it possible to implement custom, variadic and region based builders with one line of python, without needing to manually code access to the segment attributes.
* Needs follow-on work for region based callbacks and support for SingleBlockImplicitTerminator.
* A follow-up will actually add ODS support for generating custom Python builders that delegate to this new method.
* Also includes the start of an e2e sample for constructing linalg ops where this limitation was discovered (working progressively through this example and cleaning up as I go).

Differential Revision: https://reviews.llvm.org/D94738
2021-01-19 09:29:57 -08:00
..
dialect.td [ODS] Allow dialect to specify C++ namespaces 2019-05-20 13:49:27 -07:00
directive-common.td [mlir][openacc] Use TableGen information for default enum 2021-01-12 09:42:42 -05: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] Allow for using interface class name in ODS interface definitions 2020-11-17 14:28:55 +01:00
llvm-intrinsics.td [MLIR] Update intrinsic test, because ptrmask changed. 2020-05-15 14:35:39 -07:00
op-attribute.td [mlir][ODS] Rename several uses of 'description' to 'summary' 2021-01-06 14:18:58 -08:00
op-decl.td [mlir][ODS] Fix the use of cppClassName in Type constraints for TypeDefs 2021-01-06 14:18:58 -08: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][OpFormat] Add support for emitting newlines from the custom format of an operation 2020-12-14 12:00:43 -08:00
op-format.mlir [mlir][OpFormatGen] Format enum attribute cases as keywords when possible 2021-01-14 11:35:49 -08:00
op-interface.td [mlir] Allow for using interface class name in ODS interface definitions 2020-11-17 14:28:55 +01:00
op-operand.td [mlir-tblgen] Use fully qualified names in generated code files 2020-06-26 15:05:33 +02:00
op-python-bindings.td [mlir][python] Factor out standalone OpView._ods_build_default class method. 2021-01-19 09:29:57 -08: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] Add support for referencing a SymbolRefAttr in a SideEffectInstance 2020-11-18 18:38:43 -08:00
pattern.mlir [mlir] Remove the dependency on StandardOps from FoldUtils 2020-12-10 14:13:57 -08:00
predicate.td [mlir][OpDefGen] Add support for generating local functions for shared utilities 2020-12-14 14:21:30 -08: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
rewriter-indexing.td Fix MLIR DRR matching when attributes are interleaved with operands 2021-01-08 03:18:26 +00: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][TypeDefGen] Add support for adding builders when generating a TypeDef 2021-01-11 12:06:22 -08:00
types.mlir [MLIR] Make ComplexType buildable if its element type is buildable 2020-12-29 23:31:42 +00:00