llvm-project/mlir/test/mlir-tblgen
River Riddle 6609c1cc59 [mlir] Add a better error message when failing to parse an attribute
The fallback attribute parse path is parsing a Type attribute, but this results
in a really unintuitive error message: `expected non-function type`, which
doesn't really hint at tall that we were trying to parse an attribute. This
commit fixes this by trying to optionally parse a type, and on failure
emitting an error that we were expecting an attribute.

Differential Revision: https://reviews.llvm.org/D124870
2022-05-05 15:06:11 -07:00
..
attr-or-type-format-invalid.td [mlir] Split out AttrDef/TypeDef and pattern constructs from OpBase.td 2022-03-15 00:18:03 -07:00
attr-or-type-format-roundtrip.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
attr-or-type-format.mlir [mlir] Add a better error message when failing to parse an attribute 2022-05-05 15:06:11 -07:00
attr-or-type-format.td [mlir] Split out AttrDef/TypeDef and pattern constructs from OpBase.td 2022-03-15 00:18:03 -07:00
attrdefs.td [mlir] Refactor how parser/printers are specified for AttrDef/TypeDef 2022-03-15 00:42:31 -07:00
constant-str-attr-invalid.mlir [MLIR][ODS] default-valued strings should be in quotes 2021-10-15 03:00:41 +00:00
constraint-unique.td [mlir][ods] ODS-level Attribute Optimizations 2022-04-11 18:34:07 +00:00
default-type-attr-print-parser.td [mlir] Split out AttrDef/TypeDef and pattern constructs from OpBase.td 2022-03-15 00:18:03 -07:00
deprecation.td [mlir][ods] Add Deprecate helper 2022-03-22 11:08:36 -07:00
dialect.td [mlir][ODS]: Add per-op cppNamespace. 2021-05-11 10:48:05 -07:00
directive-common.td [mlir][OpenMP] Generating enums in accordance with the guidelines 2022-03-09 20:10:45 +05:30
expect-symbol.td [mlir] Split out AttrDef/TypeDef and pattern constructs from OpBase.td 2022-03-15 00:18:03 -07:00
gen-dialect-doc.td [mlir][ods] Add description to Attr and ensure doc generation 2022-04-05 10:40:15 +02: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][NFC] Move enum attribute definitions from OpBase.td to EnumAttr.td 2022-04-15 16:51:14 +00:00
op-decl-and-defs.td [mlir] Attach InferTypeOpInterface on SameOperandsAndResultType operations when possible 2022-04-28 12:57:59 -07:00
op-derived-attribute.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
op-error.td [mlir] Support verification order (1/3) 2022-02-02 18:25:44 +00:00
op-format-spec.td [mlir] Added oilist primitive 2022-02-17 11:10:24 +05:30
op-format.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
op-interface.td [mlir] Support verification order (2/3) 2022-02-25 19:04:56 +00:00
op-operand.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
op-python-bindings.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
op-result.td [mlir] Attach InferTypeOpInterface on SameOperandsAndResultType operations when possible 2022-04-28 12:57:59 -07:00
op-side-effects.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
pattern.mlir [mlir][NFC] Update remaining textual references of un-namespaced `func` operations 2022-04-20 22:17:31 -07:00
predicate.td Remove OpTrait, AttrTrait and TypeTrait 2022-01-31 11:04:00 -08:00
return-types.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
rewriter-errors.td [mlir] Split out AttrDef/TypeDef and pattern constructs from OpBase.td 2022-03-15 00:18:03 -07:00
rewriter-indexing.td [mlir] Split out AttrDef/TypeDef and pattern constructs from OpBase.td 2022-03-15 00:18:03 -07:00
rewriter-static-matcher.td [mlir] Split out AttrDef/TypeDef and pattern constructs from OpBase.td 2022-03-15 00:18:03 -07:00
testdialect-attrdefs.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
testdialect-typedefs.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
trait.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
typedefs.td [mlir] Refactor how parser/printers are specified for AttrDef/TypeDef 2022-03-15 00:42:31 -07:00
types.mlir [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00