llvm-project/mlir/test/IR
Sean Silva 9c9f479a7d Make ops with StructAttr's actually verify `isa<TheStruct>`.
Previously, they would only only verify `isa<DictionaryAttr>` on such attrs
which resulted in crashes down the line from code assuming that the
verifier was doing the more thorough check introduced in this patch.
The key change here is for StructAttr to use
`CPred<"$_self.isa<" # name # ">()">` instead of `isa<DictionaryAttr>`.

To test this, introduce struct attrs to the test dialect. Previously,
StructAttr was only being tested by unittests/, which didn't verify how
StructAttr interacted with ODS.

Differential Revision: https://reviews.llvm.org/D78975
2020-04-28 14:00:18 -07:00
..
affine-map.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
attribute.mlir Make ops with StructAttr's actually verify `isa<TheStruct>`. 2020-04-28 14:00:18 -07:00
check-help-output.mlir Add custom lilith script. 2019-03-29 13:02:57 -07:00
core-ops.mlir [mlir][Standard] Allow select to use an i1 for vector and tensor values 2020-04-23 04:50:09 -07:00
dense-elements-hex.mlir [mlir] DenseStringElementsAttr added to default attribute types 2020-04-23 19:02:15 -07: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] Change the syntax of AffineMapAttr and IntegerSetAttr to avoid conflicts with function types. 2020-01-13 13:24:39 -08:00
invalid-func-op.mlir Rename the current parseSymbolName to parseOptionalSymbolName 2019-11-13 09:32:20 -08:00
invalid-locations.mlir Rename -verify mlir-opt flag to -verify-expected-diagnostics 2019-06-19 23:08:03 -07:00
invalid-module-op.mlir Move ModuleManager functionality into mlir::SymbolTable. 2019-12-05 03:56:46 -08:00
invalid-ops.mlir [mlir][Standard] Allow select to use an i1 for vector and tensor values 2020-04-23 04:50:09 -07:00
invalid.mlir Don't crash on duplicate keys in dictionary attrs. 2020-04-27 15:23:49 -07:00
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
memory-ops.mlir [MLIR] Add missing colon after CHECKs. 2020-04-08 11:16:06 +02:00
module-op.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +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 Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
operand.mlir Split test-specific passes out of mlir-opt 2019-06-24 17:47:12 -07:00
parser.mlir [mlir] Add support for sparse DenseStringElements. 2020-04-25 01:21:40 -07:00
pretty-attributes.mlir Print out large elementsattr's such that they are parseable. 2019-12-04 10:19:54 -08: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-op-local-scope.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-op-on-diagnostic.mlir [mlir][IR] Manually register command line options for MLIRContext and AsmPrinter 2020-04-11 23:13:00 -07:00
region.mlir [mlir][ODS] Add support for variadic regions. 2020-04-05 01:03:38 -07:00
repro_b120295301.mlir Change the attribute dictionary syntax to separate name and value with '='. 2019-06-25 19:06:34 -07:00
result.mlir Split test-specific passes out of mlir-opt 2019-06-24 17:47:12 -07:00
test-func-erase-arg.mlir Add FuncOp::eraseArgument 2019-11-13 10:59:55 -08:00
test-func-set-type.mlir Add FuncOp::eraseArgument 2019-11-13 10:59:55 -08:00
test-matchers.mlir [mlir] m_Constant() 2020-01-13 17:22:01 +01:00
test-side-effects.mlir [mlir][SideEffects] Define a set of interfaces and traits for defining side effects 2020-03-06 14:04:36 -08:00
test-symbol-rauw.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
test-symbol-uses.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
traits.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
wrapping_op.mlir Add a flag on the context to protect against creation of operations in unregistered dialects 2020-03-30 19:37:31 +00:00
zero_whitespace.mlir Isolate zero_whitespace parser test into its own file. 2020-04-22 19:58:40 -07:00