diff --git a/xla/service/llvm_ir/BUILD b/xla/service/llvm_ir/BUILD index 48c4266a011076..fb2743ca31f73e 100644 --- a/xla/service/llvm_ir/BUILD +++ b/xla/service/llvm_ir/BUILD @@ -62,6 +62,7 @@ xla_cc_test( "//xla/service/cpu/tests:cpu_codegen_test", "//xla/tests:hlo_test_base", "@com_google_absl//absl/status", + "@com_google_googletest//:gtest", "@tsl//tsl/platform:test", ], ) @@ -84,6 +85,8 @@ cc_library( "//xla/tsl/platform:byte_order", "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/base", + "@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:str_format", @@ -116,6 +119,7 @@ cc_library( "@com_google_absl//absl/algorithm:container", "@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/hash", + "@com_google_absl//absl/log", "@com_google_absl//absl/log:check", "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:str_format", @@ -138,6 +142,7 @@ cc_library( "//xla:util", "//xla:xla_data_proto_cc", "@com_google_absl//absl/algorithm:container", + "@com_google_absl//absl/log:check", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:span", "@llvm-project//llvm:Core", @@ -158,6 +163,7 @@ cc_library( "//xla:types", "//xla:xla_data_proto_cc", "@com_google_absl//absl/algorithm:container", + "@com_google_absl//absl/log:check", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:span", "@llvm-project//llvm:Core", @@ -173,6 +179,7 @@ cc_library( ":ir_array", ":llvm_loop", "//xla:shape_util", + "@com_google_absl//absl/log:check", "@com_google_absl//absl/status", "@com_google_absl//absl/status:statusor", "@com_google_absl//absl/strings:str_format", @@ -198,6 +205,7 @@ cc_library( "//xla/hlo/ir:hlo", "//xla/service:elemental_ir_emitter", "@com_google_absl//absl/container:flat_hash_map", + "@com_google_absl//absl/log", "@com_google_absl//absl/status:statusor", "@llvm-project//llvm:Core", "@llvm-project//llvm:Support", @@ -271,6 +279,7 @@ cc_library( "//xla:shape_util", "//xla:xla_data_proto_cc", "@com_google_absl//absl/algorithm:container", + "@com_google_absl//absl/log:check", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:span", "@llvm-project//llvm:Core", diff --git a/xla/service/llvm_ir/alias_analysis_test.cc b/xla/service/llvm_ir/alias_analysis_test.cc index 1ca4a5f1a9fad4..6d7944d8f084c2 100644 --- a/xla/service/llvm_ir/alias_analysis_test.cc +++ b/xla/service/llvm_ir/alias_analysis_test.cc @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +#include #include "absl/status/status.h" #include "xla/ffi/ffi.h" #include "xla/ffi/ffi_api.h" diff --git a/xla/service/llvm_ir/fused_ir_emitter.cc b/xla/service/llvm_ir/fused_ir_emitter.cc index bb7cbb8d0f115e..5063f91e096d7d 100644 --- a/xla/service/llvm_ir/fused_ir_emitter.cc +++ b/xla/service/llvm_ir/fused_ir_emitter.cc @@ -20,6 +20,7 @@ limitations under the License. #include #include +#include "absl/log/log.h" #include "absl/status/statusor.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Constants.h" diff --git a/xla/service/llvm_ir/ir_array.cc b/xla/service/llvm_ir/ir_array.cc index a1d87039fba093..8cdf139baee7dd 100644 --- a/xla/service/llvm_ir/ir_array.cc +++ b/xla/service/llvm_ir/ir_array.cc @@ -22,6 +22,7 @@ limitations under the License. #include #include +#include "absl/log/check.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "llvm/IR/Constants.h" diff --git a/xla/service/llvm_ir/ir_array.h b/xla/service/llvm_ir/ir_array.h index 223f8a66f83a0d..56760c14f6c818 100644 --- a/xla/service/llvm_ir/ir_array.h +++ b/xla/service/llvm_ir/ir_array.h @@ -22,6 +22,7 @@ limitations under the License. #include #include "absl/algorithm/container.h" +#include "absl/log/check.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "llvm/ADT/STLExtras.h" diff --git a/xla/service/llvm_ir/llvm_command_line_options.cc b/xla/service/llvm_ir/llvm_command_line_options.cc index ef24817fcd6802..d2b084aca1b705 100644 --- a/xla/service/llvm_ir/llvm_command_line_options.cc +++ b/xla/service/llvm_ir/llvm_command_line_options.cc @@ -23,6 +23,7 @@ limitations under the License. #include "absl/base/thread_annotations.h" #include "absl/hash/hash.h" #include "absl/log/check.h" +#include "absl/log/log.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" #include "absl/synchronization/mutex.h" diff --git a/xla/service/llvm_ir/llvm_loop.cc b/xla/service/llvm_ir/llvm_loop.cc index 23bbae71fc69c9..cdc6bd53704905 100644 --- a/xla/service/llvm_ir/llvm_loop.cc +++ b/xla/service/llvm_ir/llvm_loop.cc @@ -24,6 +24,7 @@ limitations under the License. #include #include "absl/algorithm/container.h" +#include "absl/log/check.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" diff --git a/xla/service/llvm_ir/llvm_util.cc b/xla/service/llvm_ir/llvm_util.cc index 8aa655185b78cf..062cfd5fba7be5 100644 --- a/xla/service/llvm_ir/llvm_util.cc +++ b/xla/service/llvm_ir/llvm_util.cc @@ -27,6 +27,8 @@ limitations under the License. #include "absl/algorithm/container.h" #include "absl/base/casts.h" +#include "absl/log/check.h" +#include "absl/log/log.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" diff --git a/xla/service/llvm_ir/loop_emitter.cc b/xla/service/llvm_ir/loop_emitter.cc index 3eb0999b9ca6eb..cd2be527ec0402 100644 --- a/xla/service/llvm_ir/loop_emitter.cc +++ b/xla/service/llvm_ir/loop_emitter.cc @@ -20,6 +20,7 @@ limitations under the License. #include #include +#include "absl/log/check.h" #include "absl/status/status.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" diff --git a/xla/service/llvm_ir/tuple_ops.cc b/xla/service/llvm_ir/tuple_ops.cc index 65d47114e07113..f0a3b045c1d2f8 100644 --- a/xla/service/llvm_ir/tuple_ops.cc +++ b/xla/service/llvm_ir/tuple_ops.cc @@ -22,6 +22,7 @@ limitations under the License. #include #include "absl/algorithm/container.h" +#include "absl/log/check.h" #include "absl/strings/str_cat.h" #include "absl/types/span.h" #include "llvm/IR/Function.h"