[clang] 511439b - [clang][x86] Make sure we undef __DEFAULT_FN_ATTRS_CONSTEXPR attributes tags at the end of the bmi headers

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 30 09:57:35 PDT 2024


Author: Simon Pilgrim
Date: 2024-09-30T17:57:12+01:00
New Revision: 511439b2821de3ea34612061a57deb71a8201c7c

URL: https://github.com/llvm/llvm-project/commit/511439b2821de3ea34612061a57deb71a8201c7c
DIFF: https://github.com/llvm/llvm-project/commit/511439b2821de3ea34612061a57deb71a8201c7c.diff

LOG: [clang][x86] Make sure we undef __DEFAULT_FN_ATTRS_CONSTEXPR attributes tags at the end of the bmi headers

Added: 
    

Modified: 
    clang/lib/Headers/bmi2intrin.h
    clang/lib/Headers/bmiintrin.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/bmi2intrin.h b/clang/lib/Headers/bmi2intrin.h
index 31d97e62719109..175b8be4f3d463 100644
--- a/clang/lib/Headers/bmi2intrin.h
+++ b/clang/lib/Headers/bmi2intrin.h
@@ -257,5 +257,6 @@ _mulx_u64 (unsigned long long __X, unsigned long long __Y,
 #endif /* __x86_64__  */
 
 #undef __DEFAULT_FN_ATTRS
+#undef __DEFAULT_FN_ATTRS_CONSTEXPR
 
 #endif /* __BMI2INTRIN_H */

diff  --git a/clang/lib/Headers/bmiintrin.h b/clang/lib/Headers/bmiintrin.h
index 634fa39bfa1d7e..bf12a22d0f9904 100644
--- a/clang/lib/Headers/bmiintrin.h
+++ b/clang/lib/Headers/bmiintrin.h
@@ -615,6 +615,7 @@ __blsr_u64(unsigned long long __X)
 #endif /* __x86_64__ */
 
 #undef __DEFAULT_FN_ATTRS
+#undef __DEFAULT_FN_ATTRS_CONSTEXPR
 
 #endif /* !defined(__SCE__) || __has_feature(modules) || defined(__BMI__) */
 


        


More information about the cfe-commits mailing list