[Mlir-commits] [mlir] [mlir][doc] Fix docs for `PtrDialect` using the `-gen-dialect-doc`(NFC) (PR #101013)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jul 29 06:49:49 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Kohei Yamaguchi (sott0n)
<details>
<summary>Changes</summary>
The `-gen-op-doc` option was previously used, which did not generate a page for `PtrDialect` and resulted in an empty page. Switched to using the `-gen-dialect-doc` option to correctly generate a page for `PtrDialect` that includes information on its Attributes and Types.
---
Full diff: https://github.com/llvm/llvm-project/pull/101013.diff
1 Files Affected:
- (modified) mlir/include/mlir/Dialect/Ptr/IR/CMakeLists.txt (+1-1)
``````````diff
diff --git a/mlir/include/mlir/Dialect/Ptr/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/Ptr/IR/CMakeLists.txt
index df07b8d5a63d9..529ce827f4762 100644
--- a/mlir/include/mlir/Dialect/Ptr/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/Ptr/IR/CMakeLists.txt
@@ -1,5 +1,5 @@
add_mlir_dialect(PtrOps ptr)
-add_mlir_doc(PtrOps PtrOps Dialects/ -gen-op-doc)
+add_mlir_doc(PtrOps PtrOps Dialects/ -gen-dialect-doc)
set(LLVM_TARGET_DEFINITIONS PtrOps.td)
mlir_tablegen(PtrOpsAttrs.h.inc -gen-attrdef-decls -attrdefs-dialect=ptr)
``````````
</details>
https://github.com/llvm/llvm-project/pull/101013
More information about the Mlir-commits
mailing list