################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/Dialect/Stream/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
    "StreamDialect.h"
    "StreamEnums.h.inc"
    "StreamOpInterfaces.h.inc"
    "StreamOps.h"
    "StreamOps.h.inc"
    "StreamTraits.h"
    "StreamTypeInterfaces.h.inc"
    "StreamTypes.h"
    "StreamTypes.h.inc"
  SRCS
    "StreamDialect.cpp"
    "StreamEnums.cpp.inc"
    "StreamOpFolders.cpp"
    "StreamOpInterfaces.cpp.inc"
    "StreamOps.cpp"
    "StreamOps.cpp.inc"
    "StreamTypeInterfaces.cpp.inc"
    "StreamTypes.cpp"
    "StreamTypes.cpp.inc"
  DEPS
    ::StreamEnumsGen
    ::StreamInterfacesGen
    ::StreamOpsGen
    ::StreamTypesGen
    LLVMSupport
    MLIRArithDialect
    MLIRArithUtils
    MLIRComplexDialect
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRInferTypeOpInterface
    MLIRMemRefDialect
    MLIRParser
    MLIRSideEffectInterfaces
    MLIRSupport
    MLIRTensorDialect
    MLIRTransformUtils
    MLIRViewLikeInterface
    iree::compiler::Dialect::Util::IR
    iree::compiler::Utils
  PUBLIC
)

iree_tablegen_library(
  NAME
    StreamEnumsGen
  TD_FILE
    "StreamBase.td"
  OUTS
    --gen-enum-decls StreamEnums.h.inc
    --gen-enum-defs StreamEnums.cpp.inc
)

iree_tablegen_library(
  NAME
    StreamInterfacesGen
  TD_FILE
    "StreamInterfaces.td"
  OUTS
    --gen-attr-interface-decls StreamAttrInterfaces.h.inc
    --gen-attr-interface-defs StreamAttrInterfaces.cpp.inc
    --gen-op-interface-decls StreamOpInterfaces.h.inc
    --gen-op-interface-defs StreamOpInterfaces.cpp.inc
    --gen-type-interface-decls StreamTypeInterfaces.h.inc
    --gen-type-interface-defs StreamTypeInterfaces.cpp.inc
)

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

iree_tablegen_library(
  NAME
    StreamTypesGen
  TD_FILE
    "StreamBase.td"
  OUTS
    --gen-attrdef-decls --attrdefs-dialect=stream StreamAttrs.h.inc
    --gen-attrdef-defs --attrdefs-dialect=stream StreamAttrs.cpp.inc
    --gen-typedef-decls --typedefs-dialect=stream StreamTypes.h.inc
    --gen-typedef-defs --typedefs-dialect=stream StreamTypes.cpp.inc
)

iree_tablegen_doc(
  NAME
    StreamDialectDocGen
  TD_FILE
    "StreamOps.td"
  OUTS
    --gen-dialect-doc --dialect=stream StreamDialect.md
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
