[Mlir-commits] [mlir] c72d3ab - [mlir][Vector] Fix doc generation (#67341)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Sep 25 09:55:29 PDT 2023
Author: Benjamin Maxwell
Date: 2023-09-25T17:55:25+01:00
New Revision: c72d3abd826d8ec8d8bafe84f95a7cf6a08e8fc0
URL: https://github.com/llvm/llvm-project/commit/c72d3abd826d8ec8d8bafe84f95a7cf6a08e8fc0
DIFF: https://github.com/llvm/llvm-project/commit/c72d3abd826d8ec8d8bafe84f95a7cf6a08e8fc0.diff
LOG: [mlir][Vector] Fix doc generation (#67341)
The format is
`add_mlir_doc(<table gen file> <output md name> <output dir> <command>)`
Using the Vector.td file does not work as it does not include
VectorOps.td (so the docs are empty). If the output name is not
VectorOps.md, the mlir-www site does not find the ops (and instead
overwrites it with an empty template).
Added:
Modified:
mlir/include/mlir/Dialect/Vector/IR/CMakeLists.txt
Removed:
################################################################################
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)
More information about the Mlir-commits
mailing list