llvm-project/mlir/test/mlir-tblgen
Alex Zinenko 6981e5ec91 [mlir][python] fix constructor generation for optional operands in presence of segment attribute
The ODS-based Python op bindings generator has been generating incorrect
specification of the operand segment in presence if both optional and variadic
operand groups: optional groups were treated as variadic whereas they require
separate treatement. Make sure it is the case. Also harden the tests around
generated op constructors as they could hitherto accept the code for both
optional and variadic arguments.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D113259
2021-11-05 12:40:27 +01:00
..
attrdefs.td [ODS/AsmParser] Don't pass MLIRContext with DialectAsmParser. 2021-09-30 05:10:28 +00:00
constant-str-attr-invalid.mlir [MLIR][ODS] default-valued strings should be in quotes 2021-10-15 03:00:41 +00:00
dialect.td [mlir][ODS]: Add per-op cppNamespace. 2021-05-11 10:48:05 -07:00
directive-common.td [mlir][openacc] Use TableGen information for default enum 2021-01-12 09:42:42 -05:00
expect-symbol.td
gen-dialect-doc.td [mlir][ods] Skip adding TOC in doc gen when present 2021-08-20 07:01:54 -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 Support alias.scope and noalias metadata lowering on intrinsics. 2021-09-01 16:54:20 +00:00
op-attribute.td [mlir][ods] Op::verify should not call OpAdaptor::verify 2021-11-04 19:12:55 +00:00
op-decl-and-defs.td [mlir] Fix missing prefix for region accessor on OpAdaptor 2021-10-26 17:35:16 -07:00
op-derived-attribute.mlir [MLIR] Add getSizeInBits() for tensor of complex 2020-08-07 12:38:49 -07:00
op-error.td Add sanity check in MLIR ODS to catch case where an arguments/results/regions/successors names overlap 2021-09-13 06:21:25 +00:00
op-format-spec.td [mlir][ODS] Support result type inference in custom assembly format 2021-10-11 14:07:56 -06:00
op-format.mlir [MLIR][ODS] default-valued strings should be in quotes 2021-10-15 03:00:41 +00: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] fix constructor generation for optional operands in presence of segment attribute 2021-11-05 12:40:27 +01:00
op-result.td [mlir][ods] Fix packing in OperandOrAttribute 2021-08-17 20:55:48 -07:00
op-side-effects.td [mlir] Fully qualify MemoryEffects 2021-07-30 18:20:06 +02:00
pattern.mlir [MLIR][ODS] default-valued strings should be in quotes 2021-10-15 03:00:41 +00:00
predicate.td [mlir][ods] Op::verify should not call OpAdaptor::verify 2021-11-04 19:12:55 +00:00
return-types.mlir [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
rewriter-errors.td [DRR] Explicit Return Types in Rewrites 2021-09-15 14:25:29 -07:00
rewriter-indexing.td [DRR] Explicit Return Types in Rewrites 2021-09-15 14:25:29 -07:00
rewriter-static-matcher.td [mlir-tblgen] Add DagNode StaticMatcher. 2021-09-20 23:37:42 +00:00
testdialect-attrdefs.mlir [mlir][AttrDefGen] Add support for specifying the value type of an attribute 2021-03-04 13:04:05 -08:00
testdialect-typedefs.mlir [mlir] Fix AsmPrinter for types with sub elements 2021-10-12 12:08:16 +03:00
trait.mlir [MLIR] Add idempotent trait folding 2020-10-16 15:51:04 +00:00
typedefs.td [ODS/AsmParser] Don't pass MLIRContext with DialectAsmParser. 2021-09-30 05:10:28 +00:00
types.mlir [mlir][flang] Do not prevent integer types from being parsed as MLIR keywords 2021-09-03 08:20:49 +02:00