Skip to content

Commit 90d1487

Browse files
committed
[MLIR][doc] Fix docs for IRDL using -gen-dialect-doc
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 abc8812 commit 90d1487

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)