diff --git a/mlir/examples/toy/Ch1/CMakeLists.txt b/mlir/examples/toy/Ch1/CMakeLists.txt --- a/mlir/examples/toy/Ch1/CMakeLists.txt +++ b/mlir/examples/toy/Ch1/CMakeLists.txt @@ -1,3 +1,4 @@ +# For a better template to copy, see examples/standalone set(LLVM_LINK_COMPONENTS Support ) diff --git a/mlir/examples/toy/Ch2/CMakeLists.txt b/mlir/examples/toy/Ch2/CMakeLists.txt --- a/mlir/examples/toy/Ch2/CMakeLists.txt +++ b/mlir/examples/toy/Ch2/CMakeLists.txt @@ -1,3 +1,4 @@ +# For a better template to copy, see examples/standalone add_subdirectory(include) set(LLVM_LINK_COMPONENTS diff --git a/mlir/examples/toy/Ch3/CMakeLists.txt b/mlir/examples/toy/Ch3/CMakeLists.txt --- a/mlir/examples/toy/Ch3/CMakeLists.txt +++ b/mlir/examples/toy/Ch3/CMakeLists.txt @@ -1,3 +1,4 @@ +# For a better template to copy, see examples/standalone include_directories(include) add_subdirectory(include) diff --git a/mlir/examples/toy/Ch4/CMakeLists.txt b/mlir/examples/toy/Ch4/CMakeLists.txt --- a/mlir/examples/toy/Ch4/CMakeLists.txt +++ b/mlir/examples/toy/Ch4/CMakeLists.txt @@ -1,3 +1,4 @@ +# For a better template to copy, see examples/standalone include_directories(include) add_subdirectory(include) diff --git a/mlir/examples/toy/Ch4/include/toy/CMakeLists.txt b/mlir/examples/toy/Ch4/include/toy/CMakeLists.txt --- a/mlir/examples/toy/Ch4/include/toy/CMakeLists.txt +++ b/mlir/examples/toy/Ch4/include/toy/CMakeLists.txt @@ -1,8 +1,10 @@ +# Most dialects should use add_mlir_dialect(). See examples/standalone. set(LLVM_TARGET_DEFINITIONS Ops.td) mlir_tablegen(Ops.h.inc -gen-op-decls) mlir_tablegen(Ops.cpp.inc -gen-op-defs) add_public_tablegen_target(ToyCh4OpsIncGen) +# Most dialects should use add_mlir_interfaces(). set(LLVM_TARGET_DEFINITIONS ShapeInferenceInterface.td) mlir_tablegen(ShapeInferenceOpInterfaces.h.inc -gen-op-interface-decls) mlir_tablegen(ShapeInferenceOpInterfaces.cpp.inc -gen-op-interface-defs) diff --git a/mlir/examples/toy/Ch5/CMakeLists.txt b/mlir/examples/toy/Ch5/CMakeLists.txt --- a/mlir/examples/toy/Ch5/CMakeLists.txt +++ b/mlir/examples/toy/Ch5/CMakeLists.txt @@ -1,3 +1,4 @@ +# For a better template to copy, see examples/standalone include_directories(include) add_subdirectory(include) diff --git a/mlir/examples/toy/Ch5/include/toy/CMakeLists.txt b/mlir/examples/toy/Ch5/include/toy/CMakeLists.txt --- a/mlir/examples/toy/Ch5/include/toy/CMakeLists.txt +++ b/mlir/examples/toy/Ch5/include/toy/CMakeLists.txt @@ -1,8 +1,10 @@ +# Most dialects should use add_mlir_dialect(). See examples/standalone. set(LLVM_TARGET_DEFINITIONS Ops.td) mlir_tablegen(Ops.h.inc -gen-op-decls) mlir_tablegen(Ops.cpp.inc -gen-op-defs) add_public_tablegen_target(ToyCh5OpsIncGen) +# Most dialects should use add_mlir_interfaces(). set(LLVM_TARGET_DEFINITIONS ShapeInferenceInterface.td) mlir_tablegen(ShapeInferenceOpInterfaces.h.inc -gen-op-interface-decls) mlir_tablegen(ShapeInferenceOpInterfaces.cpp.inc -gen-op-interface-defs) diff --git a/mlir/examples/toy/Ch6/CMakeLists.txt b/mlir/examples/toy/Ch6/CMakeLists.txt --- a/mlir/examples/toy/Ch6/CMakeLists.txt +++ b/mlir/examples/toy/Ch6/CMakeLists.txt @@ -1,3 +1,4 @@ +# For a better template to copy, see examples/standalone include_directories(include) add_subdirectory(include) diff --git a/mlir/examples/toy/Ch6/include/toy/CMakeLists.txt b/mlir/examples/toy/Ch6/include/toy/CMakeLists.txt --- a/mlir/examples/toy/Ch6/include/toy/CMakeLists.txt +++ b/mlir/examples/toy/Ch6/include/toy/CMakeLists.txt @@ -1,8 +1,10 @@ +# Most dialects should use add_mlir_dialect(). See examples/standalone. set(LLVM_TARGET_DEFINITIONS Ops.td) mlir_tablegen(Ops.h.inc -gen-op-decls) mlir_tablegen(Ops.cpp.inc -gen-op-defs) add_public_tablegen_target(ToyCh6OpsIncGen) +# Most dialects should use add_mlir_interfaces(). set(LLVM_TARGET_DEFINITIONS ShapeInferenceInterface.td) mlir_tablegen(ShapeInferenceOpInterfaces.h.inc -gen-op-interface-decls) mlir_tablegen(ShapeInferenceOpInterfaces.cpp.inc -gen-op-interface-defs) diff --git a/mlir/examples/toy/Ch7/CMakeLists.txt b/mlir/examples/toy/Ch7/CMakeLists.txt --- a/mlir/examples/toy/Ch7/CMakeLists.txt +++ b/mlir/examples/toy/Ch7/CMakeLists.txt @@ -1,3 +1,4 @@ +# For a better template to copy, see examples/standalone include_directories(include) add_subdirectory(include) diff --git a/mlir/examples/toy/Ch7/include/toy/CMakeLists.txt b/mlir/examples/toy/Ch7/include/toy/CMakeLists.txt --- a/mlir/examples/toy/Ch7/include/toy/CMakeLists.txt +++ b/mlir/examples/toy/Ch7/include/toy/CMakeLists.txt @@ -1,8 +1,10 @@ +# Most dialects should use add_mlir_dialect(). See examples/standalone. set(LLVM_TARGET_DEFINITIONS Ops.td) mlir_tablegen(Ops.h.inc -gen-op-decls) mlir_tablegen(Ops.cpp.inc -gen-op-defs) add_public_tablegen_target(ToyCh7OpsIncGen) +# Most dialects should use add_mlir_interfaces(). set(LLVM_TARGET_DEFINITIONS ShapeInferenceInterface.td) mlir_tablegen(ShapeInferenceOpInterfaces.h.inc -gen-op-interface-decls) mlir_tablegen(ShapeInferenceOpInterfaces.cpp.inc -gen-op-interface-defs)