[all-commits] [llvm/llvm-project] 10f8be: tree-sitter-mlir: add a more complete grammar

Ramkumar Ramachandra via All-commits all-commits at lists.llvm.org
Mon Jun 5 11:11:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10f8be19e7562624c0e63872e28cc963e03e56a5
      https://github.com/llvm/llvm-project/commit/10f8be19e7562624c0e63872e28cc963e03e56a5
  Author: Ramkumar Ramachandra <r at artagnon.com>
  Date:   2023-06-05 (Mon, 05 Jun 2023)

  Changed paths:
    A mlir/utils/tree-sitter-mlir/.gitignore
    M mlir/utils/tree-sitter-mlir/README.md
    A mlir/utils/tree-sitter-mlir/dialect/affine.js
    A mlir/utils/tree-sitter-mlir/dialect/arith.js
    A mlir/utils/tree-sitter-mlir/dialect/bufferization.js
    A mlir/utils/tree-sitter-mlir/dialect/builtin.js
    A mlir/utils/tree-sitter-mlir/dialect/cf.js
    A mlir/utils/tree-sitter-mlir/dialect/func.js
    A mlir/utils/tree-sitter-mlir/dialect/linalg.js
    A mlir/utils/tree-sitter-mlir/dialect/llvm.js
    A mlir/utils/tree-sitter-mlir/dialect/math.js
    A mlir/utils/tree-sitter-mlir/dialect/memref.js
    A mlir/utils/tree-sitter-mlir/dialect/scf.js
    A mlir/utils/tree-sitter-mlir/dialect/tensor.js
    A mlir/utils/tree-sitter-mlir/dialect/vector.js
    M mlir/utils/tree-sitter-mlir/grammar.js
    A mlir/utils/tree-sitter-mlir/package-lock.json
    A mlir/utils/tree-sitter-mlir/package.json
    A mlir/utils/tree-sitter-mlir/queries/highlights.scm
    A mlir/utils/tree-sitter-mlir/queries/locals.scm
    A mlir/utils/tree-sitter-mlir/test/corpus/affine.txt
    A mlir/utils/tree-sitter-mlir/test/corpus/attribute.txt
    A mlir/utils/tree-sitter-mlir/test/corpus/controlflow.txt
    A mlir/utils/tree-sitter-mlir/test/corpus/func.txt
    A mlir/utils/tree-sitter-mlir/test/corpus/op.txt
    A mlir/utils/tree-sitter-mlir/test/corpus/type.txt
    A mlir/utils/tree-sitter-mlir/test/highlight/attribute.mlir
    A mlir/utils/tree-sitter-mlir/test/highlight/controlflow.mlir
    A mlir/utils/tree-sitter-mlir/test/highlight/downstream.mlir
    A mlir/utils/tree-sitter-mlir/test/highlight/func.mlir
    A mlir/utils/tree-sitter-mlir/test/highlight/type.mlir

  Log Message:
  -----------
  tree-sitter-mlir: add a more complete grammar

Contribute a grammar, along with associated tests, from the upstream
project maintained at https://github.com/artagnon/tree-sitter-mlir. The
new grammar includes several fixes, and successfully parses 60-80% of
MLIR tests in the Arith, Math, ControlFlow, SCF, Tensor, Affine, and
Linalg dialects.

Differential Revision: https://reviews.llvm.org/D144408




More information about the All-commits mailing list