Commit c4c8fbde authored by Stephen Neuendorffer's avatar Stephen Neuendorffer
Browse files

[MLIR] Remove redundant library dependencies

In cmake, it is redundant to have a target list under target_link_libraries()
and add_dependency().  This patch removes the redundant dependency from
add_dependency().

Differential Revision: https://reviews.llvm.org/D74929
parent 7a6c6897
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -31,10 +31,8 @@ add_llvm_library(MLIRAnalysis
  LLVMSupport
  )
add_dependencies(MLIRAnalysis
  MLIRAffineOps
  MLIRCallOpInterfacesIncGen
  MLIRTypeInferOpInterfaceIncGen
  MLIRLoopOps
  )

add_llvm_library(MLIRLoopAnalysis
@@ -56,8 +54,6 @@ add_llvm_library(MLIRLoopAnalysis
  LLVMSupport
  )
add_dependencies(MLIRLoopAnalysis
  MLIRAffineOps
  MLIRCallOpInterfacesIncGen
  MLIRTypeInferOpInterfaceIncGen
  MLIRLoopOps
  )
+0 −9
Original line number Diff line number Diff line
@@ -14,12 +14,3 @@ add_mlir_conversion_library(MLIRAffineToStandard
  LLVMCore
  LLVMSupport
  )
add_dependencies(
  MLIRAffineToStandard

  MLIRAffineOps
  MLIRStandardOps
  MLIRIR
  LLVMCore
  LLVMSupport
)
+0 −8
Original line number Diff line number Diff line
@@ -13,11 +13,3 @@ add_mlir_conversion_library(MLIRLoopToStandard
  LLVMCore
  LLVMSupport
  )
add_dependencies(
  MLIRLoopToStandard

  MLIRLoopOps
  MLIRTransforms
  LLVMCore
  LLVMSupport
)
+8 −13
Original line number Diff line number Diff line
set(LIBS
add_mlir_conversion_library(MLIRLoopsToGPU
  LoopsToGPU.cpp
  LoopsToGPUPass.cpp

  ADDITIONAL_HEADER_DIRS
  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopsToGPU

  LINK_LIBS
  MLIRAffineOps
  MLIRAffineToStandard
  MLIRGPU
@@ -12,15 +19,3 @@ set(LIBS
  MLIRTransformUtils
  LLVMSupport
  )

add_mlir_conversion_library(MLIRLoopsToGPU
  LoopsToGPU.cpp
  LoopsToGPUPass.cpp

  ADDITIONAL_HEADER_DIRS
  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopsToGPU

  LINK_LIBS
  ${LIBS}
  )
add_dependencies(MLIRLoopsToGPU ${LIBS})
+0 −8
Original line number Diff line number Diff line
@@ -13,11 +13,3 @@ add_mlir_conversion_library(MLIRStandardToLLVM
  LLVMCore
  LLVMSupport
  )
add_dependencies(
  MLIRStandardToLLVM

  MLIRLLVMIR
  MLIRTransforms
  LLVMCore
  LLVMSupport
)
Loading