################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/Dialect/VM/Transforms/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_cc_library(
  NAME
    Transforms
  HDRS
    "Passes.h"
    "Passes.h.inc"
  SRCS
    "AnnotateFunctions.cpp"
    "Conversion.cpp"
    "ConvertToYieldableCalls.cpp"
    "DeduplicateRodata.cpp"
    "DropEmptyModuleInitializers.cpp"
    "DropOptimizationBarriers.cpp"
    "DropUnusedCalls.cpp"
    "GlobalInitialization.cpp"
    "HoistInlinedRodata.cpp"
    "MaterializeRefDiscards.cpp"
    "OrdinalAllocation.cpp"
    "Passes.cpp"
    "ReifyRodataTables.cpp"
    "ResolveRodataLoads.cpp"
    "SinkDefiningOps.cpp"
  DEPS
    ::PassesIncGen
    LLVMSupport
    MLIRAffineDialect
    MLIRAffineToStandard
    MLIRAffineTransforms
    MLIRAffineUtils
    MLIRAnalysis
    MLIRArithTransforms
    MLIRControlFlowInterfaces
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRMathDialect
    MLIRMemRefDialect
    MLIRPass
    MLIRSCFToControlFlow
    MLIRSCFTransforms
    MLIRSideEffectInterfaces
    MLIRSupport
    MLIRTransformUtils
    MLIRTransforms
    iree::compiler::Codegen::Common
    iree::compiler::Dialect::Util::Analysis
    iree::compiler::Dialect::Util::Conversion
    iree::compiler::Dialect::Util::Conversion::MemRefToUtil
    iree::compiler::Dialect::Util::IR
    iree::compiler::Dialect::Util::Transforms
    iree::compiler::Dialect::VM::Analysis
    iree::compiler::Dialect::VM::Analysis::ValueLiveness
    iree::compiler::Dialect::VM::Conversion
    iree::compiler::Dialect::VM::Conversion::ArithToVM
    iree::compiler::Dialect::VM::Conversion::MathToVM
    iree::compiler::Dialect::VM::Conversion::StandardToVM
    iree::compiler::Dialect::VM::Conversion::UtilToVM
    iree::compiler::Dialect::VM::IR
    iree::compiler::Transforms
    iree::compiler::Utils
  PUBLIC
)

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

iree_tablegen_doc(
  NAME
    VMPassesDocGen
  CATEGORY
    "Passes"
  TD_FILE
    "Passes.td"
  OUTS
    --gen-pass-doc VMPasses.md
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
