llvm/mlir/test
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
..
Analysis Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
CAPI [mlir][capi] Add NameLoc 2021-09-01 16:16:35 -07:00
Conversion [mlir][tosa] Small refactor to the functionality of Depthwise_Conv2D to add the bias at the end of the convolution 2021-09-01 10:01:00 -07:00
Dialect [mlir][scf] Allow runtime type of iter_args to change 2021-09-03 10:03:05 +09:00
Examples [MLIR] Fix Standalone dialect test to work in out-of-tree builds 2021-06-02 17:24:46 +00:00
Integration [mlir][sparse] fully implement sparse tensor to sparse tensor conversions 2021-08-27 15:08:18 -07:00
Interfaces Split InferShapedTypeOpInterface to create ReifyRankedShapedTypeInterface. 2021-07-19 14:44:52 -07:00
IR Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
lib Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
mlir-cpu-runner [mlir][CPURunner] Avoid a crash in memrefCopy when called with empty shapes. 2021-08-03 16:02:01 +02:00
mlir-linalg-ods-gen [mlir][Linalg] Allow all build methods of Structured ops to specify additional attributes. 2021-08-23 13:06:34 -07:00
mlir-lsp-server [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
mlir-opt [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
mlir-reduce
mlir-spirv-cpu-runner
mlir-tblgen [mlir][flang] Do not prevent integer types from being parsed as MLIR keywords 2021-09-03 08:20:49 +02:00
mlir-translate
mlir-vulkan-runner
Pass [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
python Fix MLIR python binding test after changes in ASM printer 2021-08-31 18:50:22 +00:00
Rewrite
Target [mlir] speed up construction of LLVM IR constants when possible 2021-09-02 23:07:30 +02:00
Transforms Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
Unit Revert "Attempt to disable MLIR JIT tests on PowerPC to unbreak the bot" 2021-06-29 18:03:23 -05:00
APITest.h
CMakeLists.txt Re-engineer MLIR python build support. 2021-07-27 15:54:58 +00:00
lit.cfg.py Re-engineer MLIR python build support. 2021-07-27 15:54:58 +00:00
lit.site.cfg.py.in [MLIR] Fix Standalone dialect test to work in out-of-tree builds 2021-06-02 17:24:46 +00:00