Skip to content

Commit 68190c6

Browse files
RoboTuxsramasit
authored andcommitted
[MLIR][doc] Fix docs for IRDL using -gen-dialect-doc (llvm#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 aef8177 commit 68190c6

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)