[Mlir-commits] [mlir] [MLIR] Add documentation page for `mlir-query` tool (PR #146535)
Denzel-Brian Budii
llvmlistbot at llvm.org
Tue Sep 2 23:30:36 PDT 2025
================
@@ -0,0 +1,355 @@
+`mlir-query` is an interactive tool designed to simplify IR exploration. It provides a REPL interface and supports an interactive query language for MLIR, enabling developers to query the MLIR IR dynamically.
+The tool uses matchers as its core mechanism for performing queries over the MLIR IR, relying on simple matchers from `Matchers.h` and slicing-related matchers from `SliceMatchers.h`.
+
+Through its IR exploration capabilities and the interactive query language, `mlir-query` serves both as a prototyping environment for pattern matchers and as a good debugging tool.
+
+## Usage
+
+### Query modes
+In order to prototype matchers, explore, test, or debug the MLIR IR, the tool provides two main usage modes:
+
+* **Run queries directly from the CLI:**
+ ```shell
----------------
chios202 wrote:
mdformat fixed this as well
https://github.com/llvm/llvm-project/pull/146535
More information about the Mlir-commits
mailing list