[mlir] fix cmake for generating data layout documentation
authorAlex Zinenko <zinenko@google.com>
Mon, 15 Mar 2021 10:01:35 +0000 (11:01 +0100)
committerAlex Zinenko <zinenko@google.com>
Mon, 15 Mar 2021 10:02:03 +0000 (11:02 +0100)
mlir/include/mlir/Interfaces/CMakeLists.txt

index 5d81a6c..91e1e0f 100644 (file)
@@ -12,13 +12,24 @@ add_mlir_interface(ViewLikeInterface)
 set(LLVM_TARGET_DEFINITIONS DataLayoutInterfaces.td)
 mlir_tablegen(DataLayoutAttrInterface.h.inc -gen-attr-interface-decls)
 mlir_tablegen(DataLayoutAttrInterface.cpp.inc -gen-attr-interface-defs)
-mlir_tablegen(DataLayoutAttrInterface.md -gen-attr-interface-docs)
 mlir_tablegen(DataLayoutOpInterface.h.inc -gen-op-interface-decls)
 mlir_tablegen(DataLayoutOpInterface.cpp.inc -gen-op-interface-defs)
-mlir_tablegen(DataLayoutOpInterface.md -gen-op-interface-docs)
 mlir_tablegen(DataLayoutTypeInterface.h.inc -gen-type-interface-decls)
 mlir_tablegen(DataLayoutTypeInterface.cpp.inc -gen-type-interface-defs)
-mlir_tablegen(DataLayoutTypeInterface.md -gen-type-interface-docs)
 add_public_tablegen_target(MLIRDataLayoutInterfacesIncGen)
 add_dependencies(mlir-generic-headers MLIRDataLayoutInterfacesIncGen)
 
+add_mlir_doc(DataLayoutInterfaces
+  -gen-attr-interface-docs
+  DataLayoutAttrInterface
+  Interfaces/)
+
+add_mlir_doc(DataLayoutInterfaces
+  -gen-type-interface-docs
+  DataLayoutTypeInterface
+  Interfaces/)
+
+add_mlir_doc(DataLayoutInterfaces
+  -gen-op-interface-docs
+  DataLayoutOpInterface
+  Interfaces/)