Skip to content

Commit 63855b6

Browse files
sdasgup3tensorflower-gardener
authored andcommitted
[HLO Componentization] Create hlo/builder sub-component (Phase II).
This CL takes care of 1. Migrating external projects dependencies from xla/client --> xla/hlo/builder Phase I takes care of 1. Migrating xla/translate --> xla/hlo/translate 2. Setting up build aliases in xla/translate ensuring external dependencies are still satisfied. PiperOrigin-RevId: 682530762
1 parent ad0f360 commit 63855b6

15 files changed

+27
-27
lines changed

third_party/xla/xla/pjrt/BUILD

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ cc_library(
212212
"//xla:shape_util",
213213
"//xla:util",
214214
"//xla:xla_data_proto_cc",
215-
"//xla/client:xla_computation",
215+
"//xla/hlo/builder:xla_computation",
216216
"//xla/hlo/ir:hlo",
217217
"//xla/service:computation_placer_hdr",
218218
"//xla/service:hlo_cost_analysis",
@@ -245,8 +245,8 @@ cc_library(
245245
"//xla:shape_util",
246246
"//xla:test",
247247
"//xla:xla_data_proto_cc",
248-
"//xla/client:xla_builder",
249-
"//xla/client:xla_computation",
248+
"//xla/hlo/builder:xla_builder",
249+
"//xla/hlo/builder:xla_computation",
250250
"//xla/service:hlo_parser",
251251
"//xla/tests:literal_test_util",
252252
"@com_google_absl//absl/status:statusor",
@@ -330,7 +330,7 @@ cc_library(
330330
":metrics",
331331
":pjrt_device_description",
332332
":pjrt_executable",
333-
"//xla/client:xla_computation",
333+
"//xla/hlo/builder:xla_computation",
334334
"@com_google_absl//absl/container:flat_hash_map",
335335
"@com_google_absl//absl/log",
336336
"@com_google_absl//absl/status",
@@ -350,7 +350,7 @@ xla_cc_test(
350350
":pjrt_client",
351351
":pjrt_compiler",
352352
":pjrt_device_description",
353-
"//xla/client:xla_computation",
353+
"//xla/hlo/builder:xla_computation",
354354
"//xla/tsl/lib/monitoring:cell_reader",
355355
"@com_google_absl//absl/container:flat_hash_map",
356356
"@com_google_absl//absl/log",
@@ -382,7 +382,7 @@ cc_library(
382382
"//xla:util",
383383
"//xla:xla_data_proto_cc",
384384
"//xla/client:executable_build_options",
385-
"//xla/client:xla_computation",
385+
"//xla/hlo/builder:xla_computation",
386386
"//xla/hlo/ir:hlo",
387387
"//xla/service:computation_placer",
388388
"//xla/service:hlo_proto_cc",
@@ -503,7 +503,7 @@ cc_library(
503503
"//xla:xla_data_proto_cc",
504504
"//xla/client:executable_build_options",
505505
"//xla/client:local_client",
506-
"//xla/client:xla_computation",
506+
"//xla/hlo/builder:xla_computation",
507507
"//xla/hlo/ir:hlo",
508508
"//xla/pjrt/distributed:protocol_proto_cc",
509509
"//xla/service:compiler",
@@ -562,7 +562,7 @@ xla_cc_test(
562562
"//xla:test",
563563
"//xla:xla_data_proto_cc",
564564
"//xla/client:client_library",
565-
"//xla/client:xla_builder",
565+
"//xla/hlo/builder:xla_builder",
566566
"//xla/service:cpu_plugin",
567567
"//xla/service:platform_util",
568568
"//xla/tsl/concurrency:async_value",
@@ -597,7 +597,7 @@ cc_library(
597597
deps = [
598598
"//xla:debug_options_flags",
599599
"//xla:util",
600-
"//xla/client:xla_computation",
600+
"//xla/hlo/builder:xla_computation",
601601
"//xla/hlo/translate/mhlo_to_hlo:mlir_hlo_to_hlo",
602602
"//xla/mlir/utils:error_util",
603603
"//xla/mlir_hlo:hlo_dialect_registration",
@@ -789,7 +789,7 @@ cc_library(
789789
"//xla:util",
790790
"//xla:xla_data_proto_cc",
791791
"//xla:xla_proto_cc",
792-
"//xla/client:xla_computation",
792+
"//xla/hlo/builder:xla_computation",
793793
"//xla/hlo/ir:hlo",
794794
"//xla/hlo/translate/mhlo_to_hlo:mlir_hlo_to_hlo",
795795
"//xla/mlir_hlo:mhlo_passes",
@@ -841,7 +841,7 @@ xla_cc_test(
841841
":pjrt_executable",
842842
"//xla:literal_util",
843843
"//xla:shape_util",
844-
"//xla/client:xla_builder",
844+
"//xla/hlo/builder:xla_builder",
845845
"//xla/pjrt/c:pjrt_c_api_cpu_internal",
846846
"//xla/tests:literal_test_util",
847847
"//xla/tsl/lib/core:status_test_util",
@@ -866,7 +866,7 @@ cc_library(
866866
"//xla:literal",
867867
"//xla:shape_util",
868868
"//xla:util",
869-
"//xla/client:xla_computation",
869+
"//xla/hlo/builder:xla_computation",
870870
"//xla/hlo/ir:hlo",
871871
"//xla/service:computation_placer_hdr",
872872
"//xla/service:hlo_cost_analysis",

third_party/xla/xla/pjrt/mlir_to_hlo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ limitations under the License.
1919
#include "absl/status/status.h"
2020
#include "absl/strings/string_view.h"
2121
#include "mlir/IR/BuiltinOps.h"
22-
#include "xla/client/xla_computation.h"
22+
#include "xla/hlo/builder/xla_computation.h"
2323

2424
namespace xla {
2525

third_party/xla/xla/pjrt/pjrt_c_api_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ limitations under the License.
4141
#include "mlir/IR/OwningOpRef.h"
4242
#include "mlir/Pass/PassManager.h"
4343
#include "mlir/Support/LogicalResult.h"
44-
#include "xla/client/xla_computation.h"
44+
#include "xla/hlo/builder/xla_computation.h"
4545
#include "xla/hlo/ir/hlo_module.h"
4646
#include "xla/hlo/translate/mhlo_to_hlo/mlir_hlo_to_hlo.h"
4747
#include "xla/layout.h"

third_party/xla/xla/pjrt/pjrt_c_api_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ limitations under the License.
3737
#include "absl/synchronization/mutex.h"
3838
#include "absl/types/span.h"
3939
#include "mlir/IR/BuiltinOps.h"
40-
#include "xla/client/xla_computation.h"
40+
#include "xla/hlo/builder/xla_computation.h"
4141
#include "xla/hlo/ir/hlo_module.h"
4242
#include "xla/layout.h"
4343
#include "xla/literal.h"

third_party/xla/xla/pjrt/pjrt_c_api_client_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ limitations under the License.
2424
#include <gmock/gmock.h>
2525
#include <gtest/gtest.h>
2626
#include "absl/status/status.h"
27-
#include "xla/client/xla_builder.h"
27+
#include "xla/hlo/builder/xla_builder.h"
2828
#include "xla/literal_util.h"
2929
#include "xla/pjrt/c/pjrt_c_api_cpu_internal.h"
3030
#include "xla/pjrt/pjrt_api.h"

third_party/xla/xla/pjrt/pjrt_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ limitations under the License.
4141
#include "absl/synchronization/notification.h"
4242
#include "absl/types/span.h"
4343
#include "mlir/IR/BuiltinOps.h"
44-
#include "xla/client/xla_computation.h"
44+
#include "xla/hlo/builder/xla_computation.h"
4545
#include "xla/layout.h"
4646
#include "xla/literal.h"
4747
#include "xla/pjrt/pjrt_common.h"

third_party/xla/xla/pjrt/pjrt_client_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ limitations under the License.
2525
#include "absl/status/statusor.h"
2626
#include "absl/synchronization/blocking_counter.h"
2727
#include "absl/types/span.h"
28-
#include "xla/client/xla_builder.h"
29-
#include "xla/client/xla_computation.h"
28+
#include "xla/hlo/builder/xla_builder.h"
29+
#include "xla/hlo/builder/xla_computation.h"
3030
#include "xla/pjrt/pjrt_client.h"
3131
#include "xla/service/hlo_parser.h"
3232
#include "xla/shape.h"

third_party/xla/xla/pjrt/pjrt_compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ limitations under the License.
2626
#include "absl/status/statusor.h"
2727
#include "absl/strings/string_view.h"
2828
#include "mlir/IR/BuiltinOps.h"
29-
#include "xla/client/xla_computation.h"
29+
#include "xla/hlo/builder/xla_computation.h"
3030
#include "xla/pjrt/pjrt_device_description.h"
3131
#include "xla/pjrt/pjrt_executable.h"
3232
#include "tsl/platform/fingerprint.h"

third_party/xla/xla/pjrt/pjrt_compiler_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ limitations under the License.
2626
#include "absl/log/log.h"
2727
#include "absl/status/statusor.h"
2828
#include "absl/strings/string_view.h"
29-
#include "xla/client/xla_computation.h"
29+
#include "xla/hlo/builder/xla_computation.h"
3030
#include "xla/pjrt/metrics.h"
3131
#include "xla/pjrt/pjrt_client.h"
3232
#include "xla/pjrt/pjrt_device_description.h"

third_party/xla/xla/pjrt/pjrt_stream_executor_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ limitations under the License.
9797
#include "mlir/IR/BuiltinOps.h"
9898
#include "xla/client/executable_build_options.h"
9999
#include "xla/client/local_client.h"
100-
#include "xla/client/xla_computation.h"
101100
#include "xla/executable_run_options.h"
101+
#include "xla/hlo/builder/xla_computation.h"
102102
#include "xla/layout.h"
103103
#include "xla/literal.h"
104104
#include "xla/pjrt/distributed/protocol.pb.h"

0 commit comments

Comments
 (0)