[Mlir-commits] [mlir] [mlir][Vector] Fix doc generation (PR #67341)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Sep 25 08:29:06 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

<details>
<summary>Changes</summary>

The format is
`add_mlir_doc(<table gen file> <output md name> <output dir> <command>)`

Using the Vector.td files does not work has it does not include the VectorOps.td (so the docs are empty). If the ouput name is not VectorOps.md, the mlir-www site does not find the ops (and instead overwrites it with an empty template).

---
Full diff: https://github.com/llvm/llvm-project/pull/67341.diff


1 Files Affected:

- (modified) mlir/include/mlir/Dialect/Vector/IR/CMakeLists.txt (+1-1) 


``````````diff
diff --git a/mlir/include/mlir/Dialect/Vector/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/Vector/IR/CMakeLists.txt
index 91cbb415140d002..5bbc4c6d2678b34 100644
--- a/mlir/include/mlir/Dialect/Vector/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/Vector/IR/CMakeLists.txt
@@ -1,5 +1,5 @@
 add_mlir_dialect(Vector vector)
-add_mlir_doc(VectorOps Vector Dialects/ -gen-op-doc)
+add_mlir_doc(VectorOps VectorOps Dialects/ -gen-op-doc)
 
 # Add Vector operations
 set(LLVM_TARGET_DEFINITIONS VectorOps.td)

``````````

</details>


https://github.com/llvm/llvm-project/pull/67341


More information about the Mlir-commits mailing list