################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/Dialect/Util/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"
    "Patterns.h"
  SRCS
    "AnnotateOpOrdinals.cpp"
    "ApplyPatterns.cpp"
    "AttributeCallGraph.cpp"
    "CombineInitializers.cpp"
    "DropCompilerHints.cpp"
    "DumpModule.cpp"
    "EliminateHoistableConversions.cpp"
    "FixedPointIterator.cpp"
    "FoldGlobals.cpp"
    "FuseGlobals.cpp"
    "HoistIntoGlobals.cpp"
    "IPO.cpp"
    "ImportResources.cpp"
    "LiftCFGToSCF.cpp"
    "LinkModules.cpp"
    "OptimizeIntArithmetic.cpp"
    "Passes.cpp"
    "Patterns.cpp"
    "PropagateSubranges.cpp"
    "SimplifyGlobalAccesses.cpp"
    "StripAndSplatConstants.cpp"
    "StripDebugOps.cpp"
    "TestConversion.cpp"
    "TestFloatRangeAnalysis.cpp"
    "TestIntegerDivisibilityAnalysis.cpp"
    "VerifyInitializationOrder.cpp"
    "VerifyStructuredControlFlow.cpp"
  DEPS
    ::PassesIncGen
    LLVMSupport
    MLIRAffineDialect
    MLIRAffineTransforms
    MLIRAffineUtils
    MLIRAnalysis
    MLIRArithDialect
    MLIRArithTransforms
    MLIRBytecodeWriter
    MLIRControlFlowDialect
    MLIRControlFlowInterfaces
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRLinalgDialect
    MLIRLoopLikeInterface
    MLIRMathDialect
    MLIRMemRefDialect
    MLIRParser
    MLIRPass
    MLIRSCFDialect
    MLIRSideEffectInterfaces
    MLIRSupport
    MLIRTransformUtils
    MLIRTransforms
    MLIRUBDialect
    MLIRVectorDialect
    iree::compiler::Dialect::Util::Analysis
    iree::compiler::Dialect::Util::Analysis::Attributes
    iree::compiler::Dialect::Util::Analysis::Constant
    iree::compiler::Dialect::Util::Analysis::DFX
    iree::compiler::Dialect::Util::Conversion
    iree::compiler::Dialect::Util::Conversion::FuncToUtil
    iree::compiler::Dialect::Util::Conversion::MemRefToUtil
    iree::compiler::Dialect::Util::IR
    iree::compiler::Utils
  PUBLIC
)

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

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

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
