[llvm] [LLVM][Support][Cygwin] Add threading support for Cygwin host (PR #145314)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 23 04:58:30 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions inc -- llvm/lib/Support/Unix/Threading.inc
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc
index 15492be99..7854d6d22 100644
--- a/llvm/lib/Support/Unix/Threading.inc
+++ b/llvm/lib/Support/Unix/Threading.inc
@@ -344,7 +344,8 @@ llvm::BitVector llvm::get_thread_affinity_mask() {
unsigned llvm::get_cpus() { return 1; }
-#if (defined(__linux__) || defined(__CYGWIN__)) && (defined(__i386__) || defined(__x86_64__))
+#if (defined(__linux__) || defined(__CYGWIN__)) && \
+ (defined(__i386__) || defined(__x86_64__))
// On Linux, the number of physical cores can be computed from /proc/cpuinfo,
// using the number of unique physical/core id pairs. The following
// implementation reads the /proc/cpuinfo format on an x86_64 system.
``````````
</details>
https://github.com/llvm/llvm-project/pull/145314
More information about the llvm-commits
mailing list