[Mlir-commits] [mlir] [IRDL] Fix CMake to generate IRDL dialect docs (PR #66371)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Sep 14 06:06:09 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-irdl
            
<details>
<summary>Changes</summary>
The CMake file for IRDL was not generating documentation on the mlir website. This patch fixes this.
--
Full diff: https://github.com/llvm/llvm-project/pull/66371.diff

1 Files Affected:

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


<pre>
diff --git a/mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt
index 6cacf97b982baa6..e255fc632110f5f 100644
--- a/mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt
@@ -1,4 +1,5 @@
 add_mlir_dialect(IRDL irdl)
+add_mlir_doc(IRDL IRDL Dialects/ -gen-dialect-doc)
 
 # Add IRDL interfaces
 set(LLVM_TARGET_DEFINITIONS IRDLInterfaces.td)
</pre>
</details>


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


More information about the Mlir-commits mailing list