Skip to content

Commit

Permalink
[HLO Componentization] Create pass sub-component
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 675287627
  • Loading branch information
sdasgup3 authored and Google-ML-Automation committed Sep 16, 2024
1 parent 6653168 commit dc284c4
Show file tree
Hide file tree
Showing 117 changed files with 237 additions and 241 deletions.
242 changes: 120 additions & 122 deletions xla/service/BUILD

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion xla/service/add_original_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
#define XLA_SERVICE_ADD_ORIGINAL_VALUE_H_

#include "absl/status/statusor.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/algebraic_simplifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ limitations under the License.
#include "xla/hlo/ir/hlo_instructions.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/literal.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/shape.h"
#include "xla/shape_util.h"
#include "xla/util.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/algebraic_simplifier_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ 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_fix.h"
#include "xla/layout_util.h"
#include "xla/literal.h"
#include "xla/literal_util.h"
#include "xla/primitive_util.h"
#include "xla/service/hlo_creation_utils.h"
#include "xla/service/hlo_parser.h"
#include "xla/service/hlo_pass_fix.h"
#include "xla/service/host_memory_offload_annotations.h"
#include "xla/service/layout_assignment.h"
#include "xla/service/pattern_matcher.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/all_gather_broadcast_reorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.

#include "absl/status/statusor.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/all_gather_combiner.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/service/hlo_domain_map.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/xla_data.pb.h"

namespace xla {
Expand Down
2 changes: 1 addition & 1 deletion xla/service/all_gather_decomposer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ limitations under the License.
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_instructions.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/service/collective_ops_utils.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/shape.h"

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

namespace xla {
Expand Down
2 changes: 1 addition & 1 deletion xla/service/all_reduce_contiguous.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.

#include "absl/status/statusor.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/all_reduce_folder.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.

#include "absl/status/statusor.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/all_reduce_reassociate.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.

#include "absl/status/statusor.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/all_reduce_simplifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.

#include "absl/status/statusor.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/ar_crs_combiner.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,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/service/async_collective_creator.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.
#include <utility>
#include <vector>

#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/batch_dot_simplification.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
#define XLA_SERVICE_BATCH_DOT_SIMPLIFICATION_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 {
// Simplifies batch dot operations.
Expand Down
2 changes: 1 addition & 1 deletion xla/service/batchnorm_expander.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
#include <utility>

#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
1 change: 0 additions & 1 deletion xla/service/batchnorm_expander_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ limitations under the License.
#include "xla/layout_util.h"
#include "xla/literal.h"
#include "xla/service/hlo_parser.h"
#include "xla/service/hlo_pass_fix.h"
#include "xla/shape_util.h"
#include "xla/test.h"
#include "xla/tests/hlo_test_base.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/bfloat16_conversion_folding.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ limitations under the License.
#define XLA_SERVICE_BFLOAT16_CONVERSION_FOLDING_H_

#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/service/float_support.h"
#include "xla/service/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/bfloat16_propagation.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ limitations under the License.
#include "absl/container/flat_hash_set.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/float_support.h"
#include "xla/service/hlo_dataflow_analysis.h"
#include "xla/service/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/broadcast_canonicalizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.

#include <optional>

#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/call_inliner.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,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
2 changes: 1 addition & 1 deletion xla/service/change_op_data_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.
#include <memory>
#include <utility>

#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/collective_permute_decomposer.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
#define XLA_SERVICE_COLLECTIVE_PERMUTE_DECOMPOSER_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/collective_pipeliner.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/collective_pipeliner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ limitations under the License.
#include "xla/hlo/ir/hlo_instructions.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_parser.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/service/host_memory_offload_annotations.h"
#include "xla/tests/filecheck.h"
#include "xla/tests/hlo_test_base.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/collective_quantizer.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/collective_transformation_reorderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ limitations under the License.
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_instructions.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/collectives_schedule_linearizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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"
#include "xla/util.h"

namespace xla {
Expand Down
2 changes: 1 addition & 1 deletion xla/service/conditional_canonicalizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
#include <utility>

#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/conditional_code_motion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ 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/literal.h"
#include "xla/map_util.h"
#include "xla/service/hlo_cse.h"
#include "xla/service/hlo_dce.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/service/hlo_verifier.h"
#include "xla/service/tuple_simplifier.h"
#include "xla/shape.h"
Expand Down
2 changes: 1 addition & 1 deletion xla/service/conditional_code_motion.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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/conditional_simplifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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/conditional_to_select.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
#define XLA_SERVICE_CONDITIONAL_TO_SELECT_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/convert_async_collectives_to_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
#include "absl/types/span.h"
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/util.h"

namespace xla {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#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/convert_mover.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/convolution_group_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.

#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"
#include "xla/status_macros.h"

namespace xla {
Expand Down
2 changes: 1 addition & 1 deletion xla/service/copy_insertion.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ 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_alias_analysis.h"
#include "xla/service/hlo_dataflow_analysis.h"
#include "xla/service/hlo_pass_interface.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/defuser.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
#include <utility>

#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/service/despecializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ limitations under the License.
#include "xla/hlo/ir/hlo_casting_utils.h"
#include "xla/hlo/ir/hlo_instructions.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/service/hlo_pass_interface.h"
#include "xla/service/hlo_pass_pipeline.h"
#include "xla/hlo/pass/hlo_pass_interface.h"
#include "xla/hlo/pass/hlo_pass_pipeline.h"

namespace xla {

Expand Down
2 changes: 1 addition & 1 deletion xla/service/dot_decomposer.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/dot_dimension_merger.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
Loading

0 comments on commit dc284c4

Please sign in to comment.