[Mlir-commits] [mlir] 36c8af6 - [mlir] fix polynomial dialect docs

Alex Zinenko llvmlistbot at llvm.org
Mon Apr 22 06:24:05 PDT 2024


Author: Alex Zinenko
Date: 2024-04-22T13:23:56Z
New Revision: 36c8af66e08e10b42e964765c9b24dcc60fdf4c0

URL: https://github.com/llvm/llvm-project/commit/36c8af66e08e10b42e964765c9b24dcc60fdf4c0
DIFF: https://github.com/llvm/llvm-project/commit/36c8af66e08e10b42e964765c9b24dcc60fdf4c0.diff

LOG: [mlir] fix polynomial dialect docs

Some docs were emitted into the wrong location (Polynomial/ instead of
Dialect/). Furthermore, `-gen-dialect-docs` subsumes
`-gen-attr/typedef-docs` so the latter are not required.

Add a top-level entry that includes both other files in a proper order.

Added: 
    mlir/docs/Dialects/Polynomial.md

Modified: 
    mlir/include/mlir/Dialect/Polynomial/IR/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Dialects/Polynomial.md b/mlir/docs/Dialects/Polynomial.md
new file mode 100644
index 00000000000000..6fdd74ab30aa68
--- /dev/null
+++ b/mlir/docs/Dialects/Polynomial.md
@@ -0,0 +1,2 @@
+[include "Dialects/PolynomialDialect.td"]
+[include "Dialects/PolynomialOps.td"]

diff  --git a/mlir/include/mlir/Dialect/Polynomial/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/Polynomial/IR/CMakeLists.txt
index 79e739953d7cf4..c8655ba9987011 100644
--- a/mlir/include/mlir/Dialect/Polynomial/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/Polynomial/IR/CMakeLists.txt
@@ -1,8 +1,6 @@
 add_mlir_dialect(Polynomial polynomial)
-add_mlir_doc(Polynomial PolynomialDialect Polynomial/ -gen-dialect-doc -dialect=polynomial)
-add_mlir_doc(Polynomial PolynomialOps Polynomial/ -gen-op-doc)
-add_mlir_doc(Polynomial PolynomialAttributes Dialects/ -gen-attrdef-doc)
-add_mlir_doc(Polynomial PolynomialTypes Dialects/ -gen-typedef-doc)
+add_mlir_doc(Polynomial PolynomialDialect Dialects/ -gen-dialect-doc -dialect=polynomial)
+add_mlir_doc(Polynomial PolynomialOps Dialects/ -gen-op-doc)
 
 set(LLVM_TARGET_DEFINITIONS Polynomial.td)
 mlir_tablegen(PolynomialAttributes.cpp.inc -gen-attrdef-defs -attrdefs-dialect=polynomial)


        


More information about the Mlir-commits mailing list