forked from OSchip/llvm-project
[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:
parent
ce3bbeb915
commit
d02fce2d14
|
|
@ -1,3 +1,4 @@
|
|||
# For a better template to copy, see examples/standalone
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# For a better template to copy, see examples/standalone
|
||||
add_subdirectory(include)
|
||||
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# For a better template to copy, see examples/standalone
|
||||
include_directories(include)
|
||||
add_subdirectory(include)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# For a better template to copy, see examples/standalone
|
||||
include_directories(include)
|
||||
add_subdirectory(include)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# For a better template to copy, see examples/standalone
|
||||
include_directories(include)
|
||||
add_subdirectory(include)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# For a better template to copy, see examples/standalone
|
||||
include_directories(include)
|
||||
add_subdirectory(include)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# For a better template to copy, see examples/standalone
|
||||
include_directories(include)
|
||||
add_subdirectory(include)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue