[ORC] Fail materialization in tasks that are destroyed before running.
[llvm-project.git] / mlir / examples / toy / Ch5 / CMakeLists.txt
blobf4f0fec712f5b89458c2907013de8083c0dc4208
1 # For a better template to copy, see examples/standalone
2 include_directories(include)
3 add_subdirectory(include)
5 set(LLVM_LINK_COMPONENTS
6   Support
7   )
9 set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)
10 mlir_tablegen(ToyCombine.inc -gen-rewriters)
11 add_public_tablegen_target(ToyCh5CombineIncGen)
13 add_toy_chapter(toyc-ch5
14   toyc.cpp
15   parser/AST.cpp
16   mlir/MLIRGen.cpp
17   mlir/Dialect.cpp
18   mlir/LowerToAffineLoops.cpp
19   mlir/ShapeInferencePass.cpp
20   mlir/ToyCombine.cpp
22   DEPENDS
23   ToyCh5ShapeInferenceInterfaceIncGen
24   ToyCh5OpsIncGen
25   ToyCh5CombineIncGen
26   )
28 include_directories(${CMAKE_CURRENT_BINARY_DIR})
29 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
30 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
31 get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
32 target_link_libraries(toyc-ch5
33   PRIVATE
34     ${dialect_libs}
35     ${extension_libs}
36     MLIRAnalysis
37     MLIRCallInterfaces
38     MLIRCastInterfaces
39     MLIRFunctionInterfaces
40     MLIRIR
41     MLIRParser
42     MLIRPass
43     MLIRSideEffectInterfaces
44     MLIRSupport
45     MLIRTransforms)