parsers: add tree-sitter-mlir parser

The parser is currently in development, and 60-80% of MLIR files in the
test suite of MLIR, within the Arith, Math, SCF, Tensor, and Linalg
dialects parse successfully.
This commit is contained in:
Ramkumar Ramachandra 2023-02-20 21:12:09 +01:00 committed by Stephan Seitz
parent 834f1dcb87
commit 5c4ea53070
5 changed files with 356 additions and 0 deletions

7
queries/mlir/locals.scm Normal file
View file

@ -0,0 +1,7 @@
(region) @scope
(func_arg_list (value_use) @definition.var)
(block_arg_list (value_use) @definition.var)
(op_result (value_use) @definition.var)
(value_use) @reference