[llvm] [Support] Remove get getThreadCount (NFC) (PR #150786)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 26 11:07:47 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-support
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
getThreadCount has been deprecated for more than a year since:
commit 744616b3aebd008a5ad0e9de9f82f5e284440ab1
Author: Mehdi Amini <joker.eph@<!-- -->gmail.com>
Date: Mon Feb 19 18:07:12 2024 -0800
This patch removes it.
---
Full diff: https://github.com/llvm/llvm-project/pull/150786.diff
1 Files Affected:
- (modified) llvm/include/llvm/Support/ThreadPool.h (-8)
``````````diff
diff --git a/llvm/include/llvm/Support/ThreadPool.h b/llvm/include/llvm/Support/ThreadPool.h
index 9272760fc140a..c26681c25c8f6 100644
--- a/llvm/include/llvm/Support/ThreadPool.h
+++ b/llvm/include/llvm/Support/ThreadPool.h
@@ -149,10 +149,6 @@ class LLVM_ABI StdThreadPool : public ThreadPoolInterface {
/// number of threads!
unsigned getMaxConcurrency() const override { return MaxThreadCount; }
- // TODO: Remove, misleading legacy name warning!
- LLVM_DEPRECATED("Use getMaxConcurrency instead", "getMaxConcurrency")
- unsigned getThreadCount() const { return MaxThreadCount; }
-
/// Returns true if the current thread is a worker thread of this thread pool.
bool isWorkerThread() const;
@@ -233,10 +229,6 @@ class LLVM_ABI SingleThreadExecutor : public ThreadPoolInterface {
/// Returns always 1: there is no concurrency.
unsigned getMaxConcurrency() const override { return 1; }
- // TODO: Remove, misleading legacy name warning!
- LLVM_DEPRECATED("Use getMaxConcurrency instead", "getMaxConcurrency")
- unsigned getThreadCount() const { return 1; }
-
/// Returns true if the current thread is a worker thread of this thread pool.
bool isWorkerThread() const;
``````````
</details>
https://github.com/llvm/llvm-project/pull/150786
More information about the llvm-commits
mailing list