[PATCH] D106012: [Support] Get correct number of physical cores on Apple Silicon

Steven Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 14 13:39:08 PDT 2021


steven_wu added inline comments.


================
Comment at: llvm/lib/Support/Host.cpp:1415
   size_t len = sizeof(count);
   sysctlbyname("hw.physicalcpu", &count, &len, NULL, 0);
   if (count < 1) {
----------------
dexonsmith wrote:
> Is this available on iOS?
Yes, they are in iOS public SDK. I checked before I apply the fix.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106012



More information about the llvm-commits mailing list