aboutsummaryrefslogtreecommitdiff
path: root/lib/Headers
AgeCommit message (Collapse)Author
2011-12-26Add BMI2 intrinsics.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147275 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-25lib/Headers/CMakeLists.txt: Fix cmake build since r147263, for two missing ↵NAKAMURA Takumi
headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147266 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-25Add the rest of the BMI intrinsics.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147265 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-25Add intrinsics for lzcnt and tzcnt instructions.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147263 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-25Add BMI, BMI2, and LZCNT feature flags to enable adding intrinsics.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147262 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-24Add last of the AVX2 intrinsics except for gather.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147253 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-24Add AVX2 permute intrinsics. Also add parentheses on some macro arguments in ↵Craig Topper
other intrinsic headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147241 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-24Add AVX2 intrinsics for FP vbroadcast, vbroadcasti128, and vpblendd.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147239 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-24Intrinsics for AVX2 unpack instructions.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147237 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-24More AVX2 intrinsics for shift, psign, some shuffles, and psadbw.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147236 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-23Add AVX2 multiply intrinsics.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147219 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-22Add AVX2 intrinsics for max, min, sign extend, and zero extend.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147141 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-21Add a few more AVX2 intrinsics and fix the type strings on a couple SSE ↵Craig Topper
intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147048 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-21Add AVX2 horizontal add/sub intrinsics.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147047 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-20Add AVX2 intrinsics for pavg, pblend, and pcmp instructions. Also remove ↵Craig Topper
unneeded builtins for SSE pcmp. Change SSE pcmpeqq and pcmpgtq to not use builtins and just use vector == and >. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146969 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-19Add AVX2 intrinsics for and, andn, or, and xor.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146862 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-19More AVX2 intrinsic support including saturating add/sub and palignr.Craig Topper
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146857 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-19Begin adding AVX2 intrinsics. Necessitated increasing the number of bits ↵Craig Topper
used to store builtinID when serializing identifier table. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146855 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-17Fix _mm_permute_ps and _mm256_permute_ps AVX intrinsics to use "I" (ICE)Chad Rosier
markings. Fix avxintrin.h to take them into account. Part of rdar://10595450 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146810 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-17Revert r146797, which was a partial revert of r146791; It was correct in theChad Rosier
first place. The permutevar_* (note the *var*) intrinsics use ymm/mem. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146807 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-17Fix _mm256_extractf128_* AVX intrinsics to use "I" (ICE) markings. FixChad Rosier
avxintrin.h to take them into account. Part of rdar://10595450 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146804 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-17Partial revert of r146791; vpermilps/vpermilpd instructions accepts ↵Chad Rosier
ymm/mem/imm8. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146797 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-17Fix _mm256_round_pd, _mm256_round_ps, _mm_permute_pd and _mm256_permute_pd AVXChad Rosier
intrinsics to use "I" (ICE) markings. Fix avxintrin.h to take them into account. Part of rdar://10595450 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146791 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-16Fix vinsertf128_* AVX intrinsics to use "I" (ICE) markings. Fix avxintrin.h to Chad Rosier
take them into account. rdar://10590282 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146758 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-16Fix vperm2f128_* AVX intrinsics to use "I" (ICE) markings. Fix avxintrin.h to Chad Rosier
take them into account. rdar://10576962 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146757 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-14Fix obvious error in _mm_test_all_zeros. PR11565.Bob Wilson
Patch by Mathias Gaunard! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146565 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-09Fix a blatant typo or cut/paste-o reported by users of this header.Chandler Carruth
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146251 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-09Use default visibility in the the symbols declared in unwind.h. This matchesRafael Espindola
the behavior of gcc's unwind.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146208 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-08Add a minimal unwind.h that knows how to forward to the system one in systemsRafael Espindola
that have it in /usr/include (only OS X Lion so far). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146140 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-06Headers: wmmintrin.h only needs xmmintrin.h.Daniel Dunbar
- Fixes <rdar://problem/10261246> clang -maes option is not sufficient to include <wmmintrin.h> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145939 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-06Install cpuid.h when building with cmake too.Rafael Espindola
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145935 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-28Fix comment.Rafael Espindola
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145271 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-27Error on non x86 architectures.Rafael Espindola
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145185 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-27Fix file name in comments.Rafael Espindola
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145184 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-26Add the minimum implementation of cpuid.h. This works on "modern" intel cpusRafael Espindola
and on clang, which seams to handled "=b" correctly even when ebx is the PIC register. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145149 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-10Fix some additional x86 intrinsics to use "I" (ICE) markings. Fix ↵Eli Friedman
*mmintrin.h to take them into account. <rdar://problem/10341145> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144246 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-08Misc fixes to pcmp*stri.Eli Friedman
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144073 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-05Fix vector macros to correctly check argument types. <rdar://problem/10261670>Bob Wilson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143792 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-06Add _mm_comige_sd to emmintrin.h, since I apparently forgot to do this in ↵Eli Friedman
r138769. <rdar://problem/10230751> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141310 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-06Clang-side build system infrastructure for multiple tblgens.Peter Collingbourne
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141267 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-29Add support for alignment-specifiers in C1X and C++11, removePeter Collingbourne
support for the C++0x draft [[align]] attribute and add the C1X standard header file stdalign.h git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140796 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-15Tweak *mmintrin.h so that they don't make any bad assumptions about ↵Eli Friedman
alignment (which probably has little effect in practice, but better to get it right). Make the load in _mm_loadh_pi and _mm_loadl_pi a single LLVM IR instruction to make optimizing easier for CodeGen. rdar://10054986 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139874 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-08Remove WCHAR_MIN and WCHAR_MAX from limits.h. According to posix and c99Eric Christopher
these should be in stdint.h - and they already are. Fixes rdar://10097036. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139332 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-29Add missing function _mm_ucomige_sd to emmintrin.h. PR10803.Eli Friedman
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138769 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-23Fix _mm256_shuffle_ps mask! Example, for mask=203, Instead of:Bruno Cardoso Lopes
<i32 3, i32 2, i32 8, i32 11, i32 3, i32 6, i32 12, i32 15> generate: <i32 3, i32 2, i32 8, i32 11, i32 7, i32 6, i32 12, i32 15> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138411 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-25http://llvm.org/bugs/show_bug.cgi?id=10472Howard Hinnant
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135927 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-19Fix typo.Nick Lewycky
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135473 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-19Implement a __WCHAR_UNSIGNED__ macro and use it to include WCHAR_MIN andSean Hunt
WCHAR_MAX in limits.h, thus solving the problem where the system header thinks it knows better. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135455 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-18lib/Headers/mm_malloc.h: Use __mingw_aligned_malloc() in _mm_malloc() on mingw.NAKAMURA Takumi
By default, mingw does not have _mm_alloc() nor _aligned_malloc(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135388 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-05Teach Clang's <float.h> to also include MinGW's <float.h>, which provides ↵Douglas Gregor
additional system definitions, from Ruben Van Boxem git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134407 91177308-0d34-0410-b5e6-96231b3b80d8