Skip to content

Commit

Permalink
[HLO Componentization] Create pass sub-component
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 674391593
  • Loading branch information
sdasgup3 authored and Google-ML-Automation committed Sep 18, 2024
1 parent 9211481 commit a450fed
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion xla/backends/interpreter/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ cc_library(
"//xla/hlo/evaluator:hlo_evaluator",
"//xla/hlo/ir:hlo",
"//xla/hlo/ir:hlo_module_group",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/service:batchnorm_expander",
"//xla/service:cholesky_expander",
"//xla/service:compiler",
Expand All @@ -49,7 +50,6 @@ cc_library(
"//xla/service:executable",
"//xla/service:hlo_cost_analysis",
"//xla/service:hlo_module_config",
"//xla/service:hlo_pass_pipeline",
"//xla/service:layout_assignment",
"//xla/service:qr_expander",
"//xla/service:topk_rewriter",
Expand Down
2 changes: 1 addition & 1 deletion xla/backends/interpreter/compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ limitations under the License.
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_module_group.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/literal.h"
#include "xla/service/batchnorm_expander.h"
#include "xla/service/cholesky_expander.h"
Expand All @@ -41,7 +42,6 @@ limitations under the License.
#include "xla/service/eigh_expander.h"
#include "xla/service/executable.h"
#include "xla/service/hlo_cost_analysis.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/service/layout_assignment.h"
#include "xla/service/qr_expander.h"
#include "xla/service/topk_rewriter.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/hlo/transforms/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cc_library(
hdrs = ["hlo_constant_splitter.h"],
deps = [
"//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/container:inlined_vector",
Expand Down
2 changes: 1 addition & 1 deletion xla/hlo/transforms/hlo_constant_splitter.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_instruction.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
4 changes: 2 additions & 2 deletions xla/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,13 @@ cc_library(
"//xla:util",
"//xla/client:xla_computation",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/pjrt:mlir_to_hlo",
"//xla/pjrt/c:pjrt_c_api_custom_partitioner_extension_hdrs",
"//xla/pjrt/c:pjrt_c_api_hdrs",
"//xla/pjrt/c:pjrt_c_api_helpers",
"//xla/service:call_inliner",
"//xla/service:custom_call_sharding_helper",
"//xla/service:hlo_pass_pipeline",
"//xla/service/spmd:spmd_partitioner",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/container:flat_hash_map",
Expand Down Expand Up @@ -1160,6 +1160,7 @@ cc_library(
"//xla/ffi/api:c_api",
"//xla/hlo/ir:hlo",
"//xla/hlo/ir:hlo_module_group",
"//xla/hlo/pass:hlo_pass",
"//xla/pjrt:exceptions",
"//xla/pjrt:pjrt_executable",
"//xla/pjrt:status_casters",
Expand All @@ -1171,7 +1172,6 @@ cc_library(
"//xla/service:hlo_graph_dumper",
"//xla/service:hlo_module_config",
"//xla/service:hlo_parser",
"//xla/service:hlo_pass",
"//xla/service:hlo_proto_cc",
"//xla/service:name_uniquer",
"//xla/service:tuple_simplifier",
Expand Down
2 changes: 1 addition & 1 deletion xla/python/custom_partition_callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ 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/pjrt/c/pjrt_c_api_custom_partitioner_extension.h"
#include "xla/pjrt/c/pjrt_c_api_helpers.h"
#include "xla/pjrt/mlir_to_hlo.h"
#include "xla/service/call_inliner.h"
#include "xla/service/custom_call_sharding_helper.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/service/spmd/spmd_partitioner_util.h"
#include "xla/util.h"

Expand Down
2 changes: 1 addition & 1 deletion xla/python/xla_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ limitations under the License.
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_module_group.h"
#include "xla/hlo/ir/hlo_sharding.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/layout.h"
#include "xla/layout_util.h"
#include "xla/literal.h"
Expand All @@ -75,7 +76,6 @@ limitations under the License.
#include "xla/service/hlo_graph_dumper.h"
#include "xla/service/hlo_module_config.h"
#include "xla/service/hlo_parser.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/service/name_uniquer.h"
#include "xla/service/tuple_simplifier.h"
#include "xla/shape.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/gpu/fusions/triton/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ cc_library(
"//xla:shape_util",
"//xla:status_macros",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/hlo/utils:hlo_query",
"//xla/service:float_normalization",
"//xla/service:hlo_pass_pipeline",
"//xla/service/gpu:backend_configs_cc",
"//xla/service/gpu:gpu_device_info_for_tests",
"//xla/service/gpu:gpu_float_support",
Expand Down
2 changes: 1 addition & 1 deletion xla/service/gpu/fusions/triton/triton_test_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ limitations under the License.
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_instructions.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/hlo/utils/hlo_query.h"
#include "xla/primitive_util.h"
#include "xla/service/float_normalization.h"
Expand All @@ -47,7 +48,6 @@ limitations under the License.
#include "xla/service/gpu/gpu_float_support.h"
#include "xla/service/gpu/ir_emission_utils.h"
#include "xla/service/gpu/model/tiled_hlo_computation.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/status_macros.h"
#include "xla/stream_executor/device_description.h"
#include "xla/tests/filecheck.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/gpu/model/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ cc_library(
":gpu_performance_model",
":gpu_performance_model_base",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/service:hlo_cost_analysis",
"//xla/service:hlo_graph_dumper",
"//xla/service:hlo_pass",
"//xla/stream_executor:device_description",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status:statusor",
Expand Down
2 changes: 1 addition & 1 deletion xla/service/gpu/model/gpu_cost_model_stats_collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ 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_interface.h"
#include "xla/service/gpu/model/gpu_hlo_cost_analysis.h"
#include "xla/service/hlo_cost_analysis.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/stream_executor/device_description.h"

namespace xla {
Expand Down
2 changes: 1 addition & 1 deletion xla/service/gpu/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ xla_test(
deps = [
":gpu_codegen_test",
"//xla:shape_util",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/service:hlo_cost_analysis",
"//xla/service:hlo_pass_pipeline",
"//xla/service/gpu:gpu_device_info_for_tests",
"//xla/service/gpu/transforms:fusion_merger",
"//xla/service/gpu/transforms:instruction_fusion",
Expand Down
2 changes: 1 addition & 1 deletion xla/service/gpu/tests/gpu_fusion_pipeline_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ limitations under the License.
#include <utility>

#include "absl/strings/string_view.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/service/gpu/gpu_device_info_for_tests.h"
#include "xla/service/gpu/tests/gpu_codegen_test.h"
#include "xla/service/gpu/transforms/fusion_merger.h"
#include "xla/service/gpu/transforms/instruction_fusion.h"
#include "xla/service/gpu/transforms/multi_output_fusion.h"
#include "xla/service/hlo_cost_analysis.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/shape.h"
#include "xla/shape_util.h"
#include "xla/stream_executor/device_description.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2388,10 +2388,10 @@ xla_test(
"//xla:error_spec",
"//xla:util",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/service:collective_pipeliner",
"//xla/service:hlo_dce",
"//xla/service:hlo_parser",
"//xla/service:hlo_pass_pipeline",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest_main",
Expand Down
2 changes: 1 addition & 1 deletion xla/tests/collective_pipeliner_execution_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ 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/hlo/pass/hlo_pass_pipeline.h"
#include "xla/service/collective_pipeliner.h"
#include "xla/service/hlo_dce.h"
#include "xla/service/hlo_parser.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/tests/hlo_test_base.h"
#include "xla/util.h"

Expand Down
6 changes: 3 additions & 3 deletions xla/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ cc_library(
":hlo_module_loader",
"//xla:xla_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/service:hlo_pass_pipeline",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/tsl/util:command_line_flags",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
Expand All @@ -345,9 +345,9 @@ cc_library(
hdrs = ["hlo_expand.h"],
deps = [
"//xla:xla_data_proto_cc",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/service:batchnorm_expander",
"//xla/service:cholesky_expander",
"//xla/service:hlo_pass_pipeline",
"//xla/service:hlo_proto_cc",
"//xla/service:hlo_verifier",
"//xla/service:rng_bit_generator_expander",
Expand Down Expand Up @@ -684,10 +684,10 @@ cc_library(
"//xla:shape_util",
"//xla:util",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/service:call_graph",
"//xla/service:collective_ops_utils",
"//xla/service:hlo_dce",
"//xla/service:hlo_pass",
"//xla/service:tuple_util",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log",
Expand Down
2 changes: 1 addition & 1 deletion xla/tools/hlo_control_flow_flattening.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,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_interface.h"
#include "xla/service/call_graph.h"
#include "xla/service/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/tools/hlo_expand.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ limitations under the License.

#include <vector>

#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/service/batchnorm_expander.h"
#include "xla/service/cholesky_expander.h"
#include "xla/service/hlo.pb.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/service/hlo_verifier.h"
#include "xla/service/rng_bit_generator_expander.h"
#include "xla/service/rng_expander.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/tools/hlo_expand.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
#include <string>
#include <vector>

#include "xla/service/hlo_pass_pipeline.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/tsl/util/command_line_flags.h"

namespace xla {
Expand Down
2 changes: 1 addition & 1 deletion xla/tools/hlo_expand_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/tools/hlo_expand.h"
#include "xla/tools/hlo_module_loader.h"
#include "xla/tsl/util/command_line_flags.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/tools/multihost_hlo_runner/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ cc_library(
"//xla/client:executable_build_options",
"//xla/client:xla_computation",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
"//xla/pjrt:host_memory_spaces",
"//xla/pjrt:pjrt_client",
"//xla/pjrt:pjrt_compiler",
Expand All @@ -147,7 +148,6 @@ cc_library(
"//xla/service:computation_placer_hdr",
"//xla/service:hlo_module_config",
"//xla/service:hlo_parser",
"//xla/service:hlo_pass_pipeline",
"//xla/service:hlo_proto_cc",
"//xla/tests:test_utils",
"//xla/tools:hlo_control_flow_flattening",
Expand Down
2 changes: 1 addition & 1 deletion xla/tools/multihost_hlo_runner/functional_hlo_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ limitations under the License.
#include "xla/hlo/ir/hlo_input_output_alias_config.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_sharding.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"
#include "xla/layout.h"
#include "xla/literal.h"
#include "xla/literal_util.h"
Expand All @@ -57,7 +58,6 @@ limitations under the License.
#include "xla/service/hlo.pb.h"
#include "xla/service/hlo_module_config.h"
#include "xla/service/hlo_parser.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/shape_util.h"
#include "xla/status_macros.h"
#include "xla/tests/test_utils.h"
Expand Down

0 comments on commit a450fed

Please sign in to comment.