llvm-project/mlir/test/IR
River Riddle 4e103a12d9 [mlir] Add support for VariadicOfVariadic operands
This revision adds native ODS support for VariadicOfVariadic operand
groups. An example of this is the SwitchOp, which has a variadic number
of nested operand ranges for each of the case statements, where the
number of case statements is variadic. Builtin ODS support allows for
generating proper accessors for the nested operand ranges, builder
support, and declarative format support. VariadicOfVariadic operands
are supported by providing a segment attribute to use to store the
operand groups, mapping similarly to the AttrSizedOperand trait
(but with a user defined attribute name).

`build` methods for VariadicOfVariadic operand expect inputs of the
form `ArrayRef<ValueRange>`. Accessors for the variadic ranges
return a new `OperandRangeRange` type, which represents a
contiguous range of `OperandRange`. In the declarative assembly
format, VariadicOfVariadic operands and types are by default
formatted as a comma delimited list of value lists:
`(<value>, <value>), (), (<value>)`.

Differential Revision: https://reviews.llvm.org/D107774
2021-08-23 20:32:31 +00:00
..
affine-map.mlir [MLIR] Extend Symbol verification to reject public symbol declarations. 2020-11-16 16:05:32 -08:00
attribute.mlir [mlir] Emit errors when creating unregistered attributes/types when not allowed 2021-04-02 12:45:35 -07:00
check-help-output.mlir
core-ops.mlir [mlir][tensor] Add tensor.dim operation 2021-07-01 10:00:19 +09:00
dense-elements-hex.mlir [mlir] Convert raw data in dense element attributes for big-endian machines. 2020-10-28 17:06:16 -07:00
diagnostic-handler-filter.mlir [mlir] Add a ThreadPool to MLIRContext and refactor MLIR threading usage 2021-06-23 01:29:24 +00:00
diagnostic-handler.mlir [mlir][Diagnostics] Don't print note source line if it is the same as the previous diagnostic 2020-03-29 21:43:44 -07:00
invalid-affinemap.mlir [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
invalid-func-op.mlir [mlir] Refactor the representation of function-like argument/result attributes. 2021-05-07 19:32:31 -07:00
invalid-locations.mlir [mlir][Asm] Add support for resolving operation locations after parsing has finished 2020-11-12 23:34:36 -08:00
invalid-module-op.mlir Defend early against operation created without a registered dialect 2021-07-15 03:52:32 +00:00
invalid-ops.mlir [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
invalid-unregistered.mlir Defend early against operation created without a registered dialect 2021-07-15 03:52:32 +00:00
invalid.mlir Fix verifier crashing on some invalid IR 2021-06-16 19:36:28 +00:00
locations.mlir [IR] Add a Location to BlockArgument 2021-05-23 14:10:00 -07:00
memory-ops.mlir [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
module-op.mlir Define a `NoTerminator` traits that allows operations with a single block region to not provide a terminator 2021-03-25 03:59:03 +00:00
op-stats.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
opaque_locations.mlir [mlir][Asm] Add support for using an alias for trailing operation locations 2020-11-09 21:54:47 -08:00
operand.mlir [MLIR] Better message for FuncOp type mismatch 2020-10-02 09:31:44 -07:00
operation-equality.mlir Implement recursive support into OperationEquivalence::isEquivalentTo() 2021-07-29 05:06:37 +00:00
parser.mlir [mlir] Escape strings of opaque attributes 2021-07-05 12:13:36 +02:00
pretty-attributes.mlir [mlir][IR] Move the remaining builtin attributes to ODS. 2021-03-16 16:31:53 -07:00
pretty-locations.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
pretty-region-args.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
print-attr-type-aliases.mlir [mlir] Allow to override type/attr aliases from various hooks 2021-08-06 12:05:31 +03:00
print-ir-defuse.mlir [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
print-ir-nesting.mlir [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
print-op-generic.mlir [mlir] Gated calls to getAsm{Result,BlockArgument}Names on whether printing ops in generic form. 2021-07-10 17:19:37 +00:00
print-op-local-scope.mlir Change filecheck default to dump input on failure 2020-06-09 18:57:46 +00:00
print-op-on-diagnostic.mlir [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
recursive-type.mlir [mlir] Support for mutable types 2020-07-27 13:07:44 +02:00
region.mlir [mlir] Don't elide the last op if there is no terminator 2021-05-28 07:25:49 -04:00
repro_b120295301.mlir
result.mlir
slice.mlir [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
test-func-erase-arg.mlir
test-func-erase-result.mlir [MLIR] Extend Symbol verification to reject public symbol declarations. 2020-11-16 16:05:32 -08:00
test-func-insert-arg.mlir [MLIR] Add argument insertion helpers for FunctionLike 2021-07-01 09:18:57 +02:00
test-func-insert-result.mlir [MLIR] Add argument insertion helpers for FunctionLike 2021-07-01 09:18:57 +02:00
test-func-set-type.mlir [mlir] Refactor the representation of function-like argument/result attributes. 2021-05-07 19:32:31 -07:00
test-matchers.mlir [mlir] Add a new context flag for disabling/enabling multi-threading 2020-05-02 12:32:25 -07:00
test-side-effects.mlir Add a mechanism for Dialects to provide a fallback for OpInterface 2021-03-24 08:41:40 +00:00
test-symbol-rauw.mlir [MLIR] Extend Symbol verification to reject public symbol declarations. 2020-11-16 16:05:32 -08:00
test-symbol-uses.mlir [MLIR] Extend Symbol verification to reject public symbol declarations. 2020-11-16 16:05:32 -08:00
traits.mlir [mlir] Add support for VariadicOfVariadic operands 2021-08-23 20:32:31 +00:00
visitors.mlir [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
wrapping_op.mlir [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
zero_whitespace.mlir Isolate zero_whitespace parser test into its own file. 2020-04-22 19:58:40 -07:00