llvm/mlir
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
..
cmake/modules [mlir][python] Simplify python extension loading. 2021-09-03 00:43:28 +00:00
docs [mlir] Add Cpp emitter 2021-09-02 13:51:05 +00:00
examples Change ASM Op printer to print the operation name in the framework instead of leaving it up to each individual operation 2021-08-31 17:52:40 +00:00
include [mlir][scf] Allow runtime type of iter_args to change 2021-09-03 10:03:05 +09:00
lib [mlir][flang] Do not prevent integer types from being parsed as MLIR keywords 2021-09-03 08:20:49 +02:00
python [mlir][python] Simplify python extension loading. 2021-09-03 00:43:28 +00:00
test [mlir][flang] Do not prevent integer types from being parsed as MLIR keywords 2021-09-03 08:20:49 +02:00
tools Support alias.scope and noalias metadata lowering on intrinsics. 2021-09-01 16:54:20 +00:00
unittests [mlir][Analysis][NFC] FlatAffineConstraints: Use BoundType enum in functions 2021-08-19 10:33:42 +09:00
utils [vscode-mlir] Add proper support for mlir markdown codeblocks 2021-08-03 19:55:31 +00:00
.clang-format
.clang-tidy
CMakeLists.txt
LICENSE.TXT
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.