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
|
|
|
|
${dialect_libs}
|
|
|
|
${conversion_libs}
|
|
|
|
MLIROptLib
|
2020-06-04 14:58:58 +08:00
|
|
|
# Note: the following must also match python_native/CMakeLists.txt
|
2020-05-07 09:41:54 +08:00
|
|
|
NPCOMPE2E
|
|
|
|
NPCOMPTCP
|
|
|
|
NPCOMPTCF
|
2020-06-02 10:07:53 +08:00
|
|
|
NPCOMPNpcompRt
|
2020-04-27 08:55:15 +08:00
|
|
|
NPCOMPNumpyDialect
|
2020-05-05 08:48:02 +08:00
|
|
|
NPCOMPBasicpyDialect
|
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})
|