- Dec 02, 2010
-
-
Chris Lattner authored
a global is larger than 32 bytes and has fewer than 6 non-zero values in the initializer. Previously we'd turn something like this: char test8(int X) { char str[10000] = "abc"; into a 10K global variable which we then memcpy'd from. Now we generate: %str = alloca [10000 x i8], align 16 %tmp = getelementptr inbounds [10000 x i8]* %str, i64 0, i64 0 call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 10000, i32 16, i1 false) store i8 97, i8* %tmp, align 16 %0 = getelementptr [10000 x i8]* %str, i64 0, i64 1 store i8 98, i8* %0, align 1 %1 = getelementptr [10000 x i8]* %str, i64 0, i64 2 store i8 99, i8* %1, align 2 Which is much smaller in space and also likely faster. This is part of PR279 llvm-svn: 120645
-
John McCall authored
into the latter. llvm-svn: 120643
-
- Dec 01, 2010
-
-
John McCall authored
llvm-svn: 120555
-
Chris Lattner authored
http://llvm.org/bugs/show_bug.cgi?id=279#c3 better. No functionality change yet. llvm-svn: 120530
-
Chris Lattner authored
using ConstantInt::get. llvm-svn: 120527
-
John McCall authored
refer to opaque types, they must be held via PATypeHolders. I'm not sure why this hasn't blown up before. llvm-svn: 120491
-
John McCall authored
llvm-svn: 120489
-
Fariborz Jahanian authored
literal declaration caused crash in CodeGen. This patch fixes it. pr8707 llvm-svn: 120486
-
- Nov 30, 2010
-
-
John McCall authored
llvm-svn: 120433
-
John McCall authored
about the reliability of this yet. llvm-svn: 120422
-
Douglas Gregor authored
Harden CGDebugInfo::CreateType() a bit for cases where we couldn't generate type info for its component types llvm-svn: 120401
-
- Nov 29, 2010
-
-
Michael J. Spencer authored
llvm-svn: 120297
-
Anders Carlsson authored
llvm-svn: 120268
-
- Nov 28, 2010
-
-
Anders Carlsson authored
llvm-svn: 120257
-
Anders Carlsson authored
llvm-svn: 120252
-
Anders Carlsson authored
llvm-svn: 120251
-
Anders Carlsson authored
llvm-svn: 120250
-
Anders Carlsson authored
llvm-svn: 120249
-
- Nov 25, 2010
-
-
Benjamin Kramer authored
llvm-svn: 120153
-
Anders Carlsson authored
llvm-svn: 120140
-
Anders Carlsson authored
llvm-svn: 120133
-
Anders Carlsson authored
llvm-svn: 120132
-
- Nov 24, 2010
-
-
Anders Carlsson authored
llvm-svn: 120129
-
Anders Carlsson authored
llvm-svn: 120118
-
Anders Carlsson authored
Fix a (probably very old) regression where we weren't using the typedef name for anonymous tag types. llvm-svn: 120113
-
Anders Carlsson authored
llvm-svn: 120112
-
Anders Carlsson authored
llvm-svn: 120110
-
Anders Carlsson authored
llvm-svn: 120109
-
Anders Carlsson authored
llvm-svn: 120108
-
Anders Carlsson authored
Make CodeGenTypes::getCGRecordLayout compute the layout lazily if it doesn't exist. This matches ASTContext::getASTRecordLayout and is less confusing. llvm-svn: 120107
-
Anders Carlsson authored
llvm-svn: 120106
-
John McCall authored
llvm-svn: 120084
-
- Nov 22, 2010
-
-
Anders Carlsson authored
llvm-svn: 119980
-
Anders Carlsson authored
llvm-svn: 119957
-
Anders Carlsson authored
llvm-svn: 119956
-
Anders Carlsson authored
llvm-svn: 119955
-
- Nov 21, 2010
-
-
Francois Pichet authored
llvm-svn: 119924
-
- Nov 19, 2010
-
-
Fariborz Jahanian authored
llvm-svn: 119814
-
- Nov 18, 2010
-
-
Fariborz Jahanian authored
types was not being generated for objc pointers. // rdar://8681766. llvm-svn: 119751
-
Argyrios Kyrtzidis authored
-Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class. -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units. -The rest of the state in Diagnostic object is considered related and tied to one translation unit. -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a SourceLocation instead of a FullSourceLoc. -Reflect the changes to various interfaces. llvm-svn: 119730
-