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(ToyCh3CombineIncGen) 12 13add_toy_chapter(toyc-ch3 14 toyc.cpp 15 parser/AST.cpp 16 mlir/MLIRGen.cpp 17 mlir/Dialect.cpp 18 mlir/ToyCombine.cpp 19 20 DEPENDS 21 ToyCh3OpsIncGen 22 ToyCh3CombineIncGen 23 ) 24 25include_directories(${CMAKE_CURRENT_BINARY_DIR}) 26include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/) 27target_link_libraries(toyc-ch3 28 PRIVATE 29 MLIRAnalysis 30 MLIRIR 31 MLIRParser 32 MLIRPass 33 MLIRSideEffectInterfaces 34 MLIRTransforms) 35 36