aboutsummaryrefslogtreecommitdiff
path: root/lib/Headers
AgeCommit message (Collapse)Author
2011-06-20Define va_copy when in C++0x mode; C++0x picked it up from C99.Douglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133438 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-13Add 'may_alias' attribute. Noticed by Eli.Bill Wendling
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131278 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-13Represent the unaligned loads natively. These are converted into a call to theBill Wendling
correct unaligned load. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131268 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-12LLVM doesn't always optimize away the four loads from this:Bill Wendling
(__m128){ p[0], p[1], p[2], p[3] } which produces really bad code. This could be done in instcombine, but it's probably better to do it in the front-end instead. <rdar://problem/9424836> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131237 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-07PR9866: Fix the implementation of _mm_loadl_pd and _mm_loadh_pd to not makeEli Friedman
bad assumptions about the alignment of the double* argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131052 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-05PR9849: Fix _mm_setr_pi32 and friends to actually work correctly. They ↵Eli Friedman
broke with the MMX rewrite a while back. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130945 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-30Some small improvements to the builtin (-ffreestanding) stdint.h; inEli Friedman
particular, make sure to handle WCHAR_MIN correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130618 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-25don't use compound literals in MM macros, since they will be instantiatedChris Lattner
into user code which may warn about them with -pedantic. Patch by Jonathan Sauer! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130149 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-21PR9772: Fix the definition of WINT_MIN and WINT_MAX on Linux -ffreestanding.Eli Friedman
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129907 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-15Add mm3dnow.h.Michael J. Spencer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129572 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-15fix a bunch of comment typos found by codespell. Patch byChris Lattner
Luis Felipe Strano Moraes! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129559 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-13Remove comment that snuck in there.Bill Wendling
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129434 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-13Just use a native "load" instead of translating the builtin later. Clang canBill Wendling
take it! I wasn't able to get __builtin_ia32_loaddqu to transform into an unaligned load...I'll have to look into it further. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129427 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-06Implement the AVX cmp builtins as macros instead of static inlines.John McCall
Patch by Syoyo Fujita! Reviewed by Chris Lattner! Checked in by me! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128984 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-30Add '#ifndef _PTRDIFF_T' guard around definition of ptrdiff_t. Fixes ↵Ted Kremenek
<rdar://problem/9210154>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128578 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-15lib/Headers/mm_malloc.h: On Windows, we can expect _mm_malloc would be ↵NAKAMURA Takumi
provided as macro by <malloc.h>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127654 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-27CMake: updated list of installable header files. PR9321.Oscar Fuentes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126572 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-20Put targets on folders, if the IDE supports the feature.Oscar Fuentes
Requires CMake 2.8.3 or newer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126094 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-20New function for tablegenning: clang_tablegen.Oscar Fuentes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126093 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-01Optimized IR for vec_splatAnton Yartsev
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120610 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-22Undo part of my previous commit to mm_malloc.h, going back to the use ofChandler Carruth
stdlib.h. There were numerous problems with forward declaring 'malloc' and 'free', but the most important is that these are reserved by POSIX and may be implemented via a function-like macro. As suggested by Dale Johannesen, I'm instead guarding the only include of this in our builtin headers with __STDC_HOSTED__, and I've removed the include of the header from the test suite. I'll discuss with folks whether we want to have a hosted section of the test suite or not, and add it (and perhaps other tests) back there if that's the direction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119958 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-16turned pointers into pointers to const in function parameters in all ↵Anton Yartsev
functions/builtins accepting pointers to a const-qualified type according to PIM and "Language Extensions for CBEA" git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119376 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-16Futher reduce the includes of our builtin headers, and teach limits.h to avoidChandler Carruth
include_next when not hosted or unavailable. This follows the pattern in stdint.h and allows these headers to work even in a freestanding configuration without a standard library. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119343 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-19Fix CMake installation of arm_neon.hDouglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116835 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-19lib/Headers/stddef.h: wint_t should be defined whenever <stddef.h> is ↵NAKAMURA Takumi
included with __need_wint_t. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116794 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-18From scratch rewrite of mm_malloc.h.Eric Christopher
Patch by Matthew Beaumont-Gay! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116771 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-14support for AltiVec extensions from the Cell architectureAnton Yartsev
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116478 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-11Eliminate CIndexer::getClangPath(), since libclang no longer dependsDouglas Gregor
on the presence of a 'clang' executable. Simplify CIndexer::getClangResourcesPath() a bit. Patch up the CMake makefiles to install headers into two locations in the build tree, for those silly cases where 'clang' will end up looking into the wrong build directory for headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116260 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-02the mmx intrinsic for pshufw should map to the IR intrinsic, notChris Lattner
to a shufflevector. Otherwise it doesn't turn into a pshufw. This bug was introduced in the mmx rewrite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115423 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-01__builtin_ia32_psrldqi128 tooChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115301 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-01the second argument to __builtin_ia32_pslldqi128 must be an immediate,Chris Lattner
so it needs to be called from a macro, not a function. This is a necessary but insufficient step towards fixing PR8221 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115299 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-30Clang part of MMX rewrite (goes with 115243).Dale Johannesen
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115244 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-29Define _Bool, bool, true, and false macros in <stdbool.h> when we'reDouglas Gregor
in a GNU-compatible C++ dialect. Fixes <rdar://problem/8477819>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115028 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-28Accidentally committed some temporary changes on my branch when reverting ↵Bill Wendling
patches. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114936 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-28Temporarily revert 114929 114925 114924 114921. It looked like they (or at leastBill Wendling
one of them) was causing a series of failures: http://google1.osuosl.org:8011/builders/clang-x86_64-darwin10-selfhost/builds/4518 svn merge -c -114929 https://llvm.org/svn/llvm-project/cfe/trunk --- Reverse-merging r114929 into '.': U include/clang/Sema/Sema.h U include/clang/AST/DeclCXX.h U lib/Sema/SemaDeclCXX.cpp U lib/Sema/SemaTemplateInstantiateDecl.cpp U lib/Sema/SemaDecl.cpp U lib/Sema/SemaTemplateInstantiate.cpp U lib/AST/DeclCXX.cpp svn merge -c -114925 https://llvm.org/svn/llvm-project/cfe/trunk --- Reverse-merging r114925 into '.': G include/clang/AST/DeclCXX.h G lib/Sema/SemaDeclCXX.cpp G lib/AST/DeclCXX.cpp svn merge -c -114924 https://llvm.org/svn/llvm-project/cfe/trunk --- Reverse-merging r114924 into '.': G include/clang/AST/DeclCXX.h G lib/Sema/SemaDeclCXX.cpp G lib/Sema/SemaDecl.cpp G lib/AST/DeclCXX.cpp U lib/AST/ASTContext.cpp svn merge -c -114921 https://llvm.org/svn/llvm-project/cfe/trunk --- Reverse-merging r114921 into '.': G include/clang/AST/DeclCXX.h G lib/Sema/SemaDeclCXX.cpp G lib/Sema/SemaDecl.cpp G lib/AST/DeclCXX.cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114933 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-18formatted everything to fit within 80 columnsAnton Yartsev
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114249 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-05fix PR7192 by defining wchar_t in a more conventional way. TheChris Lattner
type of L"x" can change based on command line arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113127 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-27fix incorrect MM_HINT_ definitions, PR8011Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112283 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-26Move some type defines from smmintrin.h to emmintrin.h to match whereEric Christopher
gcc defines them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112146 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-22Add x86intrin.h which is generic x86 intrinsics for more than just Intel. ThusNick Lewycky
far, this just #include's immintrin.h for compatibility. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111785 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-20Disallow direct inclusion of avxintrin.h. Users should include immintrin.h ↵Benjamin Kramer
instead. This matches GCC's behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111692 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-20Add immintrin meta header.Benjamin Kramer
- This is the official way to get AVX intrinsics, we might want to disallow direct inclusion of avxintrin.h, just like GCC does. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111660 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-20alphabeticalizeChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111654 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-20hopefully unbreak the msvc buildbot.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111653 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-20Fix header comments.Benjamin Kramer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111645 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-20fix some vector extractions to return properly zero extended valuesChris Lattner
(instead of sign extending) to match ICC. GCC is changing this in a series of their own PRs (e.g. 41323). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111637 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-19support for predicates with bool/pixel argumentsAnton Yartsev
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111515 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-19support for the rest of AltiVec functions with bool/pixel arguments and ↵Anton Yartsev
return values (except predicates) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111511 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-19support for vec_perm and all dependent functions (vec_mergeh, vec_mergel, ↵Anton Yartsev
vec_pack, vec_sld, vec_splat) with bool/pixel arguments and return values git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111509 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-16support for vec_add, vec_adds, vec_and, vec_andc with bool argumentsAnton Yartsev
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111141 91177308-0d34-0410-b5e6-96231b3b80d8