################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/Utils/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
    Utils
  HDRS
    "ConversionUtils.h"
    "ElementPackingUtils.h"
    "EmbeddedDataDirectory.h"
    "EquivalenceUtils.h"
    "FlatbufferUtils.h"
    "Folding.h"
    "Indexing.h"
    "IntegerSet.h"
    "ModuleUtils.h"
    "OpVisitor.h"
    "OptionUtils.h"
    "PassUtils.h"
    "PatternUtils.h"
    "Permutation.h"
    "SmallVectorDenseMapInfo.h"
    "StringUtils.h"
    "ToolUtils.h"
    "TracingUtils.h"
  SRCS
    "ConversionUtils.cpp"
    "ElementPackingUtils.cpp"
    "EquivalenceUtils.cpp"
    "FlatbufferUtils.cpp"
    "ModuleUtils.cpp"
    "OptionUtils.cpp"
    "PassUtils.cpp"
    "StringUtils.cpp"
    "ToolUtils.cpp"
    "TracingUtils.cpp"
  DEPS
    LLVMSupport
    MLIRArithDialect
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRParser
    MLIRPass
    MLIRSupport
    MLIRTransformUtils
    MLIRTransforms
    iree::base
    iree::base::internal::flatcc::building
    iree::base::internal::flatcc::debugging
    iree::base::internal::flatcc::parsing
    iree::compiler::Dialect::Encoding::IR
    iree::compiler::Dialect::Util::IR
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###

if(IREE_ENABLE_COMPILER_TRACING)
  target_compile_definitions(iree_compiler_Utils_Utils
  PUBLIC
    "IREE_ENABLE_COMPILER_TRACING=1"
  )
endif()
