[mlir][doc] Fix build after D148389
authorMehdi Amini <joker.eph@gmail.com>
Thu, 20 Apr 2023 04:12:46 +0000 (22:12 -0600)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 20 Apr 2023 04:13:20 +0000 (22:13 -0600)
The doc aren't part of the usual build, so this got unnoticed.

In c184dcb458 a dependency was added from the OpenACC on the LLVM
and Memref dialects, to generate the dialect doc we need to explicitly
ask for the `acc` dialect now.

mlir/include/mlir/Dialect/OpenACC/CMakeLists.txt

index 119885eabfe91f556a3f42362b5e914ed5cc76bf..02e903da90d0975c109f3cadddeb7cec4bae6dbe 100644 (file)
@@ -4,7 +4,7 @@ add_public_tablegen_target(acc_common_td)
 
 add_mlir_dialect(OpenACCOps acc)
 
-add_mlir_doc(OpenACCOps OpenACCDialect Dialects/ -gen-dialect-doc)
+add_mlir_doc(OpenACCOps OpenACCDialect Dialects/ -gen-dialect-doc -dialect=acc)
 add_dependencies(OpenACCDialectDocGen acc_common_td)
 
 set(LLVM_TARGET_DEFINITIONS OpenACCOps.td)