llvm-project/mlir/test/mlir-tblgen
Alexandre Eichenberger 476ca094c8 [mlir][ods] Adding attribute setters generation
In some dialects, attributes may have default values that may be
determined only after shape inference. For example, attributes that
are dependent on the rank of the input cannot be assigned a default
value until the rank of the tensor is inferred.

While we can set attributes without explicit setters, referring to
the attributes via accessors instead of having to use the string
interface is better for compile time verification.

The proposed patch add one method per operation attribute that let us
set its value. The code is a very small modification of the existing
getter methods.

Differential Revision: https://reviews.llvm.org/D74143
2020-02-19 11:49:34 -05: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
llvm-intrinsics.td [mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen. 2020-01-23 11:23:25 -08:00
op-attribute.td [mlir][ods] Adding attribute setters generation 2020-02-19 11:49:34 -05:00
op-decl.td [mlir] Add shaped container component type interface 2020-01-15 13:28:39 -08:00
op-format-spec.td [mlir] Emit a fatal error when the assembly format is invalid 2020-02-03 22:14:33 -08:00
op-format.mlir [mlir] Add support for generating the parser/printer from the declarative operation format. 2020-01-30 11:43:40 -08:00
op-interface.td Skip generating C++ for "DeclareOpInterfaceMethods" in op interface gen. 2019-12-13 17:08:33 -08:00
op-operand.td [mlir] Add shaped container component type interface 2020-01-15 13:28:39 -08:00
op-result.td [mlir] Add shaped container component type interface 2020-01-15 13:28:39 -08:00
pattern.mlir [DRR] Introduce `$_` to ignore op argument match 2019-12-02 07:54:50 -08:00
predicate.td NFC: add indexing operator for ArrayAttr 2020-02-14 22:54:37 -08:00
return-types.mlir [mlir] Enable specifying verify on OpInterface 2020-01-22 04:43:22 -08:00
types.mlir Define AnyRankedTensor Type in TableGen 2019-10-25 10:31:56 -07:00