2020-04-27 08:55:15 +08:00
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
|
|
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
|
|
|
set(LIBS
|
|
|
|
MLIROptLib
|
2020-06-12 08:47:14 +08:00
|
|
|
NPCOMPInitAll
|
2020-08-05 08:10:14 +08:00
|
|
|
${conversion_libs}
|
|
|
|
${dialect_libs}
|
2020-06-12 08:47:14 +08:00
|
|
|
)
|
2020-04-27 08:55:15 +08:00
|
|
|
add_llvm_executable(npcomp-opt npcomp-opt.cpp)
|
|
|
|
|
|
|
|
llvm_update_compile_flags(npcomp-opt)
|
|
|
|
target_link_libraries(npcomp-opt PRIVATE ${LIBS})
|