load("@local_tsl//tsl/platform:rules_cc.bzl", "cc_library")
load("//xla/tsl:tsl.bzl", "internal_visibility")

package(
    # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
    default_visibility = internal_visibility([
        "//learning/brain/mlir:tensorflow_friends",
        "//learning/brain/mlir:xla_friends",
    ]),
    licenses = ["notice"],
)

# Deprecated, use //third_party/tensorflow/compiler/xla/hlo/translate/hlo_to_mhlo:attribute_importer #
# instead.
cc_library(
    name = "attribute_importer",
    hdrs = ["attribute_importer.h"],
    deps = [
        "//xla/hlo/translate/hlo_to_mhlo:attribute_importer",
    ],
)

# Deprecated, use //third_party/tensorflow/compiler/xla/hlo/translate/hlo_to_mhlo:hlo_function_importer #
# instead.
cc_library(
    name = "hlo_function_importer",
    hdrs = ["hlo_function_importer.h"],
    deps = [
        "//xla/hlo/translate/hlo_to_mhlo:hlo_function_importer",
    ],
)

# Deprecated, use //third_party/tensorflow/compiler/xla/hlo/translate/hlo_to_mhlo:hlo_module_importer #
# instead.
cc_library(
    name = "hlo_module_importer",
    hdrs = [
        "hlo_module_importer.h",
    ],
    deps = [
        "//xla/hlo/translate/hlo_to_mhlo:hlo_module_importer",
    ],
)

# Deprecated, use //third_party/tensorflow/compiler/xla/hlo/translate/hlo_to_mhlo:hlo_to_mlir_hlo #
# instead.
cc_library(
    name = "hlo_to_mlir_hlo",
    hdrs = ["hlo_to_mlir_hlo.h"],
    deps = [
        "//xla/hlo/translate/hlo_to_mhlo:hlo_to_mlir_hlo",
    ],
)

# Deprecated, use //third_party/tensorflow/compiler/xla/hlo/translate/hlo_to_mhlo:hlo_utils #
# instead.
cc_library(
    name = "hlo_utils",
    hdrs = ["hlo_utils.h"],
    includes = ["include"],
    deps = [
        "//xla/hlo/translate/hlo_to_mhlo:hlo_utils",
    ],
)

# Deprecated, use //third_party/tensorflow/compiler/xla/hlo/translate/hlo_to_mhlo:translate #
# instead.
cc_library(
    name = "translate",
    hdrs = ["translate.h"],
    deps = [
        "//xla/hlo/translate/hlo_to_mhlo:translate",
    ],
)

# Deprecated, use //third_party/tensorflow/compiler/xla/hlo/translate/hlo_to_mhlo:translate_registration #
# instead.
cc_library(
    name = "translate_registration",
    testonly = True,
    deps = [
        "//xla/hlo/translate/hlo_to_mhlo:translate_registration",
    ],
    alwayslink = 1,
)
