summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/decl.c
Commit message (Collapse)AuthorAgeFilesLines
* Make constant aggregate constant initializers private linkage.Eric Christopher2011-08-241-4/+4
| | | | | | | | | After talking with John making this the case for all of these is the right way to go. Fixes rdar://9804564 and PR10414 llvm-svn: 138418
* clang side to match the LLVM IR type system rewrite patch.Chris Lattner2011-07-091-2/+2
| | | | llvm-svn: 134831
* Add unnamed_addr to internal globals which are only used as an operand to ↵Eli Friedman2011-05-271-2/+2
| | | | | | memcpy. (Spotted by looking at IR.) llvm-svn: 132226
* Revert r126422 "Use private linkage to avoid symbol conflicts inDouglas Gregor2011-03-061-1/+1
| | | | | | corner cases like the one in PR9301." which caused PR9416. llvm-svn: 127136
* Use private linkage to avoid symbol conflicts in corner cases like the oneRafael Espindola2011-02-241-1/+1
| | | | | | in PR9301. llvm-svn: 126422
* fix rdar://8147692 - yet another crash due to my abi work.Chris Lattner2010-07-011-0/+15
| | | | llvm-svn: 107387
* Reapply:Chris Lattner2010-06-301-0/+13
| | | | | | | | | | r107173, "fix PR7519: after thrashing around and remembering how all this stuff" r107216, "fix PR7523, which was caused by the ABI code calling ConvertType instead" This includes a fix to make ConvertTypeForMem handle the "recursive" case, and call it as such when lowering function types which have an indirect result. llvm-svn: 107310
* Revert r107173, "fix PR7519: after thrashing around and remembering how all ↵Daniel Dunbar2010-06-301-13/+0
| | | | | | this stuff", it broke bootstrap. llvm-svn: 107232
* fix PR7519: after thrashing around and remembering how all this stuffChris Lattner2010-06-291-0/+13
| | | | | | | works, the fix is quite simple: just make sure to call ConvertTypeRecursive when the function type being lowered is in the midst of ConvertType. llvm-svn: 107173
* fix a bogus assertion exposed by a recent change: packing theChris Lattner2010-04-161-0/+5
| | | | | | | | | | | | | | | | | struct may cause it to shrink more than one byte. Before my recent changes we compiled the new test into: %0 = type { [6 x i8] } @x = global %0 { [6 x i8] undef }, align 2 ; <%0*> [#uses=0] which is obviously bogus. Now we compile it into: %0 = type <{ i32, i8, i8 }> @x = global %0 zeroinitializer, align 2 ; <%0*> [#uses=0] Where the last byte only is tail padding. llvm-svn: 101536
* emit padding as undef values, take 2Nuno Lopes2010-04-161-1/+1
| | | | | | merge also a few tests I had here for this feature, and FileCheck'ize one file llvm-svn: 101535
* Rework the ConstStructBuilder code to emit missing initializerChris Lattner2010-04-131-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | elements with explicit zero values instead of with tail padding. On an example like this: struct foo { int a; int b; }; struct foo fooarray[] = { {1, 2}, {4}, }; We now lay this out as: @fooarray = global [2 x %struct.foo] [%struct.foo { i32 1, i32 2 }, %struct.foo { i32 4, i32 0 }] instead of as: @fooarray = global %0 <{ %struct.foo { i32 1, i32 2 }, %1 { i32 4, [4 x i8] zeroinitializer } }> Preserving both the struct type of the second element, but also the array type of the entire thing. llvm-svn: 101155
* fix PR6660/6168: emit padding as zeros instead of undef. Because Chris Lattner2010-04-121-2/+17
| | | | | | | | trailing fields may not be represented in initializer lists, they are being handled as padding and those fields *must* be zero initialized. llvm-svn: 101067
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Remove include of system header.Daniel Dunbar2009-12-081-2/+0
| | | | llvm-svn: 90883
* fix comment.Chris Lattner2009-12-051-1/+1
| | | | llvm-svn: 90660
* consolidate some tests.Chris Lattner2009-12-051-0/+23
| | | | llvm-svn: 90659
* implement rdar://7346691 by codegen'ing struct/array initializersChris Lattner2009-12-051-0/+28
| | | | | | to a memset or a memcpy from a global when possible. llvm-svn: 90658
* simplify a condition and add a testcase.Chris Lattner2009-12-051-0/+12
llvm-svn: 90652
OpenPOWER on IntegriCloud