2020-06-19 14:28:30 +08:00
|
|
|
################################################################################
|
|
|
|
# NPCOMPBackendIREEPythonModule
|
|
|
|
################################################################################
|
|
|
|
|
2020-07-05 08:38:01 +08:00
|
|
|
include(NpcompPython)
|
|
|
|
include(NpcompIREEBackend)
|
|
|
|
|
2020-06-19 14:28:30 +08:00
|
|
|
set(PYBIND_SOURCES
|
|
|
|
PythonModule.cpp
|
|
|
|
)
|
|
|
|
add_library(NPCOMPBackendIREEPythonModule
|
|
|
|
${PYBIND_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(NPCOMPBackendIREEPythonModule
|
|
|
|
NPCOMPPythonCommon
|
|
|
|
iree_compiler_Dialect_Flow_Transforms_Transforms
|
|
|
|
iree_compiler_Dialect_HAL_Transforms_Transforms
|
|
|
|
iree_compiler_Dialect_VM_Transforms_Transforms
|
|
|
|
)
|
2020-07-05 08:38:01 +08:00
|
|
|
|
|
|
|
npcomp_python_target_compile_options(NPCOMPBackendIREEPythonModule)
|
|
|
|
npcomp_iree_target_compile_options(NPCOMPBackendIREEPythonModule)
|