summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
* these tests include section specifiers that aren't valid on the Chris Lattner2009-08-102-2/+2
| | | | | | mac, use an explicit triple. llvm-svn: 78583
* Add tests.Anders Carlsson2009-08-081-0/+23
| | | | llvm-svn: 78491
* weak globals that are const should get weak_odr linkage.Chris Lattner2009-08-051-0/+16
| | | | | | add a fixme about C++ const. llvm-svn: 78159
* rdar://7119244 - globals with an explicit section specified don't getChris Lattner2009-08-051-1/+8
| | | | | | common linkage. llvm-svn: 78158
* Revert the fix for PR3800, it broke things.Anders Carlsson2009-08-041-0/+10
| | | | llvm-svn: 78084
* Fix test case for Darwin10 (which sets ssp), and move to CodeGen/Daniel Dunbar2009-08-041-0/+158
| | | | llvm-svn: 78049
* Make sure UTF-16 strings end with a 16-bit null (as opposed to 8-bit).Daniel Dunbar2009-08-031-2/+3
| | | | llvm-svn: 78001
* Don't evaluate inout constraints twice. Fixes PR3800.Anders Carlsson2009-08-021-0/+8
| | | | llvm-svn: 77854
* Fix a minor issue with unions in the new struct building code.Eli Friedman2009-08-011-0/+4
| | | | llvm-svn: 77829
* New test case for rev. 77694.Devang Patel2009-07-311-0/+5
| | | | llvm-svn: 77698
* Enable the new struct type builder now that the constant struct builder ↵Anders Carlsson2009-07-275-14/+14
| | | | | | works. (The old code will still be there until we know that everything works well. llvm-svn: 77190
* Enable the new constant struct builder by default. The old code is still in ↵Anders Carlsson2009-07-273-5/+6
| | | | | | place but will be removed shortly. The new struct builder works on big endian systems. llvm-svn: 77185
* Add noreturn as a type attribute, handle printing for them and handleMike Stump2009-07-251-2/+2
| | | | | | calls to noreturn function pointers when CFG building. llvm-svn: 77089
* Remove empty tests, left over from an svn revert.Daniel Dunbar2009-07-252-0/+0
| | | | llvm-svn: 77068
* MultiTestRunner: Validate '&&' at the end of RUN lines.Daniel Dunbar2009-07-2513-17/+17
| | | | | | | | - This is just to normalize, these will go away soon hopefully. Added all the missing '&&'s that have crept in. :) llvm-svn: 77062
* Semantic checking for main().John McCall2009-07-251-1/+1
| | | | | | | Fix some invalid main() methods in the test suite that were nicely exposed by the new checks. llvm-svn: 77047
* Implement new warning for functions declared 'noreturn' when they fall off ↵Mike Stump2009-07-241-2/+2
| | | | | | the end. llvm-svn: 76932
* Output UTF-16 string literals independent of host byte order.Daniel Dunbar2009-07-231-4/+10
| | | | | | | | - Steve, can you take a look at this? It seems like this code should live elsewhere, and there is a FIXME about having Sema validates the UTF-8 to UTF-16 conversion. llvm-svn: 76915
* Correct a thinko in bitfield layout code. Fixes PR4611.Anders Carlsson2009-07-231-0/+6
| | | | llvm-svn: 76898
* We don't need to keep track of the packed alignment, just whether the struct ↵Anders Carlsson2009-07-231-0/+7
| | | | | | is packed or not. Fixes PR4610. llvm-svn: 76884
* Use arrays as union padding. Also, since the resulting struct will always ↵Anders Carlsson2009-07-231-2/+2
| | | | | | contain a single element and either a single i8 element or an array of i8s, there's no reason to use a packed struct. llvm-svn: 76854
* Make vectorized floating-point comparisons work without crashing.Eli Friedman2009-07-221-0/+14
| | | | llvm-svn: 76726
* Preserve address space information through member accesses, e.g., Mon P Wang2009-07-224-0/+85
| | | | | | | __attribute__((address_space(1))) struct {int arr[ 3 ]; } *p1; ... = p1->arr[2]; // load from address space 1 llvm-svn: 76717
* Revert this, was a bug in my new warning code, not the test case.Mike Stump2009-07-211-1/+0
| | | | llvm-svn: 76690
* Prep for new warning.Mike Stump2009-07-2112-60/+72
| | | | llvm-svn: 76638
* Detect when the current generation point is unreachable after emittingDaniel Dunbar2009-07-191-0/+11
| | | | | | | | | | expressions. - This generally catches the important case of noreturn functions. - With the last two changes, we are down to 152 unreachable blocks emitted on 403.gcc, vs the 1805 we started with. llvm-svn: 76364
* Avoid generation of dead code in a few more situations.Daniel Dunbar2009-07-191-0/+26
| | | | | | | | | | | | | - Emit variable declarations as "simple", we want to avoid forcing the creation of a dummy basic block, but still need to make the variable available for later use. - With that, we can now skip IRgen for other unreachable statements (which don't define a label). - Anders, I added two fixmes on calls to EmitVLASize, can you check them? llvm-svn: 76361
* codegen string literals using private linkage now like llvm-gcc, eliminatingChris Lattner2009-07-162-6/+5
| | | | | | some target hooks. llvm-svn: 75895
* reimplement vector comparisons as [fi]cmp+sext instead of using v[if]cmp.Chris Lattner2009-07-081-4/+1
| | | | | | | Also, enable them in sema so that they are tested, and now that the x86 backend has stablized. llvm-svn: 74983
* make these tests pass with the stack canary stuff even on targets where they ↵Chris Lattner2009-06-282-3/+3
| | | | | | default to on. llvm-svn: 74412
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-281-0/+22
| | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405
* Revrt PR4228 fix for now.Devang Patel2009-06-262-18/+0
| | | | llvm-svn: 74304
* fix PR4423.Chris Lattner2009-06-231-0/+4
| | | | llvm-svn: 73938
* Add a target triple to a couple of tests which depend on it. Reported Eli Friedman2009-06-182-3/+3
| | | | | | by Mark Cianciosa on cfe-dev. llvm-svn: 73672
* It is possible that main input file does not have any symbol with debug ↵Devang Patel2009-06-162-0/+18
| | | | | | | | info. To handle this edge case, always create main compile unit first. This fixes PR 4228. llvm-svn: 73520
* testcase for r72869, it turns out that it happens in Ruby.Chris Lattner2009-06-161-0/+11
| | | | llvm-svn: 73514
* PR4390: Make sure to handle anonymous unions correctly while building Eli Friedman2009-06-141-0/+7
| | | | | | static intializers for structs. llvm-svn: 73349
* Fix the calling convention for structs/unions containing SSE vectors on Eli Friedman2009-06-131-0/+5
| | | | | | x86-32. This is slightly messy, but I think it's consistent with gcc. llvm-svn: 73306
* Fix PR4372, another case where non-prototyped functions can prevent Chris Lattner2009-06-131-1/+8
| | | | | | always_inline from working. llvm-svn: 73273
* Fix test, which could miss failures, and also avoid leaving temporary .i file inDaniel Dunbar2009-06-081-3/+4
| | | | | | source directory. llvm-svn: 73094
* Add stack alignment to x86_64 target data.Daniel Dunbar2009-06-081-0/+7
| | | | | | | - <rdar://problem/6948443> WARNING: Linking two modules of different data layouts! llvm-svn: 73093
* Remove a few more vector builtins.Eli Friedman2009-06-071-5/+0
| | | | llvm-svn: 73022
* Now that LLVM CodeGen can handle the generic variations a bit better, Eli Friedman2009-06-071-4/+0
| | | | | | get rid of a few more clang vector builtins. llvm-svn: 73015
* PR4339: make sure to properly extend/trunc the index of a vector element Eli Friedman2009-06-061-0/+8
| | | | | | | insert/extract; the relevant instructions are defined to take only an i32. llvm-svn: 73005
* Test changes to account for removed builtins.Eli Friedman2009-06-062-151/+0
| | | | llvm-svn: 73004
* weak_import should not make definitions have weak linkage.Daniel Dunbar2009-06-051-1/+11
| | | | | | - <rdar://problem/6948703> clang treats weak_import like weak llvm-svn: 72967
* ABI handling: Fix nasty thinko where IRgen could generate an out-of-bounds readDaniel Dunbar2009-06-051-0/+6
| | | | | | | | | | when generating a coercion for ABI handling purposes. - This may only manifest itself when building at -O0, but the practical effect is that other arguments may get clobbered. - <rdar://problem/6930451> [irgen] ABI coercion clobbers other arguments llvm-svn: 72932
* PR4316: Fix IRGen for cast-to-union extension.Eli Friedman2009-06-031-0/+1
| | | | llvm-svn: 72803
* Driver: Support -mllvm; this just forwards options to clang-cc.Daniel Dunbar2009-06-031-2/+2
| | | | llvm-svn: 72780
* Add clang-cc support for -disable-llvm-optzns.Daniel Dunbar2009-06-021-0/+13
| | | | | | | - Avoids running any LLVM optimizations, even at -O2, etc., while still keeping any language changes these optimizations imply. llvm-svn: 72742
OpenPOWER on IntegriCloud