Skip to content

Commit

Permalink
Reapply "[mlir] NFC: fix dependence of (Tensor|Linalg|MemRef|Complex)…
Browse files Browse the repository at this point in the history
… dialects on LLVM Dialect and LLVM Core in CMake build (llvm#104832)" (llvm#105703)

Reapply the commit 43b5085 with
additional fixes for building with
BUILD_SHARED_LIBS=ON.
  • Loading branch information
christopherbate authored and 5c4lar committed Aug 29, 2024
1 parent c873678 commit b532740
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 24 deletions.
3 changes: 0 additions & 3 deletions mlir/lib/Conversion/AffineToStandard/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ add_mlir_conversion_library(MLIRAffineToStandard
DEPENDS
MLIRConversionPassIncGen

LINK_COMPONENTS
Core

LINK_LIBS PUBLIC
MLIRAffineDialect
MLIRAffineTransforms
Expand Down
1 change: 1 addition & 0 deletions mlir/lib/Conversion/ComplexToLLVM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ add_mlir_conversion_library(MLIRComplexToLLVM
Core

LINK_LIBS PUBLIC
MLIRArithAttrToLLVMConversion
MLIRComplexDialect
MLIRLLVMCommonConversion
MLIRLLVMDialect
Expand Down
4 changes: 0 additions & 4 deletions mlir/lib/Conversion/ControlFlowToSCF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ add_mlir_conversion_library(MLIRControlFlowToSCF

DEPENDS
MLIRConversionPassIncGen
intrinsics_gen

LINK_COMPONENTS
Core

LINK_LIBS PUBLIC
MLIRAnalysis
Expand Down
3 changes: 0 additions & 3 deletions mlir/lib/Conversion/SCFToControlFlow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ add_mlir_conversion_library(MLIRSCFToControlFlow
DEPENDS
MLIRConversionPassIncGen

LINK_COMPONENTS
Core

LINK_LIBS PUBLIC
MLIRArithDialect
MLIRControlFlowDialect
Expand Down
1 change: 1 addition & 0 deletions mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ add_mlir_conversion_library(MLIRVectorToLLVM
Core

LINK_LIBS PUBLIC
MLIRArithAttrToLLVMConversion
MLIRArithDialect
MLIRLLVMCommonConversion
MLIRLLVMDialect
Expand Down
4 changes: 0 additions & 4 deletions mlir/lib/Conversion/VectorToSCF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ add_mlir_conversion_library(MLIRVectorToSCF
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/VectorToSCF

LINK_COMPONENTS
Core

LINK_LIBS PUBLIC
MLIRArithDialect
MLIRLLVMDialect
MLIRMemRefDialect
MLIRTransforms
MLIRVectorDialect
Expand Down
1 change: 0 additions & 1 deletion mlir/lib/Dialect/Affine/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ add_mlir_dialect_library(MLIRAffineTransforms
MLIRValueBoundsOpInterface
MLIRVectorDialect
MLIRVectorUtils
MLIRVectorToLLVM
)

1 change: 0 additions & 1 deletion mlir/lib/Dialect/Complex/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ add_mlir_dialect_library(MLIRComplexDialect
MLIRComplexAttributesIncGen

LINK_LIBS PUBLIC
MLIRArithAttrToLLVMConversion
MLIRArithDialect
MLIRDialect
MLIRInferTypeOpInterface
Expand Down
2 changes: 0 additions & 2 deletions mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ add_mlir_dialect_library(MLIRLinalgTransforms
MLIRDestinationStyleOpInterface
MLIRDialectUtils
MLIRFuncDialect
MLIRFuncToLLVM
MLIRFuncTransforms
MLIRIndexDialect
MLIRInferTypeOpInterface
Expand All @@ -87,6 +86,5 @@ add_mlir_dialect_library(MLIRLinalgTransforms
MLIRVectorDialect
MLIRVectorTransforms
MLIRVectorUtils
MLIRX86VectorTransforms
MLIRVectorToSCF
)
3 changes: 0 additions & 3 deletions mlir/lib/Dialect/MemRef/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ add_mlir_dialect_library(MLIRMemRefDialect
DEPENDS
MLIRMemRefOpsIncGen

LINK_COMPONENTS
Core

LINK_LIBS PUBLIC
MLIRArithDialect
MLIRArithUtils
Expand Down
1 change: 1 addition & 0 deletions mlir/lib/Dialect/MemRef/TransformOps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ add_mlir_dialect_library(MLIRMemRefTransformOps
MLIRNVGPUDialect
MLIRTransformDialect
MLIRVectorDialect
MLIRVectorTransforms
)
1 change: 1 addition & 0 deletions mlir/lib/Dialect/MemRef/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ add_mlir_dialect_library(MLIRMemRefTransforms
MLIRInferTypeOpInterface
MLIRLoopLikeInterface
MLIRMemRefDialect
MLIRMemRefUtils
MLIRNVGPUDialect
MLIRPass
MLIRTensorDialect
Expand Down
1 change: 1 addition & 0 deletions mlir/lib/Dialect/SparseTensor/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ add_mlir_dialect_library(MLIRSparseTensorTransforms
MLIRLLVMDialect
MLIRLinalgDialect
MLIRLinalgTransforms
MLIRLLVMCommonConversion
MLIRMemRefDialect
MLIRPass
MLIRSCFDialect
Expand Down
3 changes: 0 additions & 3 deletions mlir/lib/Dialect/Tensor/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ add_mlir_dialect_library(MLIRTensorDialect
DEPENDS
MLIRTensorOpsIncGen

LINK_COMPONENTS
Core

LINK_LIBS PUBLIC
MLIRAffineDialect
MLIRArithDialect
Expand Down

0 comments on commit b532740

Please sign in to comment.