[Mlir-commits] [mlir] a543abc - [mlir][linalg] Update OpDSL doc (NFC).
Tobias Gysi
llvmlistbot at llvm.org
Wed Sep 15 00:40:37 PDT 2021
Author: Tobias Gysi
Date: 2021-09-15T07:38:15Z
New Revision: a543abc5ea65bc1a9fc322d41d40af3c5abb954d
URL: https://github.com/llvm/llvm-project/commit/a543abc5ea65bc1a9fc322d41d40af3c5abb954d
DIFF: https://github.com/llvm/llvm-project/commit/a543abc5ea65bc1a9fc322d41d40af3c5abb954d.diff
LOG: [mlir][linalg] Update OpDSL doc (NFC).
Update the doc due to recent path changes an point to a helper script.
Added:
Modified:
mlir/docs/Dialects/Linalg/OpDSL.md
Removed:
################################################################################
diff --git a/mlir/docs/Dialects/Linalg/OpDSL.md b/mlir/docs/Dialects/Linalg/OpDSL.md
index bdfd58f88fb66..50115fa2b4391 100644
--- a/mlir/docs/Dialects/Linalg/OpDSL.md
+++ b/mlir/docs/Dialects/Linalg/OpDSL.md
@@ -14,19 +14,20 @@ The tool is bundled with the MLIR Python bindings. To use from the CMake build
tree, MLIR must be build with Python bindings enabled
(`-DMLIR_ENALBE_BINDINGS_PYTHON=ON`). Then add the `python` directory in the
build tree to your `PYTHONPATH` environment variable (i.e. `export
-PYTHONPATH=$PWD/build/python`). Optionally, use an installed MLIR package, if
-available, to avoid building.
+PYTHONPATH=$PWD/build/tools/mlir/python_packages/mlir_core`). Optionally, use an
+installed MLIR package, if available, to avoid building.
```shell
# Dump the `core_named_ops.py` module as YAML.
python -m mlir.dialects.linalg.opdsl.dump_oplib .ops.core_named_ops
```
-The tool is meant for use during both development and runtime, but not as a
-build tool of the core compiler: in order to export static named op definitions
-to be built as part of the compiler, the corresponding Linalg dialect YAML file
-must be updated and reviewed. TODO: Develop a script to automate op updates to
-these files.
+Alternatively, run the `$PWD/build/bin/update_core_linalg_named_ops.sh` script,
+which is available after building the `mlir-linalg-ods-gen` target. The tool is
+meant for use during both development and runtime, but not as a build tool of
+the core compiler: in order to export static named op definitions to be built as
+part of the compiler, the corresponding Linalg dialect YAML file must be updated
+and reviewed. TODO: Develop a script to automate op updates to these files.
## Language Guide
More information about the Mlir-commits
mailing list