- May 30, 2008
-
-
Eli Friedman authored
types so that they end up the correct size. llvm-svn: 51787
-
Eli Friedman authored
associated declaration. This is a prerequisite to handling general union initializations; for example, an array of unions involving pointers has to be turned into a struct because the elements can have incompatible types. I refactored the code a bit to make it more readable; now, the logic for definitions is all in EmitGlobalVarInit. The second parameter for GetAddrOfGlobalVar is now dead; I'll remove it separately. By itself, this patch should not cause any visible changes. llvm-svn: 51783
-
Eli Friedman authored
This fixes a crash on the included testcase (found in NetHack). llvm-svn: 51767
-
- May 29, 2008
-
-
Eli Friedman authored
alignment and alignment attributes. llvm-svn: 51676
-
Eli Friedman authored
This change makes clang generate the same thing as llvm-gcc. llvm-svn: 51674
-
- May 27, 2008
-
-
Eli Friedman authored
llvm-svn: 51587
-
Eli Friedman authored
been used. In preparation for the fix to PR2360, but also a minor bug in its own right. llvm-svn: 51583
-
- May 26, 2008
-
-
Eli Friedman authored
required for correctness in cases of copying a struct to itself or to an overlapping struct (itself for cases like *a = *a, and overlapping is possible with unions). Hopefully, this won't end up being a perf issue; LLVM *should* be able to optimize memmove to memcpy in a lot of cases, and for small copies the generated code *should* be mostly comparable. (In reality, LLVM is currently horrible at optimizing memmove, but that's a bug, not a fundamental issue.) gcc currently generates wrong code; that's http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667. llvm-svn: 51566
-
- May 22, 2008
-
-
Dan Gohman authored
lib/CodeGen/CGExpr.cpp and to change include/clang/AST/Attr.h to use its own enum for visibility types instead of using llvm::GlobalValue::VisibilityTypes. These changes eliminate dependencies in the AST library on LLVM's VMCore library. llvm-svn: 51398
-
- May 20, 2008
-
-
Eli Friedman authored
as far as I can tell, and it fixes code like test/CodeGen/functions.c. (Whatever performance effect it might have, crashing on a construct like this isn't really acceptable; I've run into this multiple times.) llvm-svn: 51312
-
- May 08, 2008
-
-
Sanjiv Gupta authored
Added -g command line options to clang for generating source level debug information. This patch currently enables generation of line number debug information (stoppoints) and region begin/end debug information. The new files CGDebugInfo.h and CGDebugInfo.cpp implements the debug info manager class CGDebugInfo. llvm-svn: 50848
-
- May 04, 2008
-
-
Chris Lattner authored
Fix 'swapping' of attributes to not insert null values into the DeclAttrs map. llvm-svn: 50612
-
Chris Lattner authored
type should be internal, not weak/linkonce. llvm-svn: 50611
-
- Apr 30, 2008
-
-
Chris Lattner authored
llvm-svn: 50485
-
- Apr 25, 2008
-
-
Chris Lattner authored
reimplemented in Sema someday. This is tracked in PR2236. Until then disabling it removes some bogus diagnostics (see 2236). llvm-svn: 50263
-
- Apr 20, 2008
-
-
Nate Begeman authored
Add test Implement feedback from Chris re: PR1998 llvm-svn: 50001
-
Nate Begeman authored
Warn about unused static functions and variables. This fixes PR1998. llvm-svn: 49987
-
- Apr 19, 2008
-
-
Nate Begeman authored
llvm-svn: 49951
-
Nate Begeman authored
llvm-svn: 49944
-
- Apr 16, 2008
-
-
Steve Naroff authored
Remove FileVarDecl and BlockVarDecl. They are replaced by VarDecl::isBlockVarDecl() and VarDecl::isFileVarDecl(). This is a fairly mechanical/large change. As a result, I avoided making any changes/simplifications that weren't directly related. I did break two Analysis tests. I also have a couple FIXME's in UninitializedValues.cpp. Ted, can you take a look? If the bug isn't obvious, I am happy to dig in and fix it (since I broke it). llvm-svn: 49748
-
- Apr 06, 2008
-
-
Gabor Greif authored
llvm-svn: 49279
-
- Mar 31, 2008
-
-
Chris Lattner authored
remaining open issues I've communicated to him: 1) self can be assigned to, and his patch didn't handle it correctly. 2) CollectObjCIvarTypes is N^2 (because each subclass reprocesses all parent class ivars) and flattens classes. If A derives from B, and both have an int, I'd expect to get { {i32}, i32}, not { i32, i32}. David, please review. llvm-svn: 48970
-
Chris Lattner authored
etoile runtime, patch by David Chisnall! llvm-svn: 48969
-
- Mar 19, 2008
-
-
Chris Lattner authored
llvm-svn: 48535
-
- Mar 16, 2008
-
-
Chris Lattner authored
lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
-
- Mar 14, 2008
-
-
Chris Lattner authored
llvm-svn: 48362
-
- Mar 09, 2008
-
-
Nate Begeman authored
instructions. llvm-svn: 48077
-
- Mar 08, 2008
-
-
Chris Lattner authored
different widths. Start simplifying TargetInfo accessor methods. llvm-svn: 48050
-
- Mar 05, 2008
-
-
Chris Lattner authored
llvm-svn: 47954
-
- Mar 03, 2008
-
-
Chris Lattner authored
llvm-svn: 47837
-
- Mar 01, 2008
-
-
Chris Lattner authored
Patch by David Chisnall! llvm-svn: 47789
-
- Feb 19, 2008
-
-
Lauro Ramos Venancio authored
llvm-svn: 47346
-
Lauro Ramos Venancio authored
Fix Olden/bh test. llvm-svn: 47292
-
- Feb 11, 2008
-
-
Chris Lattner authored
is an array type not a pointer type. This requires updating some diags that change and updating the code generator to handle the proper form of strings. llvm-svn: 46941
-
- Feb 06, 2008
-
-
Chris Lattner authored
llvm-svn: 46801
-
- Feb 05, 2008
-
-
Chris Lattner authored
simplify the code and generally make it more robust. llvm-svn: 46745
-
Chris Lattner authored
llvm-svn: 46742
-
- Feb 04, 2008
-
-
Christopher Lamb authored
qualifiers use the __attribute__((address_space(id))) syntax. llvm-svn: 46691
-
- Feb 02, 2008
-
-
Chris Lattner authored
should be merged just like normal globals. This fixes this testcase that Anders provided: static struct s a; static struct s *ap1 = &a; static struct s a = { 10 }; llvm-svn: 46661
-
- Jan 26, 2008
-
-
Anders Carlsson authored
llvm-svn: 46386
-