File tree 16 files changed +18
-20
lines changed
hlo/transforms/collectives 16 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ xla_cc_test(
83
83
"//xla:util" ,
84
84
"//xla/hlo/ir:hlo" ,
85
85
"//xla/hlo/testlib:hlo_hardware_independent_test_base" ,
86
+ "//xla/hlo/testlib:pattern_matcher_gmock" ,
86
87
"//xla/service:pattern_matcher" ,
87
- "//xla/service:pattern_matcher_gmock" ,
88
88
"//xla/tsl/lib/core:status_test_util" ,
89
89
"@com_google_absl//absl/strings:string_view" ,
90
90
"@com_google_googletest//:gtest_main" ,
@@ -189,11 +189,10 @@ xla_cc_test(
189
189
srcs = ["collectives_schedule_linearizer_test.cc" ],
190
190
deps = [
191
191
":collectives_schedule_linearizer" ,
192
- "//xla:test" ,
193
- "//xla:test_helpers" ,
194
192
"//xla:xla_data_proto_cc" ,
195
193
"//xla/hlo/ir:hlo" ,
196
194
"//xla/hlo/testlib:hlo_hardware_independent_test_base" ,
195
+ "//xla/hlo/testlib:test_helpers" ,
197
196
"//xla/service:pattern_matcher" ,
198
197
"@com_google_googletest//:gtest_main" ,
199
198
],
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ limitations under the License.
25
25
#include " xla/hlo/ir/hlo_opcode.h"
26
26
#include " xla/hlo/ir/hlo_schedule.h"
27
27
#include " xla/hlo/testlib/hlo_hardware_independent_test_base.h"
28
+ #include " xla/hlo/testlib/pattern_matcher_gmock.h"
28
29
#include " xla/service/pattern_matcher.h"
29
- #include " xla/service/pattern_matcher_gmock.h"
30
30
#include " xla/side_effect_util.h"
31
31
#include " xla/tsl/lib/core/status_test_util.h"
32
32
#include " xla/util.h"
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ limitations under the License.
19
19
#include " xla/hlo/ir/hlo_instruction.h"
20
20
#include " xla/hlo/ir/hlo_module.h"
21
21
#include " xla/hlo/testlib/hlo_hardware_independent_test_base.h"
22
+ #include " xla/hlo/testlib/test_helpers.h"
22
23
#include " xla/service/pattern_matcher.h"
23
- #include " xla/test.h"
24
- #include " xla/test_helpers.h"
25
24
#include " xla/xla_data.pb.h"
26
25
27
26
namespace xla {
Original file line number Diff line number Diff line change @@ -167,14 +167,14 @@ xla_cc_test(
167
167
"//xla:literal_util" ,
168
168
"//xla:shape_util" ,
169
169
"//xla:status_macros" ,
170
- "//xla:test" ,
171
170
"//xla:types" ,
172
171
"//xla:util" ,
173
172
"//xla:xla_data_proto_cc" ,
174
173
"//xla/ffi" ,
175
174
"//xla/ffi:ffi_api" ,
176
175
"//xla/hlo/builder:xla_computation" ,
177
176
"//xla/hlo/parser:hlo_parser" ,
177
+ "//xla/hlo/testlib:test" ,
178
178
"//xla/pjrt:host_memory_spaces" ,
179
179
"//xla/pjrt:mlir_to_hlo" ,
180
180
"//xla/pjrt:pjrt_client" ,
@@ -390,9 +390,9 @@ xla_test(
390
390
":se_gpu_pjrt_compiler_impl" ,
391
391
"//xla:literal" ,
392
392
"//xla:literal_util" ,
393
- "//xla:test" ,
394
393
"//xla/hlo/builder:xla_computation" ,
395
394
"//xla/hlo/parser:hlo_parser" ,
395
+ "//xla/hlo/testlib:test" ,
396
396
"//xla/mlir_hlo" ,
397
397
"//xla/pjrt:pjrt_client" ,
398
398
"//xla/pjrt:pjrt_compiler" ,
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ limitations under the License.
42
42
#include " xla/ffi/ffi_api.h"
43
43
#include " xla/hlo/builder/xla_computation.h"
44
44
#include " xla/hlo/parser/hlo_parser.h"
45
+ #include " xla/hlo/testlib/test.h"
45
46
#include " xla/layout.h"
46
47
#include " xla/literal.h"
47
48
#include " xla/literal_util.h"
@@ -63,7 +64,6 @@ limitations under the License.
63
64
#include " xla/status_macros.h"
64
65
#include " xla/stream_executor/device_memory.h"
65
66
#include " xla/stream_executor/stream.h"
66
- #include " xla/test.h"
67
67
#include " xla/tests/literal_test_util.h"
68
68
#include " xla/tsl/lib/core/status_test_util.h"
69
69
#include " xla/tsl/platform/subprocess.h"
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ limitations under the License.
29
29
#include " mlir/Parser/Parser.h"
30
30
#include " xla/hlo/builder/xla_computation.h"
31
31
#include " xla/hlo/parser/hlo_parser.h"
32
+ #include " xla/hlo/testlib/test.h"
32
33
#include " xla/literal.h"
33
34
#include " xla/literal_util.h"
34
35
#include " xla/mlir_hlo/mhlo/IR/hlo_ops.h"
@@ -38,7 +39,6 @@ limitations under the License.
38
39
#include " xla/pjrt/pjrt_compiler.h"
39
40
#include " xla/pjrt/pjrt_executable.h"
40
41
#include " xla/pjrt/plugin/xla_gpu/xla_gpu_client_options.h"
41
- #include " xla/test.h"
42
42
#include " xla/tests/literal_test_util.h"
43
43
#include " tsl/platform/status_matchers.h"
44
44
#include " tsl/platform/statusor.h"
Original file line number Diff line number Diff line change @@ -564,9 +564,9 @@ xla_test(
564
564
"//xla:xla_proto_cc" ,
565
565
"//xla/hlo/ir:hlo" ,
566
566
"//xla/hlo/testlib:filecheck" ,
567
+ "//xla/hlo/testlib:pattern_matcher_gmock" ,
567
568
"//xla/hlo/testlib:verified_hlo_module" ,
568
569
"//xla/service:pattern_matcher" ,
569
- "//xla/service:pattern_matcher_gmock" ,
570
570
"//xla/service/gpu:backend_configs_cc" ,
571
571
"//xla/service/gpu:gpu_device_info_for_tests" ,
572
572
"//xla/service/gpu/model:tiled_hlo_instruction_or_computation" ,
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ limitations under the License.
35
35
#include " xla/hlo/ir/hlo_instruction.h"
36
36
#include " xla/hlo/ir/hlo_instructions.h"
37
37
#include " xla/hlo/testlib/filecheck.h"
38
+ #include " xla/hlo/testlib/pattern_matcher_gmock.h"
38
39
#include " xla/hlo/testlib/verified_hlo_module.h"
39
40
#include " xla/service/gpu/backend_configs.pb.h"
40
41
#include " xla/service/gpu/fusions/triton/triton_fusion_emitter.h"
@@ -43,7 +44,6 @@ limitations under the License.
43
44
#include " xla/service/gpu/model/tiled_hlo_computation.h"
44
45
#include " xla/service/gpu/tests/gpu_codegen_test.h"
45
46
#include " xla/service/pattern_matcher.h"
46
- #include " xla/service/pattern_matcher_gmock.h"
47
47
#include " xla/stream_executor/device_description.h"
48
48
#include " xla/tsl/lib/core/status_test_util.h"
49
49
#include " xla/tsl/platform/env.h"
Original file line number Diff line number Diff line change @@ -338,10 +338,10 @@ xla_cc_test(
338
338
":ir_array" ,
339
339
":llvm_util" ,
340
340
"//xla:shape_util" ,
341
- "//xla:test" ,
342
341
"//xla:xla_data_proto_cc" ,
343
342
"//xla/hlo/testlib:filecheck" ,
344
343
"//xla/tests:xla_internal_test_main" ,
344
+ "@com_google_googletest//:gtest_main" ,
345
345
"@llvm-project//llvm:Support" ,
346
346
"@llvm-project//llvm:ir_headers" ,
347
347
"@tsl//tsl/platform:statusor" ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ limitations under the License.
17
17
18
18
#include < string>
19
19
20
+ #include < gtest/gtest.h>
20
21
#include " llvm/ADT/ArrayRef.h"
21
22
#include " llvm/IR/Argument.h"
22
23
#include " llvm/IR/BasicBlock.h"
@@ -29,7 +30,6 @@ limitations under the License.
29
30
#include " xla/service/llvm_ir/llvm_util.h"
30
31
#include " xla/shape.h"
31
32
#include " xla/shape_util.h"
32
- #include " xla/test.h"
33
33
#include " xla/xla_data.pb.h"
34
34
#include " tsl/platform/statusor.h"
35
35
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ cc_library(
94
94
hdrs = ["mock_context.h" ],
95
95
deps = [
96
96
":context" ,
97
- "//xla:test" ,
97
+ "//xla/hlo/testlib :test" ,
98
98
],
99
99
)
100
100
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ limitations under the License.
16
16
#ifndef XLA_STREAM_EXECUTOR_GPU_MOCK_CONTEXT_H_
17
17
#define XLA_STREAM_EXECUTOR_GPU_MOCK_CONTEXT_H_
18
18
19
+ #include " xla/hlo/testlib/test.h"
19
20
#include " xla/stream_executor/gpu/context.h"
20
- #include " xla/test.h"
21
21
22
22
namespace stream_executor ::gpu {
23
23
Original file line number Diff line number Diff line change @@ -408,8 +408,8 @@ xla_cc_test(
408
408
srcs = ["prepare_reference_module_test.cc" ],
409
409
deps = [
410
410
":prepare_reference_module" ,
411
- "//xla:test" ,
412
411
"//xla/hlo/ir:hlo" ,
412
+ "//xla/hlo/testlib:test" ,
413
413
"//xla/tests:hlo_test_base" ,
414
414
"@com_google_googletest//:gtest_main" ,
415
415
"@tsl//tsl/platform:statusor" ,
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ xla_cc_test(
63
63
":hlo_bisect_state" ,
64
64
"//xla:literal" ,
65
65
"//xla/hlo/ir:hlo" ,
66
+ "//xla/hlo/testlib:pattern_matcher_gmock" ,
66
67
"//xla/service:pattern_matcher" ,
67
- "//xla/service:pattern_matcher_gmock" ,
68
68
"//xla/tests:hlo_test_base" ,
69
69
"//xla/tests:xla_internal_test_main" ,
70
70
"@com_google_absl//absl/algorithm:container" ,
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ limitations under the License.
24
24
#include " absl/status/statusor.h"
25
25
#include " xla/hlo/ir/hlo_module.h"
26
26
#include " xla/hlo/ir/hlo_opcode.h"
27
+ #include " xla/hlo/testlib/pattern_matcher_gmock.h"
27
28
#include " xla/literal.h"
28
29
#include " xla/service/pattern_matcher.h"
29
- #include " xla/service/pattern_matcher_gmock.h"
30
30
#include " xla/tests/hlo_test_base.h"
31
31
32
32
namespace xla {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ limitations under the License.
16
16
#include " xla/tools/prepare_reference_module.h"
17
17
18
18
#include " xla/hlo/ir/hlo_module.h"
19
- #include " xla/test.h"
19
+ #include " xla/hlo/testlib/ test.h"
20
20
#include " xla/tests/hlo_test_base.h"
21
21
#include " tsl/platform/statusor.h"
22
22
You can’t perform that action at this time.
0 commit comments