Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Added -g command line options to clang for generating source level debug ↵ | Sanjiv Gupta | 2008-05-08 | 6 | -11/+309 | |
| | | | | | | 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 | |||||
* | Add basic support for the pic-* target triples and add support for | Chris Lattner | 2008-05-08 | 2 | -12/+39 | |
| | | | | | | | | | targets that do not support recursion (and thus codegen stack variables as globals). Patch contributed by Alireza Moshtaghi! llvm-svn: 50844 | |||||
* | Begin handling union bitfields. | Devang Patel | 2008-05-07 | 1 | -3/+8 | |
| | | | | | | Note, this is just beginning. llvm-svn: 50835 | |||||
* | Fix PR2101 - Codegen crash during bitfield initialization. | Devang Patel | 2008-05-06 | 1 | -3/+29 | |
| | | | | llvm-svn: 50769 | |||||
* | simplify some builder calls. | Chris Lattner | 2008-05-06 | 4 | -28/+15 | |
| | | | | llvm-svn: 50694 | |||||
* | remove a stray printout | Chris Lattner | 2008-05-06 | 1 | -2/+0 | |
| | | | | llvm-svn: 50691 | |||||
* | use simplified API for making fp constants. | Chris Lattner | 2008-05-04 | 2 | -6/+4 | |
| | | | | llvm-svn: 50623 | |||||
* | Simplify FunctionDecl::AddRedeclaration a bit by using std::swap. | Chris Lattner | 2008-05-04 | 2 | -20/+23 | |
| | | | | | | | Fix 'swapping' of attributes to not insert null values into the DeclAttrs map. llvm-svn: 50612 | |||||
* | if a decl is both 'static' and weak or static and inline, its linkage | Chris Lattner | 2008-05-04 | 2 | -10/+9 | |
| | | | | | | type should be internal, not weak/linkonce. llvm-svn: 50611 | |||||
* | Verify the whole module after codegen to catch silly IR bugs. | Chris Lattner | 2008-04-30 | 1 | -0/+4 | |
| | | | | llvm-svn: 50485 | |||||
* | remove the 'unused static' diagnostic from codegen. This should be | Chris Lattner | 2008-04-25 | 1 | -8/+0 | |
| | | | | | | | reimplemented in Sema someday. This is tracked in PR2236. Until then disabling it removes some bogus diagnostics (see 2236). llvm-svn: 50263 | |||||
* | Fix PR2236 | Nate Begeman | 2008-04-20 | 2 | -8/+19 | |
| | | | | | | | Add test Implement feedback from Chris re: PR1998 llvm-svn: 50001 | |||||
* | Only generate code for static functions and global variables that are ↵ | Nate Begeman | 2008-04-20 | 2 | -5/+72 | |
| | | | | | | | | | actually used. Warn about unused static functions and variables. This fixes PR1998. llvm-svn: 49987 | |||||
* | implement a fixme, add support for ++/-- on long double. | Chris Lattner | 2008-04-20 | 1 | -5/+6 | |
| | | | | llvm-svn: 49980 | |||||
* | use simplified ConstantFP:get method. | Chris Lattner | 2008-04-20 | 2 | -6/+4 | |
| | | | | llvm-svn: 49979 | |||||
* | Generate code for annotation attributes. | Nate Begeman | 2008-04-19 | 3 | -8/+70 | |
| | | | | llvm-svn: 49951 | |||||
* | Add support to module codegen for adding and emitting annotations | Nate Begeman | 2008-04-18 | 2 | -0/+20 | |
| | | | | llvm-svn: 49944 | |||||
* | OCUVector -> ExtVector, shorthand for extended vector, per feedback from Chris. | Nate Begeman | 2008-04-18 | 4 | -40/+43 | |
| | | | | llvm-svn: 49942 | |||||
* | Allow targets to override double size, alignment, and semantics, and tie this | Nate Begeman | 2008-04-18 | 1 | -1/+3 | |
| | | | | | | | information into the IR type codegen. This allows a target to codegen the C 'double' type as either double or float. llvm-svn: 49898 | |||||
* | Remove FileVarDecl and BlockVarDecl. They are replaced by ↵ | Steve Naroff | 2008-04-15 | 8 | -34/+38 | |
| | | | | | | | | 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 | |||||
* | Enable clang to codegen emmintrin.h until we have our own emmintrin.h | Nate Begeman | 2008-04-14 | 1 | -31/+331 | |
| | | | | llvm-svn: 49633 | |||||
* | update to follow mainline llvm API change. | Chris Lattner | 2008-04-13 | 7 | -28/+25 | |
| | | | | llvm-svn: 49607 | |||||
* | The dtor CGObjCRuntime::~CGObjCRuntime() was implemented twice, once | Ted Kremenek | 2008-04-09 | 3 | -7/+2 | |
| | | | | | | | in CGObjCGNU.cpp and once in CGObjCEtoile.cpp. Moved its definition to CGObjC.cpp. This resolves a build error in Xcode, and also cleans things up. llvm-svn: 49429 | |||||
* | Add support for C++ default arguments, and rework Parse-Sema | Chris Lattner | 2008-04-08 | 4 | -1/+14 | |
| | | | | | | | | interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49369 | |||||
* | remove the Decl::getCanonicalType() method. | Chris Lattner | 2008-04-06 | 1 | -4/+3 | |
| | | | | llvm-svn: 49295 | |||||
* | tracking API changes arising from r49277 | Gabor Greif | 2008-04-06 | 8 | -41/+41 | |
| | | | | llvm-svn: 49279 | |||||
* | Fix PR2049, updating Eli's patch that fixes to mainline. This produces ↵ | Chris Lattner | 2008-04-04 | 1 | -14/+115 | |
| | | | | | | | | incorrect code, but the codegen doesn't crash. I'll file a bugzilla for the AST being wrong. llvm-svn: 49226 | |||||
* | Since isComplexType() no longer returns true for _Complex integers, the code | Chris Lattner | 2008-04-04 | 6 | -18/+18 | |
| | | | | | | generator needs to call isAnyComplexType(). This fixes PR1960. llvm-svn: 49220 | |||||
* | updates from David. | Chris Lattner | 2008-04-04 | 1 | -23/+46 | |
| | | | | llvm-svn: 49217 | |||||
* | various bug fixes, add to xcode project. | Chris Lattner | 2008-04-04 | 1 | -16/+6 | |
| | | | | llvm-svn: 49216 | |||||
* | initial checkin of Étoilé runtime support, patch by David Chisnall | Chris Lattner | 2008-04-04 | 1 | -0/+241 | |
| | | | | llvm-svn: 49215 | |||||
* | fix build error: add missing braces. | Torok Edwin | 2008-04-04 | 1 | -1/+2 | |
| | | | | llvm-svn: 49209 | |||||
* | Codegen assignment to self correctly, patch by David Chisnall! | Chris Lattner | 2008-04-04 | 5 | -9/+34 | |
| | | | | llvm-svn: 49201 | |||||
* | Teach clang how to codegen punpcklbw and punpcklwd | Nate Begeman | 2008-04-03 | 1 | -0/+7 | |
| | | | | llvm-svn: 49186 | |||||
* | Fix PR2081 (problems codegen'ing some recursive structures) patch | Chris Lattner | 2008-04-03 | 2 | -14/+48 | |
| | | | | | | by Lauro Venancio! llvm-svn: 49144 | |||||
* | simplify some code by using PointerLikeType. | Chris Lattner | 2008-04-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 49101 | |||||
* | add a common base class "PointerLikeType" for PointerType and ReferenceType, | Chris Lattner | 2008-04-02 | 2 | -8/+4 | |
| | | | | | | | allowing them to be treated the same in some contexts. A suggestion for a better name is welcome :) llvm-svn: 49100 | |||||
* | some cleanups on top of David's patch. There are still two | Chris Lattner | 2008-03-30 | 5 | -64/+46 | |
| | | | | | | | | | | | | | 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 | |||||
* | Add initial support for objc codegen for methods, ivars, and the | Chris Lattner | 2008-03-30 | 13 | -53/+357 | |
| | | | | | | etoile runtime, patch by David Chisnall! llvm-svn: 48969 | |||||
* | simplify code by using the variadic StructType::get method. | Chris Lattner | 2008-03-19 | 3 | -27/+24 | |
| | | | | llvm-svn: 48535 | |||||
* | simplify the clang codegen by using the new Builder.CreateStructGEP method. | Chris Lattner | 2008-03-19 | 4 | -49/+23 | |
| | | | | llvm-svn: 48534 | |||||
* | Make a major restructuring of the clang tree: introduce a top-level | Chris Lattner | 2008-03-15 | 19 | -0/+7078 | |
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 |