llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-x86

Author: Simon Pilgrim (RKSimon)

<details>
<summary>Changes</summary>

Consistent with how we order the attributes in other headers

Makes it easier to compare constexpr/non-constexpr attribute defines

---
Full diff: https://github.com/llvm/llvm-project/pull/166968.diff


2 Files Affected:

- (modified) clang/lib/Headers/avx512cdintrin.h (+2-2) 
- (modified) clang/lib/Headers/avx512vlcdintrin.h (+6-6) 


``````````diff
diff --git a/clang/lib/Headers/avx512cdintrin.h 
b/clang/lib/Headers/avx512cdintrin.h
index fb6dcb6dd8ad1..f9de207b764a2 100644
--- a/clang/lib/Headers/avx512cdintrin.h
+++ b/clang/lib/Headers/avx512cdintrin.h
@@ -17,8 +17,8 @@
 /* Define the default attributes for the functions in this file. */
 #if defined(__cplusplus) && (__cplusplus >= 201103L)
 #define __DEFAULT_FN_ATTRS                                                     
\
-  constexpr __attribute__((__always_inline__, __nodebug__,                     
\
-                           __target__("avx512cd"), __min_vector_width__(512)))
+  __attribute__((__always_inline__, __nodebug__, __target__("avx512cd"),       
\
+                 __min_vector_width__(512))) constexpr
 #else
 #define __DEFAULT_FN_ATTRS                                                     
\
   __attribute__((__always_inline__, __nodebug__, __target__("avx512cd"),       
\
diff --git a/clang/lib/Headers/avx512vlcdintrin.h 
b/clang/lib/Headers/avx512vlcdintrin.h
index 7719680faf93a..df66e1df3bf13 100644
--- a/clang/lib/Headers/avx512vlcdintrin.h
+++ b/clang/lib/Headers/avx512vlcdintrin.h
@@ -16,13 +16,13 @@
 /* Define the default attributes for the functions in this file. */
 #if defined(__cplusplus) && (__cplusplus >= 201103L)
 #define __DEFAULT_FN_ATTRS128                                                  
\
-  constexpr __attribute__((__always_inline__, __nodebug__,                     
\
-                           __target__("avx512vl,avx512cd"),                    
\
-                           __min_vector_width__(128)))
+  __attribute__((__always_inline__, __nodebug__,                               
\
+                 __target__("avx512vl,avx512cd"),                              
\
+                 __min_vector_width__(128))) constexpr
 #define __DEFAULT_FN_ATTRS256                                                  
\
-  constexpr __attribute__((__always_inline__, __nodebug__,                     
\
-                           __target__("avx512vl,avx512cd"),                    
\
-                           __min_vector_width__(256)))
+  __attribute__((__always_inline__, __nodebug__,                               
\
+                 __target__("avx512vl,avx512cd"),                              
\
+                 __min_vector_width__(256))) constexpr
 #else
 #define __DEFAULT_FN_ATTRS128                                                  
\
   __attribute__((__always_inline__, __nodebug__,                               
\

``````````

</details>


https://github.com/llvm/llvm-project/pull/166968
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to