mirror of https://github.com/llvm/torch-mlir
43 lines
668 B
CMake
43 lines
668 B
CMake
add_subdirectory(CAPI)
|
|
add_subdirectory(Conversion)
|
|
add_subdirectory(Dialect)
|
|
add_subdirectory(RefBackend)
|
|
|
|
set(LinkedLibs
|
|
MLIRFuncDialect
|
|
MLIRIR
|
|
MLIRSupport
|
|
|
|
TorchMLIRTorchPasses
|
|
TorchMLIRTorchConversionDialect
|
|
|
|
TorchMLIRTorchDialect
|
|
TorchMLIRTorchConversionPasses
|
|
|
|
TorchMLIRTMTensorPasses
|
|
TorchMLIRTMTensorDialect
|
|
|
|
TorchMLIRConversionPasses
|
|
TorchMLIRRefBackend
|
|
)
|
|
|
|
if(TORCH_MLIR_ENABLE_STABLEHLO)
|
|
list(APPEND LinkedLibs
|
|
MhloPasses
|
|
MhloToLinalg
|
|
StablehloToMhlo
|
|
)
|
|
endif()
|
|
|
|
add_mlir_library(TorchMLIRInitAll
|
|
InitAll.cpp
|
|
|
|
LINK_COMPONENTS
|
|
Core
|
|
|
|
LINK_LIBS PUBLIC
|
|
${LinkedLibs}
|
|
)
|
|
|
|
torch_mlir_target_includes(TorchMLIRInitAll)
|