[PATCH] D137836: [Support] Move getHostNumPhysicalCores to Threading.h
Sam Elliott via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 11 06:39:51 PST 2022
lenary created this revision.
Herald added subscribers: kadircet, arphaman, hiraditya, krytarowski.
Herald added a project: All.
lenary requested review of this revision.
Herald added projects: LLVM, clang-tools-extra.
Herald added subscribers: cfe-commits, llvm-commits.
This change is focussed on simplifying `Support/Host.h` to only do
target detection. In this case, this function is close in usage to
existing functions in `Support/Threading.h`, so I moved it into there.
The function is also renamed to `llvm::get_physical_cores()` to match
the style of threading's functions.
Depends on D137835 <https://reviews.llvm.org/D137835>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137836
Files:
clang-tools-extra/clangd/test/Inputs/BenchmarkHeader.h
llvm/include/llvm/Support/Host.h
llvm/include/llvm/Support/Threading.h
llvm/lib/Support/Host.cpp
llvm/lib/Support/Threading.cpp
llvm/unittests/Support/Host.cpp
llvm/unittests/Support/Threading.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137836.474746.patch
Type: text/x-patch
Size: 15407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221111/22b05c80/attachment-0001.bin>
More information about the cfe-commits
mailing list