Skip to content

Commit

Permalink
[HLO Componentization] Create pass sub-component
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 674391625
  • Loading branch information
sdasgup3 authored and Google-ML-Automation committed Sep 17, 2024
1 parent 8ace4ee commit 6c19995
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 30 deletions.
30 changes: 15 additions & 15 deletions xla/service/spmd/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ cc_library(
"//xla/hlo/ir:hlo",
"//xla/hlo/ir:hlo_reachability",
"//xla/hlo/ir:tile_assignment",
"//xla/hlo/pass:hlo_pass",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/hlo/utils:hlo_query",
"//xla/hlo/utils:hlo_sharding_util",
"//xla/service:call_graph",
Expand All @@ -63,8 +65,6 @@ cc_library(
"//xla/service:hlo_dce",
"//xla/service:hlo_lexer",
"//xla/service:hlo_module_config",
"//xla/service:hlo_pass",
"//xla/service:hlo_pass_pipeline",
"//xla/service:host_memory_offload_annotations_hdr",
"//xla/service:pattern_matcher",
"//xla/service:shape_inference",
Expand Down Expand Up @@ -100,10 +100,10 @@ xla_cc_test(
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/hlo/utils:hlo_matchers",
"//xla/hlo/utils:hlo_sharding_util",
"//xla/service:hlo_module_config",
"//xla/service:hlo_pass_pipeline",
"//xla/service:hlo_verifier",
"//xla/service:sharding_format_picker",
"//xla/tests:hlo_test_base",
Expand All @@ -129,8 +129,8 @@ xla_cc_test(
":canonicalize_all_gather_for_cse",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/hlo/utils:hlo_matchers",
"//xla/service:hlo_pass_pipeline",
"//xla/tests:hlo_test_base",
"//xla/tests:xla_internal_test_main",
"@com_google_absl//absl/status",
Expand Down Expand Up @@ -159,8 +159,8 @@ cc_library(
"//xla:shape_util",
"//xla:util",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/hlo/utils:hlo_query",
"//xla/service:hlo_pass",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
Expand All @@ -177,7 +177,7 @@ xla_cc_test(
":schedule_aware_collective_ops_cse",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/service:hlo_pass_pipeline",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/tests:hlo_test_base",
"//xla/tests:xla_internal_test_main",
"@com_google_absl//absl/status:statusor",
Expand All @@ -195,7 +195,7 @@ cc_library(
deps = [
"//xla:shape_util",
"//xla/hlo/ir:hlo",
"//xla/service:hlo_pass",
"//xla/hlo/pass:hlo_pass",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log",
Expand All @@ -213,8 +213,8 @@ xla_cc_test(
":spmd_prepare",
"//xla:util",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/hlo/utils:hlo_matchers",
"//xla/service:hlo_pass_pipeline",
"//xla/tests:hlo_test_base",
"//xla/tests:xla_internal_test_main",
"@com_google_absl//absl/status:statusor",
Expand All @@ -232,9 +232,9 @@ cc_library(
deps = [
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/hlo/utils:hlo_sharding_util",
"//xla/service:call_graph",
"//xla/service:hlo_pass",
"//xla/service:pattern_matcher",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status:statusor",
Expand All @@ -253,8 +253,8 @@ cc_library(
"//xla:status_macros",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/service:call_graph",
"//xla/service:hlo_pass",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:string_view",
Expand All @@ -270,9 +270,9 @@ xla_cc_test(
"//xla:xla_data_proto_cc",
"//xla:xla_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/hlo/utils:hlo_matchers",
"//xla/service:hlo_module_config",
"//xla/service:hlo_pass_pipeline",
"//xla/service:hlo_verifier",
"//xla/service:rng_expander",
"//xla/service:sharding_propagation",
Expand All @@ -295,7 +295,7 @@ cc_library(
"//xla:shape_util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/service:hlo_pass",
"//xla/hlo/pass:hlo_pass",
"//xla/service:while_loop_analysis",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/container:flat_hash_map",
Expand Down Expand Up @@ -336,7 +336,7 @@ cc_library(
deps = [
"//xla:xla_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/service:hlo_pass",
"//xla/hlo/pass:hlo_pass",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
Expand Down Expand Up @@ -369,7 +369,7 @@ cc_library(
],
deps = [
"//xla/hlo/ir:hlo",
"//xla/service:hlo_pass",
"//xla/hlo/pass:hlo_pass",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
Expand All @@ -383,8 +383,8 @@ xla_cc_test(
deps = [
":whole_graph_manual_pass",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/hlo/utils:hlo_matchers",
"//xla/service:hlo_pass_pipeline",
"//xla/tests:hlo_test_base",
"//xla/tests:xla_internal_test_main",
"@com_google_absl//absl/status",
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/canonicalize_all_gather_for_cse.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/hlo/pass/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/canonicalize_all_gather_for_cse_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ limitations under the License.
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/hlo/utils/hlo_matchers.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/tests/hlo_test_base.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/collective_permute_motion.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/hlo/pass/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/partition_assignment.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/hlo/pass/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/schedule_aware_collective_ops_cse.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/hlo/pass/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/schedule_aware_collective_ops_cse_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/tests/hlo_test_base.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/spmd_partitioner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ limitations under the License.
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/ir/hlo_sharding.h"
#include "xla/hlo/ir/tile_assignment.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/hlo/utils/hlo_query.h"
#include "xla/hlo/utils/hlo_sharding_util.h"
#include "xla/layout_util.h"
Expand All @@ -61,7 +62,6 @@ limitations under the License.
#include "xla/service/hlo_cse.h"
#include "xla/service/hlo_dce.h"
#include "xla/service/hlo_module_config.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/service/shape_inference.h"
#include "xla/service/spmd/custom_call_handler.h"
#include "xla/service/spmd/spmd_partitioner_util.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/spmd_partitioner.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ limitations under the License.
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/ir/hlo_sharding.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/literal.h"
#include "xla/service/call_graph.h"
#include "xla/service/custom_call_sharding_helper.h"
#include "xla/service/dot_as_convolution_util.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/shape.h"
#include "xla/xla_data.pb.h"

Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/spmd_partitioner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ limitations under the License.
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/ir/hlo_sharding.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/hlo/utils/hlo_matchers.h"
#include "xla/hlo/utils/hlo_sharding_util.h"
#include "xla/layout_util.h"
#include "xla/service/hlo_module_config.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/service/hlo_verifier.h"
#include "xla/service/sharding_format_picker.h"
#include "xla/service/spmd/spmd_prepare.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/spmd_prepare.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/hlo/pass/hlo_pass_interface.h"

namespace xla {
namespace spmd {
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/spmd_prepare_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ limitations under the License.
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/hlo/utils/hlo_matchers.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/tests/hlo_test_base.h"
#include "xla/util.h"
#include "tsl/platform/errors.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/stateful_rng_spmd_partitioner.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ limitations under the License.
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/service/call_graph.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/service/spmd/spmd_partitioner.h"

namespace xla {
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/stateful_rng_spmd_partitioner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ limitations under the License.
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/hlo/utils/hlo_matchers.h"
#include "xla/service/hlo_module_config.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/service/hlo_verifier.h"
#include "xla/service/rng_expander.h"
#include "xla/service/sharding_propagation.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/whole_graph_manual_pass.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/hlo/pass/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/spmd/whole_graph_manual_pass_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ limitations under the License.
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/hlo/utils/hlo_matchers.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/tests/hlo_test_base.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"
Expand Down

0 comments on commit 6c19995

Please sign in to comment.