summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/struct-init.c
Commit message (Collapse)AuthorAgeFilesLines
* Add error checking to reject neon_vector_type attribute on targets without NEON.Amara Emerson2013-09-161-1/+1
| | | | | | Patch by Artyom Skrobov. llvm-svn: 190801
* Tests: check for target availability for target-specific tests.Jim Grosbach2012-07-091-0/+1
| | | | | | | | Lots of tests are using an explicit target triple w/o first checking that the target is actually available. Add a REQUIRES clause to a bunch of them. This should hopefully unbreak bots which don't configure w/ all targets enabled. llvm-svn: 159949
* test/CodeGen/struct-init.c, struct-matching-constraint.c: Tweak commandline, ↵NAKAMURA Takumi2011-07-281-1/+1
| | | | | | or they would not be recognized as armv7 on some hosts. llvm-svn: 136330
* Fix this up for clang codegen versus llvm-gcc.Eric Christopher2011-07-281-6/+4
| | | | llvm-svn: 136308
* Enhance the IR type lowering code to be much smarter about recursively loweringChris Lattner2011-07-151-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | types. Fore xample, we used to lower: struct bar { int a; }; struct foo { void (*FP)(struct bar); } G; to: %struct.foo = type { {}* } since the function pointer would cause recursive translation of bar and we didn't know if that would get us into trouble. We are now smart enough to know that it is fine, so we get this type instead: %struct.foo = type { void (i32)* } Codegen still needs to be prepared for uncooperative types at any place, which is why I let the maximally uncooperative code sit around for awhile to help shake out the bugs. llvm-svn: 135244
* When initializing struct members, the important thing is that the ↵Argyrios Kyrtzidis2011-02-011-1/+12
| | | | | | | | | | "initializing" expression is compatible, not having the same type. Fix rdar://8183908 in which compatible vector types weren't initialized properly leading to a crash. llvm-svn: 124637
* fix PR7564 a cast where the bitfield struct init codeChris Lattner2010-07-051-0/+8
| | | | | | wasn't handling array padding elements right. llvm-svn: 107621
* 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 tabs, and whitespace cleanups.Mike Stump2009-09-091-2/+2
| | | | llvm-svn: 81346
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* eliminate some random .ll file outputsChris Lattner2009-01-271-1/+1
| | | | llvm-svn: 63117
* Update a number of CodeGen tests to not create .ll files in the testDaniel Dunbar2008-08-211-1/+1
| | | | | | | | directory. - Removed .ll from the svn:ignore lists to try and prevent this. - Added svn:ignore on test/Misc/Output llvm-svn: 55104
* Add code to make test/CodeGen/struct-init.c work correctly without the Eli Friedman2008-06-091-1/+0
| | | | | | | | | | | | | | | pointer cast hack currently in isIntegerConstantExpr (in lib/AST/Expr.cpp). Also removes an odd test that even gcc doesn't accept. The reason the pointer cast hack is relevant here is that it makes Sema end up misinterpreting the relevant expression as a null pointer constant. The reason for this patch is that I plan to remove the pointer cast hack sometime soon because it causes strange issues, especially in its current form; see my recent email to cfe-dev "[PATCH] add constant expression evaluation to the AST and fix PR2413". llvm-svn: 52120
* implement constant expr. sub ptr ptrNuno Lopes2008-06-061-0/+13
llvm-svn: 52049
OpenPOWER on IntegriCloud