Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703074301
  • Loading branch information
tensorflower-gardener committed Dec 5, 2024
1 parent 2e39667 commit 4c3aa84
Show file tree
Hide file tree
Showing 51 changed files with 201 additions and 18 deletions.
58 changes: 58 additions & 0 deletions third_party/xla/xla/hlo/transforms/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ cc_library(
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
"@local_tsl//tsl/platform:errors",
Expand Down Expand Up @@ -684,6 +685,9 @@ cc_library(
"//xla/hlo/pass:hlo_pass",
"//xla/service:shape_inference",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@local_tsl//tsl/platform:errors",
Expand Down Expand Up @@ -895,6 +899,9 @@ cc_library(
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/service:hlo_creation_utils",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:logging",
Expand Down Expand Up @@ -1052,6 +1059,7 @@ cc_library(
"//xla/service:hlo_creation_utils",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
Expand Down Expand Up @@ -1081,6 +1089,7 @@ cc_library(
"//xla:protobuf_util",
"//xla:shape_util",
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/service:shape_inference",
Expand All @@ -1105,12 +1114,14 @@ xla_cc_test(
":algebraic_simplifier",
":dot_merger",
"//xla:shape_util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/testlib:hlo_hardware_independent_test_base",
"//xla/service:pattern_matcher",
"//xla/service:pattern_matcher_gmock",
"//xla/tsl/lib/core:status_test_util",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest",
"@local_tsl//tsl/platform:statusor",
"@local_tsl//tsl/platform:test_main", # fixdeps: keep
],
Expand Down Expand Up @@ -1200,6 +1211,14 @@ cc_library(
"//xla/hlo/pass:hlo_pass",
"//xla/service:hlo_creation_utils",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
"@local_tsl//tsl/platform:errors",
],
)
Expand Down Expand Up @@ -1262,6 +1281,9 @@ cc_library(
"//xla:status_macros",
"//xla/hlo/ir:hlo",
"//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 Down Expand Up @@ -1303,6 +1325,8 @@ xla_cc_test(
"//xla/service:pattern_matcher",
"//xla/service:pattern_matcher_gmock",
"//xla/tsl/lib/core:status_test_util",
"@com_google_absl//absl/status",
"@com_google_googletest//:gtest",
"@local_tsl//tsl/platform:test_main",
],
)
Expand Down Expand Up @@ -1359,6 +1383,7 @@ cc_library(
"//xla:shape_util",
"//xla:status_macros",
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/hlo/analysis:hlo_dataflow_analysis",
"//xla/hlo/analysis:tuple_points_to_analysis",
"//xla/hlo/ir:hlo",
Expand Down Expand Up @@ -1419,11 +1444,14 @@ xla_cc_test(
":hlo_rematerialization_test_utils",
"//xla:shape_util",
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/utils:hlo_matchers",
"//xla/service:hlo_cost_analysis",
"//xla/tsl/lib/core:status_test_util",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest",
"@local_tsl//tsl/platform:statusor",
Expand All @@ -1447,6 +1475,7 @@ xla_cc_test(
"//xla/service:pattern_matcher_gmock",
"//xla/tests:literal_test_util",
"//xla/tsl/lib/core:status_test_util",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
"@local_tsl//tsl/platform:test_main",
Expand Down Expand Up @@ -1525,10 +1554,15 @@ cc_library(
"//xla:literal",
"//xla:shape_util",
"//xla:types",
"//xla:xla_data_proto_cc",
"//xla/hlo/evaluator:hlo_evaluator",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/hlo/utils:hlo_query",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@local_tsl//tsl/platform:errors",
],
)
Expand All @@ -1538,8 +1572,10 @@ xla_cc_test(
srcs = ["simplifiers/hlo_element_type_converter_test.cc"],
deps = [
":hlo_element_type_converter",
"//xla:xla_data_proto_cc",
"//xla/hlo/testlib:hlo_hardware_independent_test_base",
"//xla/hlo/utils:hlo_matchers",
"@com_google_googletest//:gtest",
"@local_tsl//tsl/platform:test_main",
],
)
Expand All @@ -1552,6 +1588,11 @@ cc_library(
"//xla:status_macros",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
],
)

Expand All @@ -1569,6 +1610,7 @@ xla_cc_test(
"//xla/hlo/utils:hlo_matchers",
"//xla/tests:literal_test_util",
"//xla/tsl/lib/core:status_test_util",
"@com_google_googletest//:gtest",
"@local_tsl//tsl/platform:test_main",
],
)
Expand Down Expand Up @@ -1684,6 +1726,10 @@ cc_library(
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"//xla/service:tuple_util",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
],
)

Expand All @@ -1694,6 +1740,8 @@ xla_cc_test(
":root_instruction_sinker",
"//xla/hlo/testlib:hlo_hardware_independent_test_base",
"//xla/hlo/utils:hlo_matchers",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest",
"@local_tsl//tsl/platform:test_main",
],
)
Expand Down Expand Up @@ -1741,6 +1789,7 @@ cc_library(
deps = [
"//xla:shape_util",
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"@com_google_absl//absl/container:flat_hash_set",
Expand Down Expand Up @@ -2010,6 +2059,7 @@ xla_cc_test(
"//xla:shape_util",
"//xla:test",
"//xla:test_helpers",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/testlib:hlo_hardware_independent_test_base",
"@com_google_absl//absl/status",
Expand Down Expand Up @@ -2225,10 +2275,12 @@ xla_cc_test(
deps = [
":result_caster",
"//xla:shape_util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/testlib:hlo_hardware_independent_test_base",
"//xla/hlo/utils:hlo_matchers",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest",
"@local_tsl//tsl/platform:statusor",
"@local_tsl//tsl/platform:test_main",
],
Expand Down Expand Up @@ -2293,6 +2345,8 @@ cc_library(
"//xla/service:gather_scatter_utils",
"//xla/service:hlo_creation_utils",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@local_tsl//tsl/platform:statusor",
],
)
Expand Down Expand Up @@ -2375,9 +2429,11 @@ cc_library(
deps = [
"//xla:shape_layout",
"//xla:shape_util",
"//xla:xla_data_proto_cc",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@local_tsl//tsl/platform:errors",
Expand Down Expand Up @@ -2408,6 +2464,8 @@ xla_cc_test(
deps = [
":gather_simplifier",
"//xla/hlo/testlib:hlo_hardware_independent_test_base",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest",
"@local_tsl//tsl/platform:test_main",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ limitations under the License.

#include "xla/hlo/transforms/simplifiers/batch_dot_simplification.h"

#include <cstdint>
#include <iterator>
#include <vector>

#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_set.h"
#include "absl/log/log.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ limitations under the License.

#include "xla/hlo/transforms/simplifiers/batch_dot_simplification.h"

#include <memory>
#include <string>

#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
#include "xla/hlo/testlib/hlo_hardware_independent_test_base.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ limitations under the License.

#include <optional>

#include "absl/container/flat_hash_set.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/pass/hlo_pass_interface.h"

namespace xla {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ limitations under the License.
==============================================================================*/
#include "xla/hlo/transforms/simplifiers/broadcast_canonicalizer.h"

#include <functional>
#include <memory>
#include <optional>

#include "xla/hlo/testlib/hlo_hardware_independent_test_base.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ limitations under the License.

#include "xla/hlo/transforms/simplifiers/conditional_canonicalizer.h"

#include "absl/container/flat_hash_set.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_opcode.h"
#include "xla/status_macros.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ limitations under the License.

#include <utility>

#include "absl/container/flat_hash_set.h"
#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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ limitations under the License.

#include "xla/hlo/transforms/simplifiers/conditional_canonicalizer.h"

#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_module.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ limitations under the License.

#include "xla/hlo/transforms/simplifiers/convert_mover.h"

#include <deque>
#include <vector>

#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_set.h"
#include "absl/container/inlined_vector.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ limitations under the License.

#include "xla/hlo/transforms/simplifiers/convert_mover.h"

#include <memory>

#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/strings/string_view.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ limitations under the License.

#include "xla/hlo/transforms/simplifiers/convert_operand_folder.h"

#include <memory>

#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/strings/string_view.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ limitations under the License.

#include "xla/hlo/transforms/simplifiers/convolution_group_converter.h"

#include <algorithm>
#include <cstdint>
#include <functional>
#include <memory>
#include <utility>
#include <vector>

#include "absl/container/flat_hash_set.h"
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/dfs_hlo_visitor_with_default.h"
#include "xla/hlo/ir/hlo_computation.h"
#include "xla/hlo/ir/hlo_instruction.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ limitations under the License.

#include <functional>

#include "absl/container/flat_hash_set.h"
#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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ limitations under the License.

#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_set.h"
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "xla/hlo/ir/dfs_hlo_visitor_with_default.h"
Expand Down
Loading

0 comments on commit 4c3aa84

Please sign in to comment.