[Mlir-commits] [mlir] afce597 - [mlir] fix IRDL dialect docs (#92349)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 15 22:58:29 PDT 2024


Author: Jeremy Kun
Date: 2024-05-15T22:58:26-07:00
New Revision: afce597baa9c6cf46feb30aba97cf832bff32673

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

LOG: [mlir] fix IRDL dialect docs (#92349)

Currently the irdl dialect page has no content beyond the header.

By referring to the Ops.td in the CMake config, it pulls in all the
types, attributes, etc., so that the doc generation can include them all
in the page.

Rendered locally to confirm it fixes the issue


![image](https://github.com/llvm/llvm-project/assets/2467754/8758f324-6bc3-4f0e-8fa9-8962cdb0177f)

Co-authored-by: Jeremy Kun <j2kun at users.noreply.github.com>

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt
index e255fc632110f..ec3e06bedae03 100644
--- a/mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/IRDL/IR/CMakeLists.txt
@@ -1,5 +1,5 @@
 add_mlir_dialect(IRDL irdl)
-add_mlir_doc(IRDL IRDL Dialects/ -gen-dialect-doc)
+add_mlir_doc(IRDLOps IRDL Dialects/ -gen-dialect-doc)
 
 # Add IRDL interfaces
 set(LLVM_TARGET_DEFINITIONS IRDLInterfaces.td)


        


More information about the Mlir-commits mailing list