brintos

brintos / llvm-project-archived public Read only

0
0
Text · 859 B · 9d33b7d Raw
41 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(ToyCh4CombineIncGen)12 13add_toy_chapter(toyc-ch414  toyc.cpp15  parser/AST.cpp16  mlir/MLIRGen.cpp17  mlir/Dialect.cpp18  mlir/ShapeInferencePass.cpp19  mlir/ToyCombine.cpp20 21  DEPENDS22  ToyCh4OpsIncGen23  ToyCh4ShapeInferenceInterfaceIncGen24  ToyCh4CombineIncGen25  )26 27include_directories(${CMAKE_CURRENT_BINARY_DIR})28include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)29target_link_libraries(toyc-ch430  PRIVATE31    MLIRAnalysis32    MLIRCastInterfaces33    MLIRCallInterfaces34    MLIRFunctionInterfaces35    MLIRIR36    MLIRParser37    MLIRPass38    MLIRSideEffectInterfaces39    MLIRTransforms)40 41