################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/plugins/input/StableHLO/Conversion/BUILD.bazel                      #
#                                                                              #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary   #
# CMake-only content.                                                          #
#                                                                              #
# To disable autogeneration for this file entirely, delete this header.        #
################################################################################

iree_add_all_subdirs()

iree_tablegen_library(
  NAME
    PassesIncGen
  TD_FILE
    "Passes.td"
  OUTS
    --gen-pass-decls Passes.h.inc
)

iree_cc_library(
  NAME
    PassHeaders
  HDRS
    "PassDetail.h"
    "Passes.h"
    "Passes.h.inc"
    "Rewriters.h"
  DEPS
    ::PassesIncGen
    MLIRPass
    MLIRTransforms
  PUBLIC
)

iree_tablegen_library(
  NAME
    CHLODecompositionPatterns
  TD_FILE
    "CHLODecompositionPatterns.td"
  OUTS
    --gen-rewriters CHLODecompositionPatterns.h.inc
)

iree_cc_library(
  NAME
    StableHLOLegalization
  SRCS
    "CheckVHLOStableHloMixUsage.cpp"
    "ConvertCollectives.cpp"
    "LegalizeCHLO.cpp"
    "LegalizeControlFlow.cpp"
    "LegalizeShapeComputations.cpp"
    "LegalizeToLinalgUtils.cpp"
    "LegalizeToLinalgUtils.h"
    "MapStableHLOToScalarOp.h"
    "StableHLOCustomCalls.cpp"
    "StableHLOToArith.cpp"
    "StableHLOToIREEInputDialects.cpp"
    "StableHLOToLinalg.cpp"
    "StableHLOToLinalgConvolution.cpp"
    "StableHLOToLinalgDotProd.cpp"
    "StableHLOToLinalgExt.cpp"
    "StableHLOToLinalgPointwise.cpp"
    "StableHLOToLinalgRandom.cpp"
    "StableHLOToLinalgReduce.cpp"
    "TypeConversion.cpp"
    "TypeConversion.h"
    "VerifyCompilerInputLegality.cpp"
  DEPS
    ::CHLODecompositionPatterns
    ::PassHeaders
    ChloOps
    LLVMSupport
    MLIRAffineDialect
    MLIRAffineUtils
    MLIRArithDialect
    MLIRBufferizationDialect
    MLIRComplexDialect
    MLIRControlFlowDialect
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRLinalgDialect
    MLIRLinalgTransforms
    MLIRLinalgUtils
    MLIRMLProgramDialect
    MLIRMathDialect
    MLIRMemRefDialect
    MLIRSCFDialect
    MLIRShapeDialect
    MLIRShapeOpsTransforms
    MLIRSparseTensorDialect
    MLIRSupport
    MLIRTensorDialect
    MLIRTensorUtils
    MLIRTransformUtils
    MLIRTransforms
    MLIRVectorDialect
    StablehloBroadcastUtils
    StablehloOps
    VhloOps
    iree::compiler::Dialect::Flow::IR
    iree::compiler::Dialect::LinalgExt::IR
    iree::compiler::Dialect::Util::IR
    iree::compiler::Dialect::Util::Transforms
    iree::compiler::Utils
    iree::compiler::plugins::input::StableHLO::Conversion::Preprocessing
  PUBLIC
)

iree_cc_library(
  NAME
    Conversion
  HDRS
    "Passes.h"
  SRCS
    "Passes.cpp"
  DEPS
    ::PassHeaders
    ::StableHLOLegalization
    LLVMSupport
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRLinalgTransforms
    MLIRMLProgramDialect
    MLIRPass
    MLIRReconcileUnrealizedCasts
    MLIRSCFToControlFlow
    MLIRSCFTransforms
    MLIRShapeOpsTransforms
    MLIRShapeToStandard
    MLIRTransforms
    StablehloPasses
    iree::compiler::Dialect::Flow::IR
    iree::compiler::Dialect::Util::IR
    iree::compiler::Dialect::Util::Transforms
    iree::compiler::InputConversion::Common
    iree::compiler::plugins::input::StableHLO::Conversion::Preprocessing
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
