Skip to content

Commit 4378ec7

Browse files
authored
[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.
1 parent ae570d5 commit 4378ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
add_mlir_dialect(IRDL irdl)
2-
add_mlir_doc(IRDLOps IRDL Dialects/ -gen-dialect-doc)
2+
add_mlir_doc(IRDLOps IRDL Dialects/ -gen-dialect-doc -dialect=irdl)
33

44
# Add IRDL interfaces
55
set(LLVM_TARGET_DEFINITIONS IRDLInterfaces.td)

0 commit comments

Comments
 (0)