4f868f75ecc455494a6bfe039aadc576ec2e5d5c |
|
04-Jul-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add missing expected-warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185644 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
f0a26499c0ef62c7940b596be092315922a46ab7 |
|
20-Aug-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Fix InitListExpr::isStringLiteralInit so it handles various edge cases correctly. PR13643. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
e6a24e83e71f361c7b7de82cf24ee6f5ddc7f1c2 |
|
22-Dec-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Add support for bitcasts to vector type in Evaluate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
cd87d1e4d1b0097877b0f9c2065900717d2aacba |
|
12-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
fix an unintended behavior change in the type system rewrite, which caused us to compile stuff like this: typedef struct { int x, y, z; } foo_t; foo_t g; into: %"struct.<anonymous>" = type { i32, i32, i32 } we now get: %struct.foo_t = type { i32, i32, i32 } This doesn't change the behavior of the compiler, but makes the IR much easier to read. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134969 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
9cbe4f0ba01ec304e1e3d071c071f7bca33631c0 |
|
09-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
clang side to match the LLVM IR type system rewrite patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
c5cbb909e8a27deb8f1a2b6b7bf56a96051af81a |
|
20-Jun-2011 |
Chris Lattner <sabre@nondot.org> |
Update to match mainline ConstantStruct::get API change. Also, use ConvertType on InitListExprs as they are being converted. This is needed for a forthcoming patch, and improves the IR generated anyway (see additional type names in testcases). This patch also converts a bunch of std::vector's in CGObjCMac to use C arrays. There are a ton more that should be converted as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133413 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
0483a6fcf8a70f1dd900b634300510c7991a1c7c |
|
02-Mar-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Only emit string initializers in-place if types match. Fixes PR9373. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126883 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
1257bc6ee76b931e3f8e51a88298b95379963d24 |
|
10-Jan-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add unnamed_addr when creating artificial string globals. For example, in static const char foo[] = "foo"; static const char *bar = "bar"; the global created to hold "bar" will have it, but foo will not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123192 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
9c20fa9d46645480872f239a2fc631996ba7dc23 |
|
03-Sep-2010 |
John McCall <rjmccall@apple.com> |
A constant initializer never matches the type of the variable it's initializing; it at best matches the element type of the variable it's initializing. Fixes PR8073. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112992 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
a5728872c7702ddd09537c95bc3cbd20e1f2fb09 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
baf524d2137f719f0465cf5e8dc8d5f5d8089fbf |
|
22-Nov-2009 |
Ken Dyck <ken.dyck@onsemi.com> |
Use intptr_t from stdint.h (in freestanding mode) instead of redefining it here with __INTPTR_TYPE__. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89609 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
f70b24e7fa15d72506534af43d4090bb37a32694 |
|
14-Nov-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Make __func__ and friends work correctly within the initializer for a static local variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88766 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
64241fc930e0b2247e8c5b5af9d48d13c4bec8ae |
|
13-Nov-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Obvious fix for PR5474. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
0653066e2bb7ab86b3b8a2235741db9577e8fce9 |
|
15-Oct-2009 |
John Thompson <John.Thompson.JTSoftware@gmail.com> |
Removed math.h include, as Windows math.h has a compile error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
e36803167e1b71692e571224e2fa2363d4b5a861 |
|
08-Oct-2009 |
Mike Stump <mrs@apple.com> |
In VC++, the *printf functions put an extra "0" in the exponent part of a floating point number. This add regular expressions to account for this. Patch by John Thompson. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
d9097ffe6e61d5bc593e7a2f8e2d02d6e661bcea |
|
02-Oct-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
FileCheckize test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83244 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
2df96e7019853d80ea599453925bd324cd110a8f |
|
02-Oct-2009 |
Anders Carlsson <andersca@mac.com> |
Don't update the struct alignment when adding fields to a packed struct. Fixes PR5118. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
31f2f9ced8ed2dd17ac43b6addc84eb08a05442e |
|
02-Oct-2009 |
Anders Carlsson <andersca@mac.com> |
When building constant structs, check if the resulting LLVM struct will be bigger than the record layout size and use a packed struct if that's the case. Fixes PR5108. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83230 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
1da83fafbacd96a85376743a7e40b522dcd478f5 |
|
11-Sep-2009 |
Dan Gohman <gohman@apple.com> |
Update this test to expect the "inbounds" keyword, which LLVM's constant folder is now automatically adding. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81491 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
abdad358b53d0efd1d89ea434b7078600a656d1f |
|
27-Jul-2009 |
Anders Carlsson <andersca@mac.com> |
Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77190 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
8dca3b3d09ff48b3ec528cd603f835f120c4d9ee |
|
27-Jul-2009 |
Anders Carlsson <andersca@mac.com> |
Enable the new constant struct builder by default. The old code is still in place but will be removed shortly. The new struct builder works on big endian systems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77185 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
c219a1579c200c62d925653336e72d9d2f6c4cb7 |
|
19-May-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Remove the -arch option from clang-cc: for all practical purposes, it's redundant with -triple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72108 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
944af7156db03d4ad15973dad259ab51d405e609 |
|
30-Apr-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Fix for PR4108: be a bit looser with the casts that we accept in constant initializers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70483 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
48f9122dc6f1f1cef540246b0412d8ff9e90a868 |
|
28-Mar-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Move where block-related variables are initialized so that block types don't get generated when blocks aren't used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67898 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
6f877cd1743b12a09b4e5f32cc94552c19df7e42 |
|
01-Mar-2009 |
Chris Lattner <sabre@nondot.org> |
adjust to changes in the mainline llvm .ll printer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65745 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
e5731f81497d11f95027a500a3ee118f4fc9e1be |
|
25-Feb-2009 |
Daniel Dunbar <daniel@zuster.org> |
Allow constant initializers to reference their defining decl. - PR3662. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65472 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
5ec41c2423925c4486447f45a165ba97bbc23e3c |
|
25-Feb-2009 |
Daniel Dunbar <daniel@zuster.org> |
Remove a FIXME; I was mistaken in believing gcc rejected this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
d01b669f26703663da3515638e254fa7a987e860 |
|
24-Feb-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix IRgen of constant expressions referring to external/static variables. - PR3657. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65381 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
20733cd4fd5c9755cdfab583db862223c93732c8 |
|
22-Feb-2009 |
Mike Stump <mrs@apple.com> |
Cleanp code with some recent suggestions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65285 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
8d7d6e9a486ad69532f9b50e75109d6ed61b0ad6 |
|
22-Feb-2009 |
Daniel Dunbar <daniel@zuster.org> |
Force arch for these test cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
69ab26a8623141f35e86817cfc6e0fbe7639a40f |
|
20-Feb-2009 |
Daniel Dunbar <daniel@zuster.org> |
Handle constant int -> ptr casts of lvalue results. - PR3463 (again). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65133 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
dd2116462ae311043986ae8b7fba27e68c1b2e66 |
|
19-Feb-2009 |
Daniel Dunbar <daniel@zuster.org> |
Extend Evaluate() to fold (int) <pointer type>. - 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65074 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
4087e24f73d05d96ac2d259679751d054d3ddfbc |
|
29-Jan-2009 |
Daniel Dunbar <daniel@zuster.org> |
Evaluate ==,!= for complex types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63280 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
a5fd07bbc5e4bae542c06643da3fbfe4967a9379 |
|
28-Jan-2009 |
Daniel Dunbar <daniel@zuster.org> |
Implement basic _Complex integer constant folding. - Merged into single ComplexEvaluator, these share too much logic to be worth splitting for float/int (IMHO). Will split on request. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63248 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
cd761cd1a73510f4577fa00d9a6ce15090a0a135 |
|
22-Nov-2008 |
Anders Carlsson <andersca@mac.com> |
Add test for PR2992. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59861 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
da8bf14c016231d68bc89344f7d95e575fc4145a |
|
05-Aug-2008 |
Daniel Dunbar <daniel@zuster.org> |
Fix const-init test case - Use -verify and added expected warnings for EXTWARN change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54342 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
bc5ed6ef52d43b5a3c924421aac3c1f0f829dcc8 |
|
29-May-2008 |
Eli Friedman <eli.friedman@gmail.com> |
Add codegen support for a few more kinds of initializer constant expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51677 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|
cca196b553bf3261d8db635a40ca4a78c32b2569 |
|
21-Feb-2008 |
Eli Friedman <eli.friedman@gmail.com> |
Some const initializer tests for stuff I just committed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47442 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/const-init.c
|