[libcxx-commits] [PATCH] D153140: [libc++][NFC] Reformat all the benchmarks

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 16 07:35:57 PDT 2023


philnik accepted this revision.
philnik added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libcxx/benchmarks/Utilities.h:30
+  benchmark::DoNotOptimize(c.data());
+}
 template <class Container, std::enable_if_t<!UtilitiesInternal::HasData<Container>::value>* = nullptr>
----------------



================
Comment at: libcxx/benchmarks/allocation.bench.cpp:20
 struct MallocWrapper {
-  __attribute__((always_inline))
-  static void* Allocate(size_t N) {
-    return std::malloc(N);
-  }
-  __attribute__((always_inline))
-  static void Deallocate(void* P, size_t) {
-    std::free(P);
-  }
+  __attribute__((always_inline)) static void* Allocate(size_t N) { return std::malloc(N); }
+  __attribute__((always_inline)) static void Deallocate(void* P, size_t) { std::free(P); }
----------------
Maybe as a quick follow-up?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153140



More information about the libcxx-commits mailing list