[Openmp-commits] [openmp] [OpenMP] Fix build for X32 ABI (PR #90395)

via Openmp-commits openmp-commits at lists.llvm.org
Thu May 2 17:33:51 PDT 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 ff03f23be8bc6df701efd9e1093779fbcf382d87 7d230d1974aae201441dbb81f033b36323b59ed7 -- openmp/runtime/src/kmp_affinity.h openmp/runtime/src/kmp_os.h
``````````

</details>

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

``````````diff
diff --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h
index 59a81557e0..a5543f2710 100644
--- a/openmp/runtime/src/kmp_os.h
+++ b/openmp/runtime/src/kmp_os.h
@@ -189,7 +189,8 @@ typedef unsigned long long kmp_uint64;
 #error "Can't determine size_t printf format specifier."
 #endif
 
-#if KMP_ARCH_X86 || KMP_ARCH_ARM || KMP_ARCH_WASM || KMP_ARCH_PPC || defined(__ILP32__)
+#if KMP_ARCH_X86 || KMP_ARCH_ARM || KMP_ARCH_WASM || KMP_ARCH_PPC ||           \
+    defined(__ILP32__)
 #define KMP_SIZE_T_MAX (0xFFFFFFFF)
 #else
 #define KMP_SIZE_T_MAX (0xFFFFFFFFFFFFFFFF)

``````````

</details>


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


More information about the Openmp-commits mailing list