Fix BUILD dependencies in xla/backends

Add missing and remove unused BUILD dependencies reported by build_cleaner.

PiperOrigin-RevId: 1003724229
This commit is contained in:
A. Unique TensorFlower authored and TensorFlower Gardener committed 2026-10-21 06:08:39 -07:00
1 parent 5901d5d4a9
commit 9c0e242c78
7 files changed
-32

No files matched your search

-13
View File
@@ -309,41 +309,28 @@ cc_library(
srcs = ["jit_compiler.cc"],
hdrs = ["jit_compiler.h"],
deps = [
":compiled_function_library",
":contiguous_section_memory_manager",
":cpu_features",
":execution_engine",
":ir_compiler",
":jit_memory_mapper",
":object_loader",
"//xla:util",
"//xla/backends/cpu/runtime:function_library",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:statusor",
"@com_google_absl//absl/base",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/functional:any_invocable",
"@com_google_absl//absl/log",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:status_macros",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:span",
"@llvm-project//llvm:Core",
"@llvm-project//llvm:ExecutionEngine",
"@llvm-project//llvm:MC",
"@llvm-project//llvm:OrcJIT",
"@llvm-project//llvm:OrcShared",
"@llvm-project//llvm:Support",
"@llvm-project//llvm:Target",
"@llvm-project//llvm:TargetParser",
"@tsl//tsl/platform:logging",
"@tsl//tsl/platform:platform_port",
"@tsl//tsl/platform:statusor",
"@tsl//tsl/profiler/lib:traceme",
"@tsl//tsl/profiler/lib:traceme_encode",
] + if_llvm_aarch64_available([
@@ -406,7 +406,6 @@ cc_library(
"@com_google_absl//absl/types:span",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithDialect",
"@llvm-project//mlir:DialectUtils",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:SCFDialect",
@@ -452,7 +451,6 @@ cc_library(
"@com_google_absl//absl/types:span",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:ArithDialect",
"@llvm-project//mlir:DialectUtils",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Support",
-2
View File
@@ -139,7 +139,6 @@ xla_cc_binary(
"//xla/tests:hlo_pjrt_interpreter_reference_mixin",
"//xla/tests:hlo_pjrt_test_base",
"//xla/tests:pjrt_gpu_client_registry",
"//xla/tsl/lib/core:status_test_util",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
@@ -149,7 +148,6 @@ xla_cc_binary(
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest",
"@llvm-project//llvm:Support",
"@tsl//tsl/platform:statusor",
] + if_cuda_is_configured([
"//xla/stream_executor/cuda:all_runtime",
]) + if_rocm_is_configured([
@@ -43,16 +43,12 @@ xla_cc_binary(
deps = [
"//xla:debug_options_flags",
"//xla:error_spec",
"//xla/backends/gpu/codegen/tools:test_lib",
"//xla/codegen/tools:test_lib",
"//xla/hlo/ir:hlo",
"//xla/service:gpu_plugin",
"//xla/tests:hlo_pjrt_interpreter_reference_mixin",
"//xla/tests:hlo_pjrt_test_base",
"//xla/tests:pjrt_gpu_client_registry",
"//xla/tools:hlo_module_loader",
"//xla/tsl/lib/core:status_test_util",
"//xla/tsl/platform:statusor",
"//xla/tsl/util:command_line_flags",
"@com_google_absl//absl/log",
"@com_google_googletest//:gtest",
-1
View File
@@ -319,7 +319,6 @@ xla_test(
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main", # fixdeps: keep
"@tsl//tsl/platform:casts",
] + if_cuda_or_rocm_is_configured([
":nccl_or_rccl_collectives",
]),
-2
View File
@@ -1700,7 +1700,6 @@ cc_library(
"//xla:xla_data_proto_cc",
"//xla/backends/gpu:ffi",
"//xla/ffi",
"//xla/ffi:ffi_api",
"//xla/service/gpu:ir_emission_utils",
"//xla/stream_executor:device_address",
"//xla/stream_executor:device_address_allocator",
@@ -5868,7 +5867,6 @@ xla_test(
"//xla/stream_executor/gpu:gpu_init",
"//xla/stream_executor/gpu:gpu_test_kernels_fatbin",
"//xla/tsl/platform:test",
"@com_google_absl//absl/base",
"@com_google_absl//absl/base:no_destructor",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
-8
View File
@@ -1151,7 +1151,6 @@ cc_library(
"//xla:literal",
"//xla:xla_data_proto_cc",
"//xla:xla_proto_cc",
"//xla/backends/gpu/target_config",
"//xla/hlo/ir:hlo",
"//xla/hlo/testlib:hlo_hardware_independent_test_base",
"//xla/pjrt:pjrt_client",
@@ -1162,7 +1161,6 @@ cc_library(
"//xla/service:device_assignment",
"//xla/service:hlo_module_config",
"//xla/service:hlo_runner_interface",
"//xla/service:hlo_runner_pjrt",
"//xla/service/gpu:backend_configs_cc",
"//xla/stream_executor:device_description",
"//xla/stream_executor/cuda:cuda_compute_capability",
@@ -1177,7 +1175,6 @@ cc_library(
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest_for_library",
"@com_google_protobuf//:protobuf",
"@tsl//tsl/platform:path",
] + if_google([
# In OSS this dependency is added automatically for xla_test targets. See
@@ -1443,22 +1440,17 @@ xla_test(
"//xla/core/collectives:reduction_kind",
"//xla/ffi",
"//xla/ffi:collectives_ffi",
"//xla/ffi:ffi_api",
"//xla/ffi/api:c_api",
"//xla/ffi/api:collectives_api",
"//xla/runtime:device_id",
"//xla/service:collective_ops_utils",
"//xla/service:rendezvous",
"//xla/stream_executor:device_address",
"//xla/stream_executor:launch_dim",
"//xla/stream_executor:stream",
"//xla/stream_executor/gpu:gpu_kernel_registry",
"//xla/tests:literal_test_util",
"//xla/tests:test_utils",
"//xla/tests:xla_internal_test_main",
"//xla/tsl/lib/core:status_test_util",
"//xla/tsl/platform:errors",
"//xla/tsl/platform:statusor",
"//xla/tsl/platform:test",
"@com_google_absl//absl/base:no_destructor",
"@com_google_absl//absl/status",