[compiler-rt] [AArch64][compiler-rt] Add LSE support for Windows. (PR #116706)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 14:42:04 PST 2024


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 7b525495e8574285c19188be11e7ef8a51382ff3 3a11a86ff9fb42ce83ad8a8fc86aabbcf4b08baf --extensions c,inc -- compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/windows.inc compiler-rt/lib/builtins/cpu_model/aarch64.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/windows.inc b/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/windows.inc
index da2e10d371..ae76e2baf1 100644
--- a/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/windows.inc
+++ b/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/windows.inc
@@ -1,12 +1,12 @@
 #define WIN32_LEAN_AND_MEAN
-#include <windows.h>
 #include <processthreadsapi.h>
+#include <windows.h>
 
 #ifndef PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE
-#define PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE    34
+#define PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE 34
 #endif
 
 static void CONSTRUCTOR_ATTRIBUTE init_have_lse_atomics(void) {
-  if(IsProcessorFeaturePresent(PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE))
+  if (IsProcessorFeaturePresent(PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE))
     __aarch64_have_lse_atomics = true;
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/116706


More information about the llvm-commits mailing list