[MLIR] Discourage people from copying the toy examples

The CMake structure of the toy example is non-standard.  encourage people to
copy the standalone example instead.

Differential Revision: https://reviews.llvm.org/D79889
This commit is contained in:
Stephen Neuendorffer 2020-05-13 08:57:25 -07:00
parent ce3bbeb915
commit d02fce2d14
11 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,4 @@
# For a better template to copy, see examples/standalone
set(LLVM_LINK_COMPONENTS
Support
)

View File

@ -1,3 +1,4 @@
# For a better template to copy, see examples/standalone
add_subdirectory(include)
set(LLVM_LINK_COMPONENTS

View File

@ -1,3 +1,4 @@
# For a better template to copy, see examples/standalone
include_directories(include)
add_subdirectory(include)

View File

@ -1,3 +1,4 @@
# For a better template to copy, see examples/standalone
include_directories(include)
add_subdirectory(include)

View File

@ -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)

View File

@ -1,3 +1,4 @@
# For a better template to copy, see examples/standalone
include_directories(include)
add_subdirectory(include)

View File

@ -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)

View File

@ -1,3 +1,4 @@
# For a better template to copy, see examples/standalone
include_directories(include)
add_subdirectory(include)

View File

@ -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)

View File

@ -1,3 +1,4 @@
# For a better template to copy, see examples/standalone
include_directories(include)
add_subdirectory(include)

View File

@ -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)