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

Kunwar Grover llvmlistbot at llvm.org
Thu Sep 14 06:05:00 PDT 2023


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

The CMake file for IRDL was not generating documentation on the mlir website. This patch fixes this.

>From e1e86e006119dd493bb9e8fe9043961018215ad9 Mon Sep 17 00:00:00 2001
From: Groverkss <groverkss at gmail.com>
Date: Thu, 14 Sep 2023 18:32:54 +0530
Subject: [PATCH] [IRDL] Fix CMake to generate IRDL dialect docs

---
 mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

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)



More information about the Mlir-commits mailing list