llvm/mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt

add_mlir_dialect_library(MLIRLinalgTransforms
  AllInterfaces.cpp
  BubbleUpExtractSlice.cpp
  BufferizableOpInterfaceImpl.cpp
  ConstantFold.cpp
  ConvertToDestinationStyle.cpp
  ConvertConv2DToImg2Col.cpp
  DataLayoutPropagation.cpp
  DecomposeLinalgOps.cpp
  Detensorize.cpp
  DropUnitDims.cpp
  ElementwiseOpFusion.cpp
  ElementwiseToLinalg.cpp
  EliminateEmptyTensors.cpp
  EraseUnusedOperandsAndResults.cpp
  FoldAddIntoDest.cpp
  FusePadOpWithLinalgProducer.cpp
  Fusion.cpp
  Generalization.cpp
  Hoisting.cpp
  HoistPadding.cpp
  InlineScalarOperands.cpp
  Interchange.cpp
  Loops.cpp
  TransposeMatmul.cpp
  MeshShardingInterfaceImpl.cpp
  NamedOpConversions.cpp
  BlockPackMatmul.cpp
  Padding.cpp
  Promotion.cpp
  RuntimeOpVerification.cpp
  Specialize.cpp
  Split.cpp
  SplitReduction.cpp
  SubsetInsertionOpInterfaceImpl.cpp
  SwapExtractSliceWithFillPatterns.cpp
  Tiling.cpp
  TilingInterfaceImpl.cpp
  Transforms.cpp
  TransposeConv2D.cpp
  Vectorization.cpp
  WinogradConv2D.cpp

  ADDITIONAL_HEADER_DIRS
  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg

  DEPENDS
  MLIRLinalgPassIncGen

  LINK_LIBS PUBLIC
  MLIRAffineDialect
  MLIRAffineUtils
  MLIRAnalysis
  MLIRArithDialect
  MLIRArithTransforms
  MLIRArithUtils
  MLIRComplexDialect
  MLIRDestinationStyleOpInterface
  MLIRDialectUtils
  MLIRFuncDialect
  MLIRFuncTransforms
  MLIRIndexDialect
  MLIRInferTypeOpInterface
  MLIRIR
  MLIRMemRefDialect
  MLIRMemRefTransforms
  MLIRMeshTransforms
  MLIRLinalgDialect
  MLIRLinalgUtils
  MLIRSCFDialect
  MLIRSCFTransforms
  MLIRPass
  MLIRSubsetOpInterface
  MLIRSparseTensorDialect
  MLIRTensorDialect
  MLIRTensorTilingInterfaceImpl
  MLIRTransforms
  MLIRTransformUtils
  MLIRValueBoundsOpInterface
  MLIRVectorDialect
  MLIRVectorTransforms
  MLIRVectorUtils
  MLIRVectorToSCF
)