[libc-commits] [PATCH] D88271: [libc] Using llvm_libc memcpy in mem* benchmarks.

Anthony Steinhauser via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Sep 24 22:04:09 PDT 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGef36e8380a91: [libc] Using llvm_libc memcpy in mem* benchmarks. (authored by asteinhauser).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88271/new/

https://reviews.llvm.org/D88271

Files:
  libc/benchmarks/Memcpy.cpp


Index: libc/benchmarks/Memcpy.cpp
===================================================================
--- libc/benchmarks/Memcpy.cpp
+++ libc/benchmarks/Memcpy.cpp
@@ -48,8 +48,8 @@
 
   BenchmarkResult benchmark(const BenchmarkOptions &Options,
                             StringRef FunctionName, size_t Size) override {
-    FunctionPrototype Function =
-        StringSwitch<FunctionPrototype>(FunctionName).Case("memcpy", &::memcpy);
+    FunctionPrototype Function = StringSwitch<FunctionPrototype>(FunctionName)
+                                     .Case("memcpy", &__llvm_libc::memcpy);
     return llvm::libc_benchmarks::benchmark(
         Options, PP, [this, Function, Size](ParameterType p) {
           Function(DstBuffer + p.DstOffset, SrcBuffer + p.SrcOffset, Size);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88271.294225.patch
Type: text/x-patch
Size: 783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200925/ac4d88b8/attachment.bin>


More information about the libc-commits mailing list