mirror of https://github.com/llvm/torch-mlir
Fix a few missing dependencies. (#2014)
`TorchToTMTensor` depends on `TorchMLIRTorchUtils` for `mlir::torch::torch_upstream::get_reduction_enum`. `TorchMLIRTorchConversionPasses` depends on multiple libs for both tblgen'd headers and definitions. Test with `ninja TorchMLIRTorchConversionPasses` from a clean build.pull/2013/head snapshot-20230412.806
parent
72c3326097
commit
224ee27610
|
@ -12,9 +12,10 @@ add_mlir_conversion_library(TorchMLIRTorchConversionToMLProgram
|
|||
|
||||
LINK_LIBS PUBLIC
|
||||
MLIRIR
|
||||
MLIRPass
|
||||
MLIRLinalgDialect
|
||||
MLIRMLProgramDialect
|
||||
MLIRMathDialect
|
||||
MLIRPass
|
||||
TorchMLIRTorchDialect
|
||||
)
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ TorchToTMTensor.cpp
|
|||
MLIRMathDialect
|
||||
TorchMLIRTorchDialect
|
||||
TorchMLIRTMTensorDialect
|
||||
TorchMLIRTorchUtils
|
||||
)
|
||||
|
||||
torch_mlir_target_includes(TorchMLIRTorchToTMTensor)
|
||||
|
|
|
@ -16,6 +16,7 @@ add_mlir_conversion_library(TorchMLIRTorchToTosa
|
|||
MLIRIR
|
||||
MLIRPass
|
||||
MLIRTosaDialect
|
||||
TorchMLIRConversionUtils
|
||||
TorchMLIRTorchDialect
|
||||
)
|
||||
|
||||
|
|
|
@ -1,16 +1,22 @@
|
|||
set(LinkedLibs MLIRIR
|
||||
MLIRPass
|
||||
MLIRFuncTransforms
|
||||
TorchMLIRTorchConversionDialect
|
||||
TorchMLIRTorchDialect
|
||||
TorchMLIRTorchPasses
|
||||
TorchMLIRTorchToLinalg
|
||||
TorchMLIRTorchToTMTensor
|
||||
TorchMLIRTorchToArith
|
||||
TorchMLIRTorchToSCF
|
||||
TorchMLIRTorchConversionToMLProgram
|
||||
MLIRMemRefTransforms)
|
||||
|
||||
set(LinkedLibs
|
||||
MLIRFuncTransforms
|
||||
MLIRIR
|
||||
MLIRLinalgTransforms
|
||||
MLIRMemRefTransforms
|
||||
MLIRPass
|
||||
MLIRTosaTransforms
|
||||
MLIRVectorTransforms
|
||||
TorchMLIRTorchConversionDialect
|
||||
TorchMLIRTorchConversionToMLProgram
|
||||
TorchMLIRTorchDialect
|
||||
TorchMLIRTorchPasses
|
||||
TorchMLIRTorchToArith
|
||||
TorchMLIRTorchToLinalg
|
||||
TorchMLIRTorchToSCF
|
||||
TorchMLIRTorchToTMTensor
|
||||
TorchMLIRTorchToTosa
|
||||
)
|
||||
|
||||
if(TORCH_MLIR_ENABLE_STABLEHLO)
|
||||
list(APPEND LinkedLibs ChloPasses)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue