2021-09-24 11:59:12 +08:00
|
|
|
add_subdirectory(TorchToLinalg)
|
|
|
|
add_subdirectory(TorchToSCF)
|
|
|
|
add_subdirectory(TorchToStd)
|
2021-10-08 10:07:03 +08:00
|
|
|
add_subdirectory(TorchToTosa)
|
2022-03-03 00:48:15 +08:00
|
|
|
add_subdirectory(TorchToTMTensor)
|
2022-03-03 00:42:25 +08:00
|
|
|
add_subdirectory(Utils)
|
2021-09-24 11:59:12 +08:00
|
|
|
|
|
|
|
# TODO: Automate this with add_torch_mlir_conversion_library.
|
|
|
|
#get_property(torch_mlir_conversion_libs GLOBAL PROPERTY TORCH_MLIR_CONVERSION_LIBS)
|
|
|
|
|
|
|
|
add_mlir_library(TorchMLIRConversionPasses
|
|
|
|
Passes.cpp
|
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
TorchMLIRConversionPassIncGen
|
|
|
|
|
|
|
|
LINK_COMPONENTS
|
|
|
|
Core
|
|
|
|
|
|
|
|
LINK_LIBS PUBLIC
|
|
|
|
TorchMLIRTorchToLinalg
|
|
|
|
TorchMLIRTorchToSCF
|
|
|
|
TorchMLIRTorchToStd
|
2021-10-08 10:07:03 +08:00
|
|
|
TorchMLIRTorchToTosa
|
2022-03-03 00:48:15 +08:00
|
|
|
TorchMLIRTorchToTMTensor
|
2022-03-03 00:42:25 +08:00
|
|
|
TorchMLIRConversionUtils
|
2021-09-24 11:59:12 +08:00
|
|
|
#${torch_mlir_conversion_libs}
|
|
|
|
)
|