• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# For a better template to copy, see examples/standalone
2include_directories(include)
3add_subdirectory(include)
4
5set(LLVM_LINK_COMPONENTS
6  Support
7  )
8
9set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)
10mlir_tablegen(ToyCombine.inc -gen-rewriters)
11add_public_tablegen_target(ToyCh4CombineIncGen)
12
13add_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
27include_directories(${CMAKE_CURRENT_BINARY_DIR})
28include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
29target_link_libraries(toyc-ch4
30  PRIVATE
31    MLIRAnalysis
32    MLIRCallInterfaces
33    MLIRIR
34    MLIRParser
35    MLIRPass
36    MLIRSideEffectInterfaces
37    MLIRTransforms)
38
39