Debian Codegraph @

mlir/examples/toy/Ch4/CMakeLists.txt

raw
1 # For a better template to copy, see examples/standalone
2 include_directories(include)
3 add_subdirectory(include)
4
5 set(LLVM_LINK_COMPONENTS
6 Support
7 )
8
9 set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)
10 mlir_tablegen(ToyCombine.inc -gen-rewriters)
11 add_public_tablegen_target(ToyCh4CombineIncGen)
12
13 add_toy_chapter(toyc-ch4
14 toyc.cpp
15 parser/AST.cpp
16 mlir/MLIRGen.cpp
17 mlir/Dialect.cpp
18 mlir/ShapeInferencePass.cpp
19 mlir/ToyCombine.cpp
20
21 DEPENDS
22 ToyCh4OpsIncGen
23 ToyCh4ShapeInferenceInterfaceIncGen
24 ToyCh4CombineIncGen
25 )
26
27 include_directories(${CMAKE_CURRENT_BINARY_DIR})
28 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
29 target_link_libraries(toyc-ch4
30 PRIVATE
31 MLIRAnalysis
32 MLIRCastInterfaces
33 MLIRCallInterfaces
34 MLIRFunctionInterfaces
35 MLIRIR
36 MLIRParser
37 MLIRPass
38 MLIRSideEffectInterfaces
39 MLIRTransforms)
40