[mlir][func] Remove unnecessary link dependencies for MLIRFuncTransforms
authorJakub Kuderski <kubak@google.com>
Thu, 8 Sep 2022 21:34:24 +0000 (17:34 -0400)
committerJakub Kuderski <kubak@google.com>
Thu, 8 Sep 2022 21:35:22 +0000 (17:35 -0400)
This is so that FuncTransforms can be used by other dialects without introducing cyclic dependencies.

Tested by building with `BUILD_SHARED_LIBS=ON`

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D133527

mlir/lib/Dialect/Func/Transforms/CMakeLists.txt

index acc52e4..5de2fb8 100644 (file)
@@ -10,14 +10,11 @@ add_mlir_dialect_library(MLIRFuncTransforms
   MLIRFuncTransformsIncGen
 
   LINK_LIBS PUBLIC
-  MLIRAffineDialect
-  MLIRArithmeticTransforms
   MLIRBufferizationDialect
   MLIRBufferizationTransforms
   MLIRFuncDialect
   MLIRIR
   MLIRMemRefDialect
   MLIRPass
-  MLIRSCFDialect
   MLIRTransforms
   )