################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/Dialect/Util/IR/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
    IR
  HDRS
    "ClosureOpUtils.h"
    "UtilDialect.h"
    "UtilOps.h"
    "UtilTraits.h"
    "UtilTypes.h"
  TEXTUAL_HDRS
    "UtilAttrInterfaces.cpp.inc"
    "UtilAttrInterfaces.h.inc"
    "UtilAttrs.cpp.inc"
    "UtilAttrs.h.inc"
    "UtilEnums.cpp.inc"
    "UtilEnums.h.inc"
    "UtilOpInterfaces.cpp.inc"
    "UtilOpInterfaces.h.inc"
    "UtilOps.cpp.inc"
    "UtilOps.h.inc"
    "UtilTypeInterfaces.cpp.inc"
    "UtilTypeInterfaces.h.inc"
    "UtilTypes.cpp.inc"
    "UtilTypes.h.inc"
  SRCS
    "ClosureOpUtils.cpp"
    "UtilAttrs.cpp"
    "UtilDialect.cpp"
    "UtilOpFolders.cpp"
    "UtilOps.cpp"
    "UtilTypes.cpp"
  DEPS
    ::UtilAttrsGen
    ::UtilInterfacesGen
    ::UtilOpsGen
    ::UtilTypesGen
    LLVMSupport
    MLIRAffineDialect
    MLIRArithDialect
    MLIRCastInterfaces
    MLIRControlFlowDialect
    MLIRControlFlowInterfaces
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRInferTypeOpInterface
    MLIRMemRefDialect
    MLIRParser
    MLIRSideEffectInterfaces
    MLIRSupport
    MLIRTensorDialect
    MLIRTransformUtils
    MLIRTransforms
    MLIRViewLikeInterface
  PUBLIC
)

iree_tablegen_library(
  NAME
    UtilAttrsGen
  TD_FILE
    "UtilAttrs.td"
  OUTS
    --gen-attrdef-decls UtilAttrs.h.inc
    --gen-attrdef-defs UtilAttrs.cpp.inc
    --gen-enum-decls UtilEnums.h.inc
    --gen-enum-defs UtilEnums.cpp.inc
)

iree_tablegen_library(
  NAME
    UtilInterfacesGen
  TD_FILE
    "UtilInterfaces.td"
  OUTS
    --gen-attr-interface-decls UtilAttrInterfaces.h.inc
    --gen-attr-interface-defs UtilAttrInterfaces.cpp.inc
    --gen-op-interface-decls UtilOpInterfaces.h.inc
    --gen-op-interface-defs UtilOpInterfaces.cpp.inc
    --gen-type-interface-decls UtilTypeInterfaces.h.inc
    --gen-type-interface-defs UtilTypeInterfaces.cpp.inc
)

iree_tablegen_library(
  NAME
    UtilOpsGen
  TD_FILE
    "UtilOps.td"
  OUTS
    --gen-op-decls UtilOps.h.inc
    --gen-op-defs UtilOps.cpp.inc
)

iree_tablegen_library(
  NAME
    UtilTypesGen
  TD_FILE
    "UtilTypes.td"
  OUTS
    --gen-typedef-decls UtilTypes.h.inc
    --gen-typedef-defs UtilTypes.cpp.inc
)

iree_tablegen_doc(
  NAME
    UtilDialectDocGen
  TD_FILE
    "UtilOps.td"
  OUTS
    --gen-dialect-doc --dialect=util UtilDialect.md
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
