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 | 41885d36e85ead75a1d18ef7d2f43663f90ed67e (patch) | |
tree | 62fec5272b6580d33447211584b973236c020d3a /lib/Headers/x86intrin.h | |
parent | 695aff12b29828c77c34e1b29d37900d26ea860e (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers/x86intrin.h')
-rw-r--r-- | lib/Headers/x86intrin.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/Headers/x86intrin.h b/lib/Headers/x86intrin.h index 21a43daf3c..4d8077e382 100644 --- a/lib/Headers/x86intrin.h +++ b/lib/Headers/x86intrin.h @@ -28,53 +28,29 @@ #include <immintrin.h> -#ifdef __3dNOW__ #include <mm3dnow.h> -#endif -#ifdef __BMI__ #include <bmiintrin.h> -#endif -#ifdef __BMI2__ #include <bmi2intrin.h> -#endif -#ifdef __LZCNT__ #include <lzcntintrin.h> -#endif -#ifdef __POPCNT__ #include <popcntintrin.h> -#endif -#ifdef __RDSEED__ #include <rdseedintrin.h> -#endif -#ifdef __PRFCHW__ #include <prfchwintrin.h> -#endif -#ifdef __SSE4A__ #include <ammintrin.h> -#endif -#ifdef __FMA4__ #include <fma4intrin.h> -#endif -#ifdef __XOP__ #include <xopintrin.h> -#endif -#ifdef __TBM__ #include <tbmintrin.h> -#endif -#ifdef __F16C__ #include <f16cintrin.h> -#endif /* FIXME: LWP */ |