Skip to content

Commit 4a5d74d

Browse files
hzellercopybara-github
authored andcommitted
VLOG() is now provided by absl. Use that directly.
This leaves xls/common/logging/logging.h empty; it will be removed in an upcoming change. PiperOrigin-RevId: 617024346
1 parent ca42d00 commit 4a5d74d

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

transpiler/BUILD

+2
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ cc_library(
359359
":abstract_xls_transpiler",
360360
"@com_google_absl//absl/container:flat_hash_map",
361361
"@com_google_absl//absl/container:flat_hash_set",
362+
"@com_google_absl//absl/log",
363+
"@com_google_absl//absl/log:check",
362364
"@com_google_absl//absl/status",
363365
"@com_google_absl//absl/status:statusor",
364366
"@com_google_absl//absl/strings",

transpiler/abstract_xls_runner.h

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343

4444
#include "absl/container/flat_hash_map.h"
4545
#include "absl/container/flat_hash_set.h"
46+
#include "absl/log/check.h"
47+
#include "absl/log/log.h"
4648
#include "absl/status/status.h"
4749
#include "absl/status/statusor.h"
4850
#include "absl/strings/string_view.h"

transpiler/examples/sqrt/sqrt_cleartext_testbench.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Encoded<short> TimedYosysSqrt(Encoded<short>& ciphertext) {
3737
std::cout << "Starting!" << std::endl;
3838
Encoded<short> result;
3939
XLS_CHECK_OK(isqrt(result, ciphertext));
40-
std::cout << "\t\t\t\t\tTotal time "
41-
<< ": " << (clock() - start_time) / 1000000 << " secs" << std::endl;
40+
std::cout << "\t\t\t\t\tTotal time " << ": "
41+
<< (clock() - start_time) / 1000000 << " secs" << std::endl;
4242
return result;
4343
}
4444

transpiler/examples/string_cap/string_cap_cleartext_testbench.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ void BoolStringCap(EncodedArray<char>& ciphertext) {
3737
double start_time = clock();
3838
std::cout << "Starting!" << std::endl;
3939
XLS_CHECK_OK(CapitalizeString(ciphertext));
40-
std::cout << "\t\t\t\t\tTotal time "
41-
<< ": " << (clock() - start_time) / 1000000 << " secs" << std::endl;
40+
std::cout << "\t\t\t\t\tTotal time " << ": "
41+
<< (clock() - start_time) / 1000000 << " secs" << std::endl;
4242
}
4343

4444
int main(int argc, char** argv) {

transpiler/examples/string_cap_char/string_cap_char_cleartext_testbench.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ void BoolStringCap(EncodedArray<char>& cipherresult,
4848
<< " secs" << std::endl;
4949
total_time += char_time;
5050
}
51-
std::cout << "\t\t\t\t\tTotal time "
52-
<< ": " << total_time / 1000000 << " secs" << std::endl;
51+
std::cout << "\t\t\t\t\tTotal time " << ": " << total_time / 1000000
52+
<< " secs" << std::endl;
5353
}
5454

5555
int main(int argc, char** argv) {

transpiler/examples/string_reverse/string_reverse_cleartext_testbench.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ void BoolStringReverse(EncodedArray<char>& ciphertext) {
2828
double start_time = clock();
2929
std::cout << "Starting!" << std::endl;
3030
XLS_CHECK_OK(ReverseString(ciphertext));
31-
std::cout << "\t\t\t\t\tTotal time "
32-
<< ": " << (clock() - start_time) / 1000000 << " secs" << std::endl;
31+
std::cout << "\t\t\t\t\tTotal time " << ": "
32+
<< (clock() - start_time) / 1000000 << " secs" << std::endl;
3333
}
3434

3535
int main(int argc, char** argv) {

0 commit comments

Comments
 (0)