################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/plugins/input/Torch/InputConversion/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
    MLIRTransforms
  PUBLIC
)

iree_cc_library(
  NAME
    InputConversion
  HDRS
    "Passes.h"
  SRCS
    "BindSymbolicShapes.cpp"
    "BitCastTensor.cpp"
    "ConvertTMTensorToLinalgExt.cpp"
    "ConvertTorchUnstructuredToLinalgExt.cpp"
    "FuncConversion.cpp"
    "Passes.cpp"
    "SetStrictSymbolicShapes.cpp"
    "SyncFuncConversion.cpp"
  DEPS
    ::PassHeaders
    ::PassesIncGen
    LLVMSupport
    MLIRArithDialect
    MLIRArithUtils
    MLIRFuncDialect
    MLIRFuncTransforms
    MLIRFunctionInterfaces
    MLIRIR
    MLIRLinalgDialect
    MLIRMathDialect
    MLIRMemRefDialect
    MLIRMemRefTransforms
    MLIRPass
    MLIRSCFDialect
    MLIRSupport
    MLIRTensorDialect
    MLIRTransformUtils
    MLIRTransforms
    iree::compiler::Dialect::Flow::IR
    iree::compiler::Dialect::HAL::IR
    iree::compiler::Dialect::LinalgExt::IR
    iree::compiler::Dialect::LinalgExt::Transforms
    iree::compiler::Dialect::LinalgExt::Utils
    iree::compiler::Dialect::TensorExt::IR
    iree::compiler::Dialect::Util::IR
    iree::compiler::plugins::input::Torch::torch-mlir-dialects::TMTensorDialectIR
    iree::compiler::plugins::input::Torch::torch-mlir::ConversionPasses
    iree::compiler::plugins::input::Torch::torch-mlir::TorchConversionDialectIR
    iree::compiler::plugins::input::Torch::torch-mlir::TorchDialectIR
    iree::compiler::plugins::input::Torch::torch-mlir::TorchDialectPasses
    iree::compiler::plugins::input::Torch::torch-mlir::TorchDialectUtils
    iree::compiler::plugins::input::Torch::torch-mlir::TorchOnnxToTorchPasses
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
