Tools

The following tools are provided to project contributors to enhance their development and debugging capabilities.

MLIR LSP server: asctile-lsp

The tool implements language server protocol which is used by IDEs to effectively provide syntax highlighting, as well as other language processing features, both for built-in MLIR dialects and AscIR extensions.

To enable asctile-lsp server in Visual Studio Code:

  1. Install MLIR extension.

  2. Obtain full path to the built executable (e.g. run which asctile-lsp).

  3. Paste the path to Mlir: Server_path setting (mlir.server_path).

MLIR optimizer driver: asctile-opt

The tool supports all features and command line options that are supported by mlir-opt (LLVM built-in application), and is also able to run AscIR passes with its dialects and extensions.

For example:

asctile-opt -ascendc-insert-bufid-sync -canonicalize -mlir-print-ir-before-all test.mlir