[llvm] [Support] Remove get getThreadCount (NFC) (PR #150786)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 26 11:07:13 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/150786
getThreadCount has been deprecated for more than a year since:
commit 744616b3aebd008a5ad0e9de9f82f5e284440ab1
Author: Mehdi Amini <joker.eph at gmail.com>
Date: Mon Feb 19 18:07:12 2024 -0800
This patch removes it.
>From 3265d113fcdb1a28537dedfc8eaeaf584660e1f7 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Thu, 24 Jul 2025 15:16:28 -0700
Subject: [PATCH] [Support] Remove get getThreadCount (NFC)
getThreadCount has been deprecated for more than a year since:
commit 744616b3aebd008a5ad0e9de9f82f5e284440ab1
Author: Mehdi Amini <joker.eph at gmail.com>
Date: Mon Feb 19 18:07:12 2024 -0800
This patch removes it.
---
llvm/include/llvm/Support/ThreadPool.h | 8 --------
1 file changed, 8 deletions(-)
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;
More information about the llvm-commits
mailing list