[Mlir-commits] [mlir] 4378ec7 - [MLIR][doc] Fix docs for IRDL using -gen-dialect-doc (#125195)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jan 31 05:24:38 PST 2025


Author: Thomas Preud'homme
Date: 2025-01-31T13:24:34Z
New Revision: 4378ec7bf4906e160bf4108b5b059b5a7d8adb37

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

LOG: [MLIR][doc] Fix docs for IRDL using -gen-dialect-doc (#125195)

mlir-tblgen fails to generate doc for IRDL because while parsing IRDL.td
it also finds the definition of the builtin dialect and cannot determine
what dialect to generate documentation for. This is because IRDL.td
includes IRDLOps.td which includes BuiltinAttributes.td which in turns
includes BuiltinDialect.td.

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 ec3e06bedae038..861db0ca96671d 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(IRDLOps IRDL Dialects/ -gen-dialect-doc)
+add_mlir_doc(IRDLOps IRDL Dialects/ -gen-dialect-doc -dialect=irdl)
 
 # Add IRDL interfaces
 set(LLVM_TARGET_DEFINITIONS IRDLInterfaces.td)


        


More information about the Mlir-commits mailing list