################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/InputConversion/Common/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"
  DEPS
    ::PassesIncGen
    MLIRPass
    MLIRTransformUtils
    MLIRTransforms
  PUBLIC
)

iree_cc_library(
  NAME
    Common
  HDRS
    "Passes.h"
  SRCS
    "ConvertPrimitiveType.cpp"
    "IREEImportPublic.cpp"
    "ImportMLProgram.cpp"
    "Passes.cpp"
    "SanitizeModuleNames.cpp"
  DEPS
    ::PassHeaders
    ::PassesIncGen
    IREEInputDialect
    LLVMSupport
    MLIRArithDialect
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRLinalgDialect
    MLIRLinalgTransforms
    MLIRLinalgUtils
    MLIRMLProgramDialect
    MLIRMemRefTransforms
    MLIRPass
    MLIRSCFDialect
    MLIRSCFToControlFlow
    MLIRSupport
    MLIRTensorDialect
    MLIRTensorUtils
    MLIRTransformUtils
    MLIRTransforms
    iree::compiler::Dialect::Flow::IR
    iree::compiler::Dialect::Flow::Transforms
    iree::compiler::Dialect::HAL::IR
    iree::compiler::Dialect::Util::IR
    iree::compiler::Dialect::Util::Transforms
    iree::compiler::Pipelines::Options
    iree::compiler::Utils
  PUBLIC
)

iree_cc_library(
  NAME
    AutoInputConversionPipeline
  HDRS
    "Passes.h"
  SRCS
    "AutoInputConversionPipeline.cpp"
  DEPS
    ::PassHeaders
    ::PassesIncGen
    LLVMSupport
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRPass
    MLIRTransformUtils
    MLIRTransforms
    iree::compiler::Pipelines::Options
    iree::compiler::PluginAPI
    iree::compiler::Utils
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
