################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# compiler/src/iree/compiler/Modules/HAL/Loader/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
    "HALLoaderOps.h"
    "HALLoaderOps.h.inc"
  TEXTUAL_HDRS
    "HALLoaderOps.cpp.inc"
  SRCS
    "HALLoaderOps.cpp"
  DEPS
    ::HALLoaderOpsGen
    LLVMSupport
    MLIRArithDialect
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRSideEffectInterfaces
    MLIRSupport
    MLIRTransformUtils
    MLIRTranslateLib
    iree::compiler::Dialect::HAL::IR
    iree::compiler::Dialect::Util::IR
    iree::compiler::Dialect::VM::IR
  PUBLIC
)

iree_cc_library(
  NAME
    HALLoaderDialect
  HDRS
    "HALLoaderDialect.h"
  SRCS
    "HALLoaderDialect.cpp"
  DEPS
    ::IR
    LLVMSupport
    MLIRFuncDialect
    MLIRFunctionInterfaces
    MLIRIR
    MLIRParser
    MLIRSupport
    MLIRTransformUtils
    iree::compiler::Dialect::VM::Conversion
    iree::compiler::Modules::HAL::Loader::Conversion::HALLoaderToVM
    iree::compiler::Modules::HAL::Loader::hal_loader_imports
  PUBLIC
)

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

iree_tablegen_doc(
  NAME
    HALLoaderDialectDocGen
  TD_FILE
    "HALLoaderOps.td"
  OUTS
    --dialect=hal_loader --gen-dialect-doc HALLoaderDialect.md
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
