[PATCH] D138900: [X86] include cmpccxaddintrin.h from immintrin.h to x86gprintrin.h
Freddy, Ye via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 28 23:14:30 PST 2022
FreddyYe created this revision.
Herald added a project: All.
FreddyYe requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138900
Files:
clang/lib/Headers/cmpccxaddintrin.h
clang/lib/Headers/immintrin.h
clang/lib/Headers/x86gprintrin.h
Index: clang/lib/Headers/x86gprintrin.h
===================================================================
--- clang/lib/Headers/x86gprintrin.h
+++ clang/lib/Headers/x86gprintrin.h
@@ -35,6 +35,11 @@
#include <raointintrin.h>
#endif
+#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
+ defined(__CMPCCXADD__)
+#include <cmpccxaddintrin.h>
+#endif
+
#if defined(__i386__)
#define __SAVE_GPRBX "mov {%%ebx, %%eax |eax, ebx};"
#define __RESTORE_GPRBX "mov {%%eax, %%ebx |ebx, eax};"
Index: clang/lib/Headers/immintrin.h
===================================================================
--- clang/lib/Headers/immintrin.h
+++ clang/lib/Headers/immintrin.h
@@ -528,11 +528,6 @@
#include <amxfp16intrin.h>
#endif
-#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
- defined(__CMPCCXADD__)
-#include <cmpccxaddintrin.h>
-#endif
-
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
defined(__KL__) || defined(__WIDEKL__)
#include <keylockerintrin.h>
Index: clang/lib/Headers/cmpccxaddintrin.h
===================================================================
--- clang/lib/Headers/cmpccxaddintrin.h
+++ clang/lib/Headers/cmpccxaddintrin.h
@@ -8,7 +8,8 @@
*===-----------------------------------------------------------------------===
*/
#ifndef __IMMINTRIN_H
-#error "Never use <cmpccxaddintrin.h> directly; include <immintrin.h> instead."
+#error \
+ "Never use <cmpccxaddintrin.h> directly; include <x86gprintrin.h> instead."
#endif // __IMMINTRIN_H
#ifndef __CMPCCXADDINTRIN_H
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138900.478467.patch
Type: text/x-patch
Size: 1676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221129/138d4261/attachment-0001.bin>
More information about the cfe-commits
mailing list