2020-09-29 09:36:00 +08:00
|
|
|
add_subdirectory(CAPI)
|
2020-05-07 09:41:54 +08:00
|
|
|
add_subdirectory(Conversion)
|
2020-04-27 08:20:58 +08:00
|
|
|
add_subdirectory(Dialect)
|
2020-10-07 07:14:37 +08:00
|
|
|
add_subdirectory(RefBackend)
|
2020-06-19 09:02:39 +08:00
|
|
|
add_subdirectory(Python)
|
2020-07-01 09:28:39 +08:00
|
|
|
add_subdirectory(Typing)
|
2020-06-12 08:47:14 +08:00
|
|
|
|
2020-07-11 08:36:32 +08:00
|
|
|
if(NPCOMP_ENABLE_REFJIT)
|
|
|
|
add_subdirectory(Backend/RefJIT)
|
|
|
|
endif()
|
2020-06-19 14:28:30 +08:00
|
|
|
|
2020-06-12 08:47:14 +08:00
|
|
|
################################################################################
|
|
|
|
# Setup the initialization target.
|
|
|
|
# This includes conditional dependencies based on whether features are enabled.
|
|
|
|
################################################################################
|
|
|
|
|
2020-10-09 09:29:59 +08:00
|
|
|
get_property(mlir_dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
|
|
get_property(mlir_conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
2020-08-06 05:49:18 +08:00
|
|
|
|
2020-10-09 09:29:59 +08:00
|
|
|
get_property(npcomp_dialect_libs GLOBAL PROPERTY NPCOMP_DIALECT_LIBS)
|
|
|
|
get_property(npcomp_conversion_libs GLOBAL PROPERTY NPCOMP_CONVERSION_LIBS)
|
|
|
|
|
|
|
|
message(STATUS "NPCOMP Dialect libs: ${npcomp_dialect_libs}")
|
|
|
|
message(STATUS "NPCOMP Conversion libs: ${npcomp_conversion_libs}")
|
|
|
|
|
|
|
|
add_npcomp_library(NPCOMPInitAll
|
2020-06-12 08:47:14 +08:00
|
|
|
InitAll.cpp
|
|
|
|
|
|
|
|
LINK_LIBS
|
|
|
|
|
2020-07-01 02:22:30 +08:00
|
|
|
PUBLIC
|
2020-06-12 08:47:14 +08:00
|
|
|
# Local depends
|
2020-10-07 07:14:37 +08:00
|
|
|
NPCOMPRefBackend
|
2020-10-08 08:30:10 +08:00
|
|
|
NPCOMPRefbackDialect
|
2020-10-07 06:57:11 +08:00
|
|
|
NPCOMPTCPDialect
|
|
|
|
NPCOMPTCFDialect
|
2020-09-29 03:02:35 +08:00
|
|
|
NPCOMPTorchDialect
|
2020-10-08 08:12:52 +08:00
|
|
|
NPCOMPRefbackrtDialect
|
2020-08-13 10:28:04 +08:00
|
|
|
NPCOMPATenDialect
|
2020-06-12 08:47:14 +08:00
|
|
|
NPCOMPBasicpyDialect
|
|
|
|
NPCOMPBasicpyPasses
|
2020-08-28 06:09:10 +08:00
|
|
|
NPCOMPConversionPasses
|
2020-06-12 08:47:14 +08:00
|
|
|
NPCOMPNumpyDialect
|
2020-07-09 13:51:54 +08:00
|
|
|
NPCOMPNumpyPasses
|
2020-07-11 12:51:03 +08:00
|
|
|
NPCOMPTCFPasses
|
2020-07-05 07:56:09 +08:00
|
|
|
NPCOMPTypingPasses
|
2020-06-12 08:47:14 +08:00
|
|
|
|
2020-10-09 09:29:59 +08:00
|
|
|
${npcomp_dialect_libs}
|
|
|
|
${npcomp_conversion_libs}
|
|
|
|
${mlir_dialect_libs}
|
|
|
|
${mlir_conversion_libs}
|
2020-06-12 08:47:14 +08:00
|
|
|
)
|