brintos

brintos / llvm-project-archived public Read only

0
0
Text · 745 B · 565f3c4 Raw
37 lines · plain
1# For a better template to copy, see examples/standalone2include_directories(include)3add_subdirectory(include)4 5set(LLVM_LINK_COMPONENTS6  Support7  )8 9set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)10mlir_tablegen(ToyCombine.inc -gen-rewriters)11add_public_tablegen_target(ToyCh3CombineIncGen)12 13add_toy_chapter(toyc-ch314  toyc.cpp15  parser/AST.cpp16  mlir/MLIRGen.cpp17  mlir/Dialect.cpp18  mlir/ToyCombine.cpp19 20  DEPENDS21  ToyCh3OpsIncGen22  ToyCh3CombineIncGen23  )24 25include_directories(${CMAKE_CURRENT_BINARY_DIR})26include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)27target_link_libraries(toyc-ch328  PRIVATE29    MLIRAnalysis30    MLIRFunctionInterfaces31    MLIRIR32    MLIRParser33    MLIRPass34    MLIRSideEffectInterfaces35    MLIRTransforms)36 37