diff options
author | Greg Falcon <gfalcon@google.com> | 2022-05-18 10:01:14 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-05-18 10:01:57 -0700 |
commit | 3e04aade4e7a53aebbbed1a1268117f1f522bfb0 (patch) | |
tree | a474a12423cb60a61e30ec03a3a9970e64ece23e /absl/container/BUILD.bazel | |
parent | 9df63a8beaae53802109346f0a20328140a7cb8e (diff) |
Replace direct uses of __builtin_prefetch from SwissTable with the wrapper functions.
Add a new (internal) feature test macro to detect whether the wrappers are no-ops on a given platform.
Note that one-arg __builtin_prefetch(x) is equivalent to __builtin_prefetch(x, 0, 3), per `man BUILTIN_PREFETCH(3)` and gcc docs.
PiperOrigin-RevId: 449508660
Change-Id: I144e750205eec0c956d8dd62bc72e10bdb87c4f7
Diffstat (limited to 'absl/container/BUILD.bazel')
-rw-r--r-- | absl/container/BUILD.bazel | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/container/BUILD.bazel b/absl/container/BUILD.bazel index d733cb24..9ef7066c 100644 --- a/absl/container/BUILD.bazel +++ b/absl/container/BUILD.bazel @@ -589,6 +589,7 @@ cc_library( "//absl/base:config", "//absl/base:core_headers", "//absl/base:endian", + "//absl/base:prefetch", "//absl/memory", "//absl/meta:type_traits", "//absl/numeric:bits", @@ -611,6 +612,7 @@ cc_test( "//absl/base", "//absl/base:config", "//absl/base:core_headers", + "//absl/base:prefetch", "//absl/base:raw_logging_internal", "//absl/strings", "@com_google_googletest//:gtest_main", |