Skip to content

Commit 3226a5f

Browse files
authored
[Headers][X86] avx512cd - move constexpr to the end of the function attribute lists. NFC. (#166968)
Consistent with how we order the attributes in other headers Makes it easier to compare constexpr/non-constexpr attribute defines
1 parent 8f2b167 commit 3226a5f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

clang/lib/Headers/avx512cdintrin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/* Define the default attributes for the functions in this file. */
1818
#if defined(__cplusplus) && (__cplusplus >= 201103L)
1919
#define __DEFAULT_FN_ATTRS \
20-
constexpr __attribute__((__always_inline__, __nodebug__, \
21-
__target__("avx512cd"), __min_vector_width__(512)))
20+
__attribute__((__always_inline__, __nodebug__, __target__("avx512cd"), \
21+
__min_vector_width__(512))) constexpr
2222
#else
2323
#define __DEFAULT_FN_ATTRS \
2424
__attribute__((__always_inline__, __nodebug__, __target__("avx512cd"), \

clang/lib/Headers/avx512vlcdintrin.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
/* Define the default attributes for the functions in this file. */
1717
#if defined(__cplusplus) && (__cplusplus >= 201103L)
1818
#define __DEFAULT_FN_ATTRS128 \
19-
constexpr __attribute__((__always_inline__, __nodebug__, \
20-
__target__("avx512vl,avx512cd"), \
21-
__min_vector_width__(128)))
19+
__attribute__((__always_inline__, __nodebug__, \
20+
__target__("avx512vl,avx512cd"), \
21+
__min_vector_width__(128))) constexpr
2222
#define __DEFAULT_FN_ATTRS256 \
23-
constexpr __attribute__((__always_inline__, __nodebug__, \
24-
__target__("avx512vl,avx512cd"), \
25-
__min_vector_width__(256)))
23+
__attribute__((__always_inline__, __nodebug__, \
24+
__target__("avx512vl,avx512cd"), \
25+
__min_vector_width__(256))) constexpr
2626
#else
2727
#define __DEFAULT_FN_ATTRS128 \
2828
__attribute__((__always_inline__, __nodebug__, \

0 commit comments

Comments
 (0)