diff options
author | Eric Christopher <echristo@gmail.com> | 2015-06-17 07:09:32 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-06-17 07:09:32 +0000 |
commit | 9fc7fb274e5341b14c71487cf413343439581d50 (patch) | |
tree | ddcf2cfc2d8360d41de6d401ea0f7cb127e69961 /clang/lib/Headers/rtmintrin.h | |
parent | 4d185168e9dbc4da5c6849062815b4338f3aeb99 (diff) | |
download | bcm5719-llvm-9fc7fb274e5341b14c71487cf413343439581d50.tar.gz bcm5719-llvm-9fc7fb274e5341b14c71487cf413343439581d50.zip |
Update the intel intrinsic headers to use the target attribute support.
This involved removing the conditional inclusion and replacing them
with target attributes matching the original conditional inclusion
and checks. The testcase update removes the macro checks for each
file and replaces them with usage of the __target__ attribute, e.g.:
int __attribute__((__target__(("sse3")))) foo(int a) {
_mm_mwait(0, 0);
return 4;
}
This usage does require the enclosing function have the requisite
__target__ attribute for inlining and code generation - also for
any macro intrinsic uses in the enclosing function. There's no change
for existing uses of the intrinsic headers.
llvm-svn: 239883
Diffstat (limited to 'clang/lib/Headers/rtmintrin.h')
-rw-r--r-- | clang/lib/Headers/rtmintrin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Headers/rtmintrin.h b/clang/lib/Headers/rtmintrin.h index d110d3e548e..8709a125a7b 100644 --- a/clang/lib/Headers/rtmintrin.h +++ b/clang/lib/Headers/rtmintrin.h @@ -38,7 +38,7 @@ #define _XABORT_CODE(x) (((x) >> 24) & 0xFF) /* Define the default attributes for the functions in this file. */ -#define DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__)) +#define DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("rtm"))) static __inline__ unsigned int DEFAULT_FN_ATTRS _xbegin(void) |