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

Benjamin Maxwell llvmlistbot at llvm.org
Mon Sep 25 08:27:24 PDT 2023


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

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).

>From 66441dd8559d96f8a3d21aac680e9cdcbacb70e3 Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Mon, 25 Sep 2023 15:19:10 +0000
Subject: [PATCH] [mlir][Vector] Fix doc generation

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).
---
 mlir/include/mlir/Dialect/Vector/IR/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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