Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | A constant initializer never matches the type of the variable it's | John McCall | 2010-09-03 | 1 | -1/+6 |
| | | | | | | | initializing; it at best matches the element type of the variable it's initializing. Fixes PR8073. llvm-svn: 112992 | ||||
* | Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. | Daniel Dunbar | 2009-12-15 | 1 | -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 | ||||
* | Use intptr_t from stdint.h (in freestanding mode) instead of redefining it here | Ken Dyck | 2009-11-22 | 1 | -2/+2 |
| | | | | | | with __INTPTR_TYPE__. llvm-svn: 89609 | ||||
* | Make __func__ and friends work correctly within the initializer for a static | Eli Friedman | 2009-11-14 | 1 | -0/+6 |
| | | | | | | local variable. llvm-svn: 88766 | ||||
* | Obvious fix for PR5474. | Eli Friedman | 2009-11-13 | 1 | -0/+6 |
| | | | | llvm-svn: 88696 | ||||
* | Removed math.h include, as Windows math.h has a compile error. | John Thompson | 2009-10-15 | 1 | -1/+1 |
| | | | | llvm-svn: 84160 | ||||
* | In VC++, the *printf functions put an extra "0" in the exponent part | Mike Stump | 2009-10-08 | 1 | -5/+5 |
| | | | | | | | of a floating point number. This add regular expressions to account for this. Patch by John Thompson. llvm-svn: 83581 | ||||
* | FileCheckize test case. | Benjamin Kramer | 2009-10-02 | 1 | -26/+22 |
| | | | | llvm-svn: 83244 | ||||
* | Don't update the struct alignment when adding fields to a packed struct. ↵ | Anders Carlsson | 2009-10-02 | 1 | -3/+10 |
| | | | | | | Fixes PR5118. llvm-svn: 83235 | ||||
* | When building constant structs, check if the resulting LLVM struct will be ↵ | Anders Carlsson | 2009-10-02 | 1 | -1/+7 |
| | | | | | | bigger than the record layout size and use a packed struct if that's the case. Fixes PR5108. llvm-svn: 83230 | ||||
* | Update this test to expect the "inbounds" keyword, which LLVM's constant | Dan Gohman | 2009-09-11 | 1 | -1/+1 |
| | | | | | | folder is now automatically adding. llvm-svn: 81491 | ||||
* | Enable the new struct type builder now that the constant struct builder ↵ | Anders Carlsson | 2009-07-27 | 1 | -2/+2 |
| | | | | | | 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 Carlsson | 2009-07-27 | 1 | -2/+2 |
| | | | | | | place but will be removed shortly. The new struct builder works on big endian systems. llvm-svn: 77185 | ||||
* | Remove the -arch option from clang-cc: for all practical purposes, it's | Eli Friedman | 2009-05-19 | 1 | -1/+1 |
| | | | | | | redundant with -triple. llvm-svn: 72108 | ||||
* | Fix for PR4108: be a bit looser with the casts that we accept in | Eli Friedman | 2009-04-30 | 1 | -0/+5 |
| | | | | | | constant initializers. llvm-svn: 70483 | ||||
* | Move where block-related variables are initialized so that block | Eli Friedman | 2009-03-28 | 1 | -2/+2 |
| | | | | | | types don't get generated when blocks aren't used. llvm-svn: 67898 | ||||
* | Rename clang to clang-cc. | Daniel Dunbar | 2009-03-24 | 1 | -1/+1 |
| | | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602 | ||||
* | adjust to changes in the mainline llvm .ll printer. | Chris Lattner | 2009-03-01 | 1 | -6/+6 |
| | | | | llvm-svn: 65745 | ||||
* | Allow constant initializers to reference their defining decl. | Daniel Dunbar | 2009-02-25 | 1 | -0/+11 |
| | | | | | | - PR3662. llvm-svn: 65472 | ||||
* | Remove a FIXME; I was mistaken in believing gcc rejected this. | Daniel Dunbar | 2009-02-25 | 1 | -1/+0 |
| | | | | llvm-svn: 65420 | ||||
* | Fix IRgen of constant expressions referring to external/static | Daniel Dunbar | 2009-02-24 | 1 | -0/+7 |
| | | | | | | | variables. - PR3657. llvm-svn: 65381 | ||||
* | Cleanp code with some recent suggestions. | Mike Stump | 2009-02-22 | 1 | -2/+2 |
| | | | | llvm-svn: 65285 | ||||
* | Force arch for these test cases. | Daniel Dunbar | 2009-02-21 | 1 | -1/+1 |
| | | | | llvm-svn: 65252 | ||||
* | Handle constant int -> ptr casts of lvalue results. | Daniel Dunbar | 2009-02-20 | 1 | -0/+3 |
| | | | | | | - PR3463 (again). llvm-svn: 65133 | ||||
* | Extend Evaluate() to fold (int) <pointer type>. | Daniel Dunbar | 2009-02-19 | 1 | -0/+28 |
| | | | | | | | | | | - PR3463, PR3398, <rdar://problem/6553401> crash on relocatable symbol addresses as constants in static locals. - There are many more scenarious we could handle (like arithmetic on such an int) but this is the main use case. llvm-svn: 65074 | ||||
* | Evaluate ==,!= for complex types. | Daniel Dunbar | 2009-01-29 | 1 | -3/+28 |
| | | | | llvm-svn: 63280 | ||||
* | Implement basic _Complex integer constant folding. | Daniel Dunbar | 2009-01-28 | 1 | -0/+3 |
| | | | | | | | - Merged into single ComplexEvaluator, these share too much logic to be worth splitting for float/int (IMHO). Will split on request. llvm-svn: 63248 | ||||
* | Add test for PR2992. | Anders Carlsson | 2008-11-22 | 1 | -0/+8 |
| | | | | llvm-svn: 59861 | ||||
* | Fix const-init test case | Daniel Dunbar | 2008-08-05 | 1 | -3/+3 |
| | | | | | | - Use -verify and added expected warnings for EXTWARN change. llvm-svn: 54342 | ||||
* | Add codegen support for a few more kinds of initializer constant | Eli Friedman | 2008-05-29 | 1 | -1/+3 |
| | | | | | | expressions. llvm-svn: 51677 | ||||
* | Some const initializer tests for stuff I just committed. | Eli Friedman | 2008-02-21 | 1 | -0/+13 |
llvm-svn: 47442 |