llvm/mlir/test/mlir-tblgen
Jean Perier 49af2a6275 [mlir][flang] Do not prevent integer types from being parsed as MLIR keywords
DialectAsmParser::parseKeyword is rejecting `'i' digit+` while it is
a valid identifier according to mlir/docs/LangRef.md.

Integer types actually used to be TOK_KEYWORD a while back before the
change: 6af866c58d.

This patch Modifies `isCurrentTokenAKeyword` to return true for tokens that
match integer types too.

The motivation for this change is the parsing of `!fir.type<{` `component-name: component-type,`+ `}>`
type in FIR that represent Fortran derived types. The component-names are
parsed as keywords, and can very well be i32 or any ixxx (which are
valid Fortran derived type component names).

The Quant dialect type parser had to be modified since it relied on `iw` not
being parsed as keywords.

Differential Revision: https://reviews.llvm.org/D108913
2021-09-03 08:20:49 +02:00
..
attrdefs.td [mlir][AttrTypeGen] Add support for specifying a "accessor" type of a parameter 2021-08-25 09:27:36 +00:00
dialect.td
directive-common.td
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
llvm-intrinsics.td Support alias.scope and noalias metadata lowering on intrinsics. 2021-09-01 16:54:20 +00:00
op-attribute.td
op-decl-and-defs.td [mlir][ods] Add nested OpTrait 2021-07-20 10:44:48 -07:00
op-derived-attribute.mlir
op-error.td
op-format-spec.td
op-format.mlir [mlir] Add support for VariadicOfVariadic operands 2021-08-23 20:32:31 +00:00
op-interface.td
op-operand.td
op-python-bindings.td [mlir][python] Extend C/Python API to be usable for CFG construction. 2021-08-30 08:28:00 -07: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-tblgen] Support binding multi-results of NativeCodeCall 2021-07-21 11:23:22 +08:00
predicate.td
return-types.mlir
rewriter-errors.td
rewriter-indexing.td
testdialect-attrdefs.mlir
testdialect-typedefs.mlir
trait.mlir
typedefs.td [MLIR] Move TestDialect to ::test namespace 2021-08-14 13:24:41 -07:00
types.mlir [mlir][flang] Do not prevent integer types from being parsed as MLIR keywords 2021-09-03 08:20:49 +02:00