You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 611 B

123456789101112131415161718192021
  1. get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
  2. get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
  3. set(LIBS
  4. ${dialect_libs}
  5. ${conversion_libs}
  6. LLVMSupport
  7. MLIROptLib
  8. MLIRIR
  9. MLIRPass
  10. MLIRSupport)
  11. add_executable(mgb-opt mgb-opt.cpp)
  12. target_include_directories(
  13. mgb-opt PRIVATE ${MLIR_LLVM_INCLUDE_DIR} ${PROJECT_SOURCE_DIR}/src/jit/include
  14. ${PROJECT_BINARY_DIR}/src/jit/include)
  15. add_dependencies(mgb-opt mgb_dialect)
  16. target_link_libraries(mgb-opt PRIVATE ${LIBS} megbrain megdnn ${MGE_CUDA_LIBS})
  17. llvm_update_compile_flags(mgb-opt)