summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-10-17 14:56:53 +0000
committerTeresa Johnson <tejohnson@google.com>2016-10-17 14:56:53 +0000
commitc0ef9e43168213a8496e170340afabc8d6d16e0f (patch)
treedc1b707447114696e87d4e4ed69b78363677affa /llvm/unittests/Support
parentd45a60449bf6d2e9df26ae67ba5d49da9b4e0e9f (diff)
downloadbcm5719-llvm-c0ef9e43168213a8496e170340afabc8d6d16e0f.tar.gz
bcm5719-llvm-c0ef9e43168213a8496e170340afabc8d6d16e0f.zip
Rename interface for querying physical hardware concurrency
Based on post-commit review for D25585/r284180, rename hardware_physical_concurrency to heavyweight_hardware_concurrency, to better reflect what type of tasks it should be used for and to enable other systems to map this to something other than the number of physical cores. llvm-svn: 284390
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/Threading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/Threading.cpp b/llvm/unittests/Support/Threading.cpp
index 30a3c741b35..be53026415d 100644
--- a/llvm/unittests/Support/Threading.cpp
+++ b/llvm/unittests/Support/Threading.cpp
@@ -16,7 +16,7 @@ using namespace llvm;
namespace {
TEST(Threading, PhysicalConcurrency) {
- auto Num = hardware_physical_concurrency();
+ auto Num = heavyweight_hardware_concurrency();
// Since Num is unsigned this will also catch us trying to
// return -1.
ASSERT_LE(Num, thread::hardware_concurrency());
OpenPOWER on IntegriCloud