llvm-project/mlir/test/mlir-tblgen
Stella Laurenzo fd226c9b02 [mlir][Python] Roll up of python API fixes.
* As discussed, fixes the ordering or (operands, results) -> (results, operands) in various `create` like methods.
* Fixes a syntax error in an ODS accessor method.
* Removes the linalg example in favor of a test case that exercises the same.
* Fixes FuncOp visibility to properly use None instead of the empty string and defaults it to None.
* Implements what was documented for requiring that trailing __init__ args `loc` and `ip` are keyword only.
* Adds a check to `InsertionPoint.insert` so that if attempting to insert past the terminator, an exception is raised telling you what to do instead. Previously, this would crash downstream (i.e. when trying to print the resultant module).
* Renames `_ods_build_default` -> `build_generic` and documents it.
* Removes `result` from the list of prohibited words and for single-result ops, defaults to naming the result `result`, thereby matching expectations and what is already implemented on the base class.
* This was intended to be a relatively small set of changes to be inlined with the broader support for ODS generating the most specific builder, but it spidered out once actually testing various combinations, so rolling up separately.

Differential Revision: https://reviews.llvm.org/D95320
2021-01-24 19:02:59 -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][OpFormatGen] Add support for anchoring optional groups with types 2021-01-22 12:07:27 -08:00
op-format.mlir [mlir][OpFormatGen] Add support for anchoring optional groups with types 2021-01-22 12:07:27 -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] Roll up of python API fixes. 2021-01-24 19:02:59 -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