From c0ef9e43168213a8496e170340afabc8d6d16e0f Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Mon, 17 Oct 2016 14:56:53 +0000 Subject: 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 --- llvm/lib/Support/Threading.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/Threading.cpp') diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp index fd303afbb91..760f9e2c388 100644 --- a/llvm/lib/Support/Threading.cpp +++ b/llvm/lib/Support/Threading.cpp @@ -118,7 +118,7 @@ void llvm::llvm_execute_on_thread(void (*Fn)(void*), void *UserData, #endif -unsigned llvm::hardware_physical_concurrency() { +unsigned llvm::heavyweight_hardware_concurrency() { #if !LLVM_ENABLE_THREADS return 1; #endif -- cgit v1.2.3