summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
* x86-32 Darwin ABI: Handle direct return of vectors.Daniel Dunbar2009-04-011-1/+15
| | | | | | - Current return-arguments-32 status is: 8 out of 1000 failures (-7) llvm-svn: 68192
* Fix a subtle bug where the cleanup scope entries had a dangling block referenceDaniel Dunbar2009-04-011-0/+10
| | | | | | | | | - <rdar://problem/6732143> Crash when generating @synchronize for zero-cost exception - Thanks to Anders for helping track down the problem. llvm-svn: 68186
* Fix pascal string support; testcase from mailing list message.Eli Friedman2009-04-011-0/+8
| | | | llvm-svn: 68181
* Add Target hooks for IRgen of [cf]string literals.Daniel Dunbar2009-03-311-0/+9
| | | | | | | | | | | - Notably, set section on cfstring literal string data (for now, this is done everywhere because it matches what we were already doing for the CFString data itself) - <rdar://problem/6599098> [irgen] linker requires objc string data to go into cstring llvm-svn: 68160
* Change UsedArray to be a vector of WeakVH to fix a dangling pointer problem ↵Chris Lattner2009-03-311-0/+5
| | | | | | | | that occurs when attribute(used) and asm renaming are used together. llvm-svn: 68155
* x86_32 Darwin ABI: Treat empty unions like empty structures.Daniel Dunbar2009-03-311-2/+10
| | | | | | - Current return-arguments-32 status: 15/1000 failures llvm-svn: 68132
* Codegen sometimes crashes on comparisons that aren't legal, justChris Lattner2009-03-311-2/+8
| | | | | | | disable this feature for now, to err on the side of rejecting instead of sometimes crashing. rdar://6326239 llvm-svn: 68088
* Move where block-related variables are initialized so that block Eli Friedman2009-03-281-2/+2
| | | | | | types don't get generated when blocks aren't used. llvm-svn: 67898
* Fix silly mistake in test.Eli Friedman2009-03-281-2/+2
| | | | llvm-svn: 67897
* Misc small fixes/cleanups/comment changes.Eli Friedman2009-03-281-0/+3
| | | | llvm-svn: 67895
* Change compound assignment operators to keep track of both the promoted Eli Friedman2009-03-282-1/+9
| | | | | | | | | | | | | | | | | LHS type and the computation result type; this encodes information into the AST which is otherwise non-obvious. Fix Sema to always come up with the right answer for both of these types. Fix IRGen and the analyzer to account for these changes. This fixes PR2601. The approach is inspired by PR2601 comment 2. Note that this changes real *= complex in CodeGen from a silent miscompilation to an explicit error. I'm not really sure that the analyzer changes are correct, or how to test them... someone more familiar with the analyzer should check those changes. llvm-svn: 67889
* Fix <rdar://problem/6724396>, where we were silently droppingDouglas Gregor2009-03-271-1/+6
| | | | | | GNU-style array designators, causing us to emit broken initializers. llvm-svn: 67878
* Driver: Forward -fno-common to clang.Daniel Dunbar2009-03-261-0/+6
| | | | | | - <rdar://problem/6710978> ccc/clang-driver ignore -fno-common llvm-svn: 67762
* Fix for PR3869: actually enforce that the argument of an indirect goto Eli Friedman2009-03-261-0/+4
| | | | | | is of type void*. I'll try to add the appropriate checking later. llvm-svn: 67721
* Remove -f__block as codegen for __block variables should be solid.Mike Stump2009-03-251-1/+1
| | | | llvm-svn: 67697
* Fixup codegen for block literals that bleed copy/dispose informationMike Stump2009-03-251-0/+1
| | | | | | from previous block literals. llvm-svn: 67696
* Support member reference on ?: of struct type.Daniel Dunbar2009-03-241-0/+6
| | | | llvm-svn: 67603
* Rename clang to clang-cc.Daniel Dunbar2009-03-24160-184/+184
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Use not instead of ! in tests.Daniel Dunbar2009-03-241-2/+2
| | | | llvm-svn: 67601
* Fix a couple of tests.Eli Friedman2009-03-241-1/+1
| | | | llvm-svn: 67592
* Fix a subtle bug in CodeGen for the increment of a bitfield.Eli Friedman2009-03-231-0/+7
| | | | llvm-svn: 67499
* switch getBuiltinLibFunction to use the new GetOrCreateLLVMFunction Chris Lattner2009-03-221-0/+8
| | | | | | | | functionality, fixing a crash on the attached testcase. Eliminate the BuiltinFunctions cache, as it can contain dangling pointers. This fixes a bunch of valgrind errors on test/CodeGen/builtins.c llvm-svn: 67484
* make alias definition logic more similar to functions/globals.Chris Lattner2009-03-221-0/+7
| | | | llvm-svn: 67481
* fix PR3200 by making alias emission use the new infrastructure. Fold Chris Lattner2009-03-223-21/+13
| | | | | | some tests into the alias.c file. llvm-svn: 67479
* fix a fixme: non-proto struct returning function definitions should be compiledChris Lattner2009-03-221-1/+5
| | | | | | | | | to something like: define void @bar(%struct.foo* noalias sret %agg.result) nounwind { instead of: define void @bar(%struct.foo* noalias sret %agg.result, ...) nounwind { llvm-svn: 67475
* Fixup codegen for nested block literals so that we generateMike Stump2009-03-211-5/+9
| | | | | | copy_helpers and dispose_helpers as necessary for them. llvm-svn: 67453
* fix a crash that could occur when a variable declaration became aChris Lattner2009-03-211-0/+11
| | | | | | function definition. llvm-svn: 67446
* simplify and cleanup global variable creation stuff to all go through oneChris Lattner2009-03-211-0/+10
| | | | | | code path. llvm-svn: 67445
* fix several problems with asm renaming, by pulling it into the mangling code:Chris Lattner2009-03-211-1/+20
| | | | | | | | 1. it wasn't applying to definitions, only declarations, e.g. int x __asm("foo") 2. multiple definitions were conflicting, they weren't getting merged. 3. the code was duplicated in several places. llvm-svn: 67442
* Allow flexible array initializers that are not surrounded byDouglas Gregor2009-03-201-0/+8
| | | | | | | | braces. We now build the appropriate fully-structured initializer list for such things. Per PR3618, verified that we're getting the right code generation. llvm-svn: 67353
* IRgen support for alias of global variable.Daniel Dunbar2009-03-191-0/+13
| | | | | | - PR3818. llvm-svn: 67297
* PR3835: Interaction with ABI structure passing can inhibitDaniel Dunbar2009-03-181-0/+21
| | | | | | readnone/readonly attributes. llvm-svn: 67224
* fix the more complex cases by actually codegen'ing the right expr :)Chris Lattner2009-03-181-0/+6
| | | | llvm-svn: 67219
* add codegen support for casting an element to a union.Chris Lattner2009-03-181-0/+3
| | | | | | | There are some more complex cases (_Complex and structs) that I'm still working on. llvm-svn: 67218
* Add codegen support for aggregate BlockDeclRefExprs.Mike Stump2009-03-181-4/+10
| | | | llvm-svn: 67207
* fix PR3809, codegen for inc/dec of function pointers.Chris Lattner2009-03-181-0/+12
| | | | llvm-svn: 67165
* teach codegen to handle noop casts as lvalues.Chris Lattner2009-03-181-0/+8
| | | | llvm-svn: 67164
* Fix failing test case.Anders Carlsson2009-03-181-1/+1
| | | | llvm-svn: 67147
* Initialize the cleanup.dst variable if necessary. Fixes PR3789.Anders Carlsson2009-03-171-0/+15
| | | | llvm-svn: 67075
* We want to grep the output, not the input :-)Anders Carlsson2009-03-171-1/+1
| | | | llvm-svn: 67074
* Do up codegen for function static data and externs in functions in blockMike Stump2009-03-131-1/+12
| | | | | | literals. llvm-svn: 66984
* x86_32 ABI: Don't try and expand structures with bitfields.Daniel Dunbar2009-03-111-0/+67
| | | | | | | | | | - This is an ABI incompatiblity, but this is not likely to be a huge deal in practice. For now we at least generate self consistent code instead of crashing. - <rdar://problem/6657601> x86-32 ABI: Bitfields in small structures are not passed correctly llvm-svn: 66713
* Fix PR3682 by just disabling a broken assertion. This check should beChris Lattner2009-03-101-1/+7
| | | | | | | | done in sema, and is reflected by the existing PR3258. In the meantime, fix PR3682 by disabling a bogus assertion (which doesn't account for + operands). llvm-svn: 66533
* reduce duplication of parsing code between %0 and %x0 andChris Lattner2009-03-101-1/+6
| | | | | | add support for modifiers on named references, like %c[foo]. llvm-svn: 66532
* move matching of named operands into AsmStmt class. At the sameChris Lattner2009-03-101-13/+12
| | | | | | | time handle + operands in operand counting, fixing asm.c:t7 to expand into $2 instead of $1. llvm-svn: 66531
* codegen support for dispose helpers for block literals.Mike Stump2009-03-071-1/+1
| | | | llvm-svn: 66320
* Codegen support for copy helpers for block literals.Mike Stump2009-03-071-1/+1
| | | | llvm-svn: 66319
* x86_64 ABI: Handle long double in union when upper eightbyte resultsDaniel Dunbar2009-03-061-1/+12
| | | | | | | in a lone X87 class. - PR3735. llvm-svn: 66277
* IRgen support for weak_import.Daniel Dunbar2009-03-061-0/+10
| | | | | | - <rdar://problem/6652110> clang should support weak_import llvm-svn: 66270
* Testcase for last fix.Mike Stump2009-03-061-2/+4
| | | | llvm-svn: 66258
OpenPOWER on IntegriCloud