summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow a string literal to initialize a tail array (PR8217), patch Chris Lattner2010-10-101-0/+12
| | | | | | by Pierre Habouzit! llvm-svn: 116165
* Implement __builtin_ia32_vec_ext_v2si function (required by Qt).Argyrios Kyrtzidis2010-10-101-0/+1
| | | | llvm-svn: 116162
* Add support for UCNs for character literalsNico Weber2010-10-092-3/+67
| | | | llvm-svn: 116129
* This patch fixes multiple issues in clang's designated init builder andDouglas Gregor2010-10-081-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | completes support for C1X anonymous struct/union init features: * Indexed anonymous member initializers should not be expanded. Doing so makes little sense and would cause unresolvable semantic ambiguity in valid code (regression introduced by r69153). * Subobject initialization of (possibly nested) anonymous members are now referred to with paths relative to the naming record context, eliminating the synthesis of incorrect implicit InitListExprs that caused CodeGen to assert. * Field lookup was missing a null check in IdentifierInfo comparison which caused lookup for a known (already resolved) field to match the first unnamed data member it encountered leading to silent miscompilation. * Subobject paths are no longer built using the general purpose Sema::BuildAnonymousStructUnionMemberPath(). If any corner cases crop up, we will now assert earlier in Sema instead of passing invalid InitListExprs through to CodeGen. Fixes PR6955, from Alp Toker! llvm-svn: 116098
* tests: Force a triple to avoid wchar_t differences.Daniel Dunbar2010-10-071-1/+1
| | | | llvm-svn: 115970
* Add support for 4-byte UCNs like \U12345678. Warn about UCNs in c90 mode.Nico Weber2010-10-062-1/+24
| | | | llvm-svn: 115743
* Erm...this isn't the same as PR6658.Bill Wendling2010-10-061-1/+0
| | | | llvm-svn: 115737
* MMX conversion work is done. We can remove the FIXMEs.Bill Wendling2010-10-061-5/+2
| | | | llvm-svn: 115736
* Add same hack to mmx-builtins.c as in Headers/c89.c to get it to pass on ↵Bill Wendling2010-10-061-0/+5
| | | | | | Win32. PR6658. llvm-svn: 115735
* Do x86_64.Bill Wendling2010-10-031-1/+1
| | | | llvm-svn: 115460
* Test to verify that all of the MMX builtins are handled by the front-end.Bill Wendling2010-10-031-0/+448
| | | | llvm-svn: 115459
* Clang part of MMX rewrite (goes with 115243).Dale Johannesen2010-09-301-6/+6
| | | | llvm-svn: 115244
* Add support for attribute((naked)), patch by Zoxc on cfe-commits!Daniel Dunbar2010-09-291-0/+9
| | | | | | - Minor style tweaks by me. llvm-svn: 115056
* vla expressions used in __typeof__ must be evaluated.Fariborz Jahanian2010-09-281-0/+12
| | | | | | Fixes rdar://8476159. llvm-svn: 114982
* Patch implements passing arrays to functions expectingFariborz Jahanian2010-09-241-1/+15
| | | | | | vla. Implements pr7827. llvm-svn: 114737
* Don't crash on _Imaginary.Argyrios Kyrtzidis2010-09-231-0/+4
| | | | llvm-svn: 114637
* Tweak test to pass -ffreestanding, to avoid platform dependent header issues.Daniel Dunbar2010-09-231-0/+1
| | | | llvm-svn: 114627
* IRgen/ABI/ARM: Return large vectors in memory.Daniel Dunbar2010-09-231-0/+16
| | | | llvm-svn: 114619
* IRgen/ABI/ARM: Trust the backend to pass vectors correctly for the given ABI.Daniel Dunbar2010-09-231-0/+13
| | | | | | | | | | - Therefore, we can lower out the NEON wrapper structs and pass the vectors directly. This makes a huge difference in the cleanliness of the IR after optimization. - I will trust, but verify, via future ABITest testing (for APCS-GNU, at least). llvm-svn: 114618
* Testcase for r114585.Devang Patel2010-09-221-0/+21
| | | | llvm-svn: 114586
* fix the rest of rdar://8461279 - clang miscompiles address-space qualified ↵Chris Lattner2010-09-211-0/+8
| | | | | | atomics llvm-svn: 114503
* same bug as before, this time with __sync_val_compare_and_swap.Chris Lattner2010-09-211-1/+7
| | | | llvm-svn: 114502
* fix __sync_bool_compare_and_swap to work with address-space qualified types.Chris Lattner2010-09-211-0/+11
| | | | llvm-svn: 114498
* filecheckize.Chris Lattner2010-09-211-19/+87
| | | | llvm-svn: 114497
* Fixes an IRgen ICE due to cast of null pointer toFariborz Jahanian2010-09-211-0/+9
| | | | | | a vla type (fixes pr7827). llvm-svn: 114495
* Implements in IRgen gnu extensions missing LHS forFariborz Jahanian2010-09-201-0/+15
| | | | | | complex conditionals. Radar 8453812. llvm-svn: 114376
* Problem with gnu conditional extension with missingFariborz Jahanian2010-09-181-0/+9
| | | | | | | | | | | | | | LHS and when conditional expression is an array. Since it will be decayed, saved expression must be saved with decayed expression. This is necessary to preserve semantics of this extension (and prevent an IRGen crash which expects an array to always be decayed). I am sure there will be other cases in c++ (aggregate conditionals for example) when saving of the expression must happen after some transformation on conditional expression has happened. Doug, please review. Fixes // rdar://8446940 llvm-svn: 114296
* Added '|' delimiter to separate inline asm multiple alternative constraints ↵John Thompson2010-09-181-0/+12
| | | | | | for Clang side of support. llvm-svn: 114253
* Testcase for r114239.Bill Wendling2010-09-181-0/+26
| | | | llvm-svn: 114247
* Sema/transparent_union: Make sure to add implicit cast when constructingDaniel Dunbar2010-09-171-0/+22
| | | | | | implicit union values for the transparent_union extension. llvm-svn: 114236
* Add a -ftrapv-handler= option which allows a handler to invoke instead of ↵David Chisnall2010-09-171-0/+7
| | | | | | simply aborting when a signed operation overflows. This mirrors the (GCC-incompatible) behaviour from clang 1.0 and 1.1 when -ftrapv was specified, but allows the handler to be defined for each compilation unit. llvm-svn: 114192
* Use a temporary file for output which gets renamed after all the writing is ↵Argyrios Kyrtzidis2010-09-171-0/+1
| | | | | | | | finished. This mainly prevents failures and/or crashes when multiple processes try to read/write the same PCH file. (rdar://8392711&8294781); suggestion & review by Daniel! llvm-svn: 114187
* IRgen/ABI/x86-32: Realign indirect arguments when the ABI requires us to passDaniel Dunbar2010-09-163-22/+33
| | | | | | them with a smaller alignment than the rest of codegen expects. llvm-svn: 114115
* IRgen/ABI/x86_32/Darwin: On Darwin, only structures with SSE vector types ↵Daniel Dunbar2010-09-161-7/+55
| | | | | | | | | | | get passed with a non-default-stack-ABI-alignment (of 16). - This fixes the ABI convenient, but breaks codegen since we now have underaligned arguments. Marginal improvement overall though, and will be fixed in next commit. llvm-svn: 114113
* IRgen/x86_32/Linux: Linux seems to align all stack objects to 4 bytes, unlikeDaniel Dunbar2010-09-161-0/+51
| | | | | | | Darwin. Checked vs the handiest Linux llvm-gcc I had around, someone on Linux is welcome to investigate more. llvm-svn: 114112
* While handling change of file, check if _current_ file is already seen or ↵Devang Patel2010-09-151-0/+15
| | | | | | | | not. If current file is seen then it indicates that end of previous file's lexical scope. This fixes radar 8396182. llvm-svn: 114018
* Revert "Clean up in buildbot directories."Jakob Stoklund Olesen2010-09-151-1/+0
| | | | | | | | | This reverts commit 113814. This patch was never intended to stay in the repository. If you are reading this from the future, we apologize for the noise. llvm-svn: 113990
* Tweak regex not to accidentally match a trailing \r.Benjamin Kramer2010-09-151-1/+1
| | | | llvm-svn: 113966
* Fix pointer-signext.c test case: it was relying on value names, which don't ↵Cameron Esfahani2010-09-151-3/+3
| | | | | | appear in the non-assert build. Switch to using check-next as well. llvm-svn: 113964
* Fix Windows64 target info so pointer arithmetic is done correctly, and no ↵Cameron Esfahani2010-09-151-0/+32
| | | | | | sign extension code is emitted: PtrDiffType needs to be a signed long long. Add a corresponding test case. llvm-svn: 113910
* Fix VLA miscompilation.Argyrios Kyrtzidis2010-09-141-1/+16
| | | | | | | llvm.stacksave/llvm.stackrestore wasn't emitted for VLAs in inner scopes. Fixes r8403108. llvm-svn: 113822
* Clean up in buildbot directories.Jakob Stoklund Olesen2010-09-131-0/+1
| | | | | | | | This test created a statements.ll file until about a month ago. Some buildbots still have this file in their source dir. This is the easiest way to remove the file on all bots. Then I'll revert. llvm-svn: 113814
* Try to get this to stop leaving a temporary file on linux.Eric Christopher2010-09-131-1/+1
| | | | llvm-svn: 113793
* Congruent diagnostic for void* arithmetic.Abramo Bagnara2010-09-131-0/+3
| | | | llvm-svn: 113740
* Have Sema check for validity of CGString literalFariborz Jahanian2010-09-071-3/+1
| | | | | | instead of asserting in IRGen. Fixes radar 8390459. llvm-svn: 113253
* Adjust a test that's expecting optimizations to be doneDale Johannesen2010-09-071-3/+3
| | | | | | on MMX palignr; we don't do this for the intrinsics. llvm-svn: 113234
* Due to asmparser improvements, this error message is now betterChris Lattner2010-09-061-1/+1
| | | | llvm-svn: 113177
* move the hackaround for PR6537 to catch unions as well,Chris Lattner2010-09-061-4/+23
| | | | | | fixing the ICE in PR7151 llvm-svn: 113130
* PR7242: Make sure to use a different context for evaluating constantEli Friedman2010-09-061-0/+9
| | | | | | | | initializers, so the result of the evaluation doesn't leak through inconsistently. Also, don't evaluate references to variables with initializers with side-effects. llvm-svn: 113128
* A constant initializer never matches the type of the variable it'sJohn McCall2010-09-031-1/+6
| | | | | | | initializing; it at best matches the element type of the variable it's initializing. Fixes PR8073. llvm-svn: 112992
OpenPOWER on IntegriCloud