[clang] [X86] Add missing MACROs in cpuid.h (PR #80815)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 02:01:03 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 4b34558f43121df9b863ff2492f74fb2e65a5af1 2ed2333085d40ece903b2d70e0da7371b72209f4 -- clang/lib/Headers/cpuid.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Headers/cpuid.h b/clang/lib/Headers/cpuid.h
index 1f3e28a3bf..da683bc5d6 100644
--- a/clang/lib/Headers/cpuid.h
+++ b/clang/lib/Headers/cpuid.h
@@ -200,9 +200,9 @@
#define bit_AMXINT8 0x02000000
/* Features in %eax for leaf 7 sub-leaf 1 */
-#define bit_SHA512 0x00000001
-#define bit_SM3 0x00000002
-#define bit_SM4 0x00000004
+#define bit_SHA512 0x00000001
+#define bit_SM3 0x00000002
+#define bit_SM4 0x00000004
#define bit_RAOINT 0x00000008
#define bit_AVXVNNI 0x00000010
#define bit_AVX512BF16 0x00000020
@@ -214,11 +214,11 @@
/* Features in %edx for leaf 7 sub-leaf 1 */
#define bit_AVXVNNIINT8 0x00000010
#define bit_AVXNECONVERT 0x00000020
-#define bit_AMXCOMPLEX 0x00000100
-#define bit_AVXVNNIINT16 0x00000400
+#define bit_AMXCOMPLEX 0x00000100
+#define bit_AVXVNNIINT16 0x00000400
#define bit_PREFETCHI 0x00004000
-#define bit_USERMSR 0x00008000
-#define bit_AVX10_256 0x00080000
+#define bit_USERMSR 0x00008000
+#define bit_AVX10_256 0x00080000
/* Features in %eax for leaf 13 sub-leaf 1 */
#define bit_XSAVEOPT 0x00000001
@@ -252,7 +252,7 @@
#define bit_WBNOINVD 0x00000200
/* Features in %ebx for leaf 0x24 */
-#define bit_AVX10_512 0x00040000
+#define bit_AVX10_512 0x00040000
#if __i386__
#define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
``````````
</details>
https://github.com/llvm/llvm-project/pull/80815
More information about the cfe-commits
mailing list