summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
* X86: add more GATHER intrinsics in ClangManman Ren2012-06-291-3/+50
| | | | | | | | | | | | | | | Corrected type for index of _mm256_mask_i32gather_pd from 256-bit to 128-bit Corrected types for src|dst|mask of _mm256_mask_i64gather_ps from 256-bit to 128-bit Support the following intrinsics: _mm_mask_i32gather_epi64, _mm256_mask_i32gather_epi64, _mm_mask_i64gather_epi64, _mm256_mask_i64gather_epi64, _mm_mask_i32gather_epi32, _mm256_mask_i32gather_epi32, _mm_mask_i64gather_epi32, _mm256_mask_i64gather_epi32 llvm-svn: 159403
* Support MIPS DSP Rev1 intrinsics. Simon Atanasyan2012-06-281-0/+227
| | | | | | This patch was reviewed in the llvm-commits list by Jim Grosbach. llvm-svn: 159366
* Add -ftls-model command-line flag.Hans Wennborg2012-06-281-0/+28
| | | | | | This allows for setting the default TLS model. (PR9788) llvm-svn: 159336
* Propagate lvalue alignment into bitfields. Per report on cfe-dev.Eli Friedman2012-06-271-0/+18
| | | | llvm-svn: 159295
* Check for non-POD vararg argument type after default argument promotion, notRichard Smith2012-06-271-1/+7
| | | | | | before, so we don't incorrectly think arguments of function type are non-POD. llvm-svn: 159290
* unit test tweakAndrew Trick2012-06-261-8/+8
| | | | llvm-svn: 159225
* X86: add GATHER intrinsics (AVX2) in ClangManman Ren2012-06-261-0/+43
| | | | | | | | | Support the following intrinsics: _mm_mask_i32gather_pd, _mm256_mask_i32gather_pd, _mm_mask_i64gather_pd _mm256_mask_i64gather_pd, _mm_mask_i32gather_ps, _mm256_mask_i32gather_ps _mm_mask_i64gather_ps, _mm256_mask_i64gather_ps llvm-svn: 159222
* MachineBlockPlacement would prefer that clang lay out blocks in source order.Andrew Trick2012-06-261-0/+40
| | | | llvm-svn: 159215
* block literal irgen: several improvements on naming blockFariborz Jahanian2012-06-265-8/+8
| | | | | | | | | | | | literal helper functions. All helper functions (global and locals) use block_invoke as their prefix. Local literal helper names are prefixed by their enclosing mangled function names. Blocks in non-local initializers (e.g. a global variable or a C++11 field) are prefixed by their mangled variable name. The descriminator number added to end of the name starts off with blank (for first block) and _<N> (for the N+2-th block). llvm-svn: 159206
* [asan] add missing asan instrumentation in generated global init functionsKostya Serebryany2012-06-261-0/+6
| | | | llvm-svn: 159191
* Support the tls_model attribute (PR9788)Hans Wennborg2012-06-231-0/+15
| | | | | | | | | | | | | | This adds support for the tls_model attribute. This allows the user to choose a TLS model that is better than what LLVM would select by default. For example, a variable might be declared as: __thread int x __attribute__((tls_model("initial-exec"))); if it will not be used in a shared library that is dlopen'ed. This depends on LLVM r159077. llvm-svn: 159078
* revert CodeGen support for the alloc_size attribute until we finish the ↵Nuno Lopes2012-06-221-11/+0
| | | | | | design of a more generic metadata node llvm-svn: 159016
* Add the testcase from pr13168.Rafael Espindola2012-06-211-0/+7
| | | | llvm-svn: 158950
* Reapplying the changes from r158717 as they were rolled back to avoid merge ↵Aaron Ballman2012-06-191-0/+8
| | | | | | conflicts from a separate problematic patch. llvm-svn: 158750
* Revert r158700 and dependent patches r158716, r158717, and r158731.Jakob Stoklund Olesen2012-06-191-8/+0
| | | | | | | | The original r158700 caused crashes in the gcc test suite, g++.abi/vtable3a.C among others. It also caused failures in the libc++ test suite. llvm-svn: 158749
* Improves parsing and semantic analysis for MS __declspec attributes. This ↵Aaron Ballman2012-06-191-0/+8
| | | | | | includes support for the align (which fixes PR12631). llvm-svn: 158717
* [MSExtensions] Add support for __forceinline.Michael J. Spencer2012-06-181-0/+14
| | | | | | __forceinline is a combination of the inline keyword and __attribute__((always_inline)) llvm-svn: 158653
* Fix Sema and IRGen for atomic compound assignment so it has the right ↵Eli Friedman2012-06-161-3/+12
| | | | | | | | semantics when promotions are involved. (As far as I can tell, this only affects some edge cases.) llvm-svn: 158591
* Add XOP frcz instrinsics.Craig Topper2012-06-151-0/+30
| | | | llvm-svn: 158492
* Add XOP permute intrinsics.Craig Topper2012-06-121-0/+20
| | | | llvm-svn: 158351
* Add XOP shift and compare intrinsics.Craig Topper2012-06-111-0/+80
| | | | llvm-svn: 158300
* Add XOP vprot* instruction intrinsicsCraig Topper2012-06-101-0/+40
| | | | llvm-svn: 158292
* More XOP intrinsicsCraig Topper2012-06-101-0/+90
| | | | llvm-svn: 158287
* Begin adding XOP intrinsicsCraig Topper2012-06-101-0/+66
| | | | llvm-svn: 158286
* Rename a test case to a more generic name. This is a completely uselessChandler Carruth2012-06-081-0/+0
| | | | | | | test, but David Sehr is looking at spiffing it up and adding some proper tests for our alloca codegen. llvm-svn: 158181
* User better API for vla in compund literals.Fariborz Jahanian2012-06-071-5/+34
| | | | | | // rdar://11485774 llvm-svn: 158157
* When emitting compund literal of vla pointer elements, make Fariborz Jahanian2012-06-071-0/+20
| | | | | | | sure to emit vla size to prevent an irgen crash. // rdar://11485774 llvm-svn: 158153
* reverse r158117.Fariborz Jahanian2012-06-061-20/+0
| | | | llvm-svn: 158119
* When doing arithmatic on vla pointer, make sureFariborz Jahanian2012-06-061-0/+20
| | | | | | | to emit vla size to prevent an irgen crash. // rdar://11485774 llvm-svn: 158117
* Fix a bug with va_arg and vectors on Darwin x86-32. <rdar://problem/11592208>.Eli Friedman2012-06-051-0/+13
| | | | llvm-svn: 158017
* Add fma3 intrinsic header file.Craig Topper2012-06-041-0/+166
| | | | llvm-svn: 157913
* Upgrade test for the fma4->fma intrinsic change.Benjamin Kramer2012-06-031-32/+32
| | | | llvm-svn: 157900
* Add builtin for pclmulqdq instruction.Craig Topper2012-05-311-0/+11
| | | | llvm-svn: 157733
* Add an ammintrin.h header for SSE4a intrinsics.Benjamin Kramer2012-05-291-0/+39
| | | | | | | This is a clean-room implementation based on public documentation and I tried to validate it as much as possible against gcc. llvm-svn: 157638
* add CodeGen support for the alloc_size attributeNuno Lopes2012-05-251-0/+11
| | | | llvm-svn: 157483
* Un-XFAIL CodeGen/builtins-nvptx.c now that the proper changes haveJustin Holewinski2012-05-241-2/+0
| | | | | | landed in LLVM core llvm-svn: 157418
* XFAIL this test, which does not pass on trunk since the grandJohn McCall2012-05-241-0/+1
| | | | | | renaming in r157403. llvm-svn: 157413
* Replace PTX back-end with NVPTX back-end in all places where Clang caresJustin Holewinski2012-05-242-5/+5
| | | | | | NV_CONTRIB llvm-svn: 157403
* If the first argument of __builtin_object_size can be folded to a constantRichard Smith2012-05-231-1/+4
| | | | | | | | pointer, but such folding encounters side-effects, ignore the side-effects rather than performing them at runtime: CodeGen generates wrong code for __builtin_object_size in that case. llvm-svn: 157310
* wire -fbounds-checking to the new LLVM bounds checking passNuno Lopes2012-05-221-10/+11
| | | | llvm-svn: 157262
* revert the usage of the objectsize intrinsic with 3 parameters (to match ↵Nuno Lopes2012-05-222-6/+6
| | | | | | LLVM r157255) llvm-svn: 157256
* XFAIL this test on MIPS.Akira Hatanaka2012-05-161-1/+1
| | | | | | Since r156650, clang has stopped emitting byval arguments for MIPS targets. llvm-svn: 156954
* We were already passing the case in pr9356. Add it to attributes.c to makeRafael Espindola2012-05-131-0/+8
| | | | | | sure we don't regress. I will add a warning in a sec. llvm-svn: 156726
* Add support for __attribute__((hot)) and __attribute__((cold)).Benjamin Kramer2012-05-121-0/+9
| | | | | | | | Currently cold functions are marked with the "optsize" attribute in CodeGen so they are always optimized for size. The hot attribute is just ignored, LLVM doesn't have a way to express hotness at the moment. llvm-svn: 156723
* Coerce byval aggregate arguments to integers whose size matches the integerAkira Hatanaka2012-05-112-1/+16
| | | | | | | register size of the target architecture. llvm-svn: 156650
* Fix handling of vector return types.Akira Hatanaka2012-05-111-0/+21
| | | | | | | A vector should be returned via the hidden pointer argument except if its size is equal to or smaller than 16-bytes and the target ABI is N32 or N64. llvm-svn: 156642
* hopefully fix a bunch of ARM buildbot failuresNuno Lopes2012-05-0914-19/+19
| | | | llvm-svn: 156513
* update calls to objectsize intrinsic to match LLVM r156473Nuno Lopes2012-05-092-2/+27
| | | | | | add a test for -fbounds-checking code generation llvm-svn: 156474
* The address of a vla is actually complex and requires a dereference.Eric Christopher2012-05-081-0/+12
| | | | | | Part of rdar://11352000 llvm-svn: 156407
* hopefully unbreak some buildbotsNuno Lopes2012-05-081-2/+2
| | | | llvm-svn: 156357
OpenPOWER on IntegriCloud