################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/plugins/input/StableHLO/Conversion/Preprocessing/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
    "Passes.h"
    "Passes.h.inc"
    "Rewriters.h"
  DEPS
    ::PassesIncGen
    MLIRPass
    MLIRTransforms
  PUBLIC
)

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

iree_cc_library(
  NAME
    Preprocessing
  HDRS
    "Passes.h"
    "Rewriters.h"
  SRCS
    "Canonicalization.cpp"
    "DotGeneralToDot.cpp"
    "EinsumToDotGeneral.cpp"
    "FlattenTuplesInCFG.cpp"
    "FlattenTuplesInSCF.cpp"
    "GatherToTorchIndexSelect.cpp"
    "LowerComplex.cpp"
    "Passes.cpp"
    "StableHLOToStableHLO.cpp"
    "UnfuseBatchNorm.cpp"
  DEPS
    ::ComplexLoweringPatterns
    ::PassHeaders
    ChloOps
    LLVMSupport
    MLIRArithDialect
    MLIRControlFlowDialect
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRMathDialect
    MLIRPass
    MLIRSCFDialect
    MLIRShapeDialect
    MLIRSparseTensorDialect
    MLIRSupport
    MLIRTensorDialect
    MLIRTransformUtils
    MLIRTransforms
    StablehloOps
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
