diff options
author | dim <dim@FreeBSD.org> | 2015-06-21 14:00:56 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-06-21 14:00:56 +0000 |
commit | 9dd834653b811ad20382e98a87dff824980c9916 (patch) | |
tree | a764184c2fc9486979b074250b013a0937ee64e5 /lib/Headers/rtmintrin.h | |
parent | bb9760db9b86e93a638ed430d0a14785f7ff9064 (diff) | |
download | FreeBSD-src-9dd834653b811ad20382e98a87dff824980c9916.zip FreeBSD-src-9dd834653b811ad20382e98a87dff824980c9916.tar.gz |
Vendor import of clang trunk r240225:
https://llvm.org/svn/llvm-project/cfe/trunk@240225
Diffstat (limited to 'lib/Headers/rtmintrin.h')
-rw-r--r-- | lib/Headers/rtmintrin.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Headers/rtmintrin.h b/lib/Headers/rtmintrin.h index 26149ca..8709a12 100644 --- a/lib/Headers/rtmintrin.h +++ b/lib/Headers/rtmintrin.h @@ -37,13 +37,16 @@ #define _XABORT_NESTED (1 << 5) #define _XABORT_CODE(x) (((x) >> 24) & 0xFF) -static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__)) +/* Define the default attributes for the functions in this file. */ +#define DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("rtm"))) + +static __inline__ unsigned int DEFAULT_FN_ATTRS _xbegin(void) { return __builtin_ia32_xbegin(); } -static __inline__ void __attribute__((__always_inline__, __nodebug__)) +static __inline__ void DEFAULT_FN_ATTRS _xend(void) { __builtin_ia32_xend(); @@ -51,4 +54,6 @@ _xend(void) #define _xabort(imm) __builtin_ia32_xabort((imm)) +#undef DEFAULT_FN_ATTRS + #endif /* __RTMINTRIN_H */ |