summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
...
* Added -g command line options to clang for generating source level debug ↵Sanjiv Gupta2008-05-086-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 forChris Lattner2008-05-082-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 Patel2008-05-071-3/+8
| | | | | | Note, this is just beginning. llvm-svn: 50835
* Fix PR2101 - Codegen crash during bitfield initialization.Devang Patel2008-05-061-3/+29
| | | | llvm-svn: 50769
* simplify some builder calls.Chris Lattner2008-05-064-28/+15
| | | | llvm-svn: 50694
* remove a stray printoutChris Lattner2008-05-061-2/+0
| | | | llvm-svn: 50691
* use simplified API for making fp constants.Chris Lattner2008-05-042-6/+4
| | | | llvm-svn: 50623
* Simplify FunctionDecl::AddRedeclaration a bit by using std::swap.Chris Lattner2008-05-042-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 linkageChris Lattner2008-05-042-10/+9
| | | | | | type should be internal, not weak/linkonce. llvm-svn: 50611
* Verify the whole module after codegen to catch silly IR bugs.Chris Lattner2008-04-301-0/+4
| | | | llvm-svn: 50485
* remove the 'unused static' diagnostic from codegen. This should be Chris Lattner2008-04-251-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 PR2236Nate Begeman2008-04-202-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 Begeman2008-04-202-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 Lattner2008-04-201-5/+6
| | | | llvm-svn: 49980
* use simplified ConstantFP:get method.Chris Lattner2008-04-202-6/+4
| | | | llvm-svn: 49979
* Generate code for annotation attributes.Nate Begeman2008-04-193-8/+70
| | | | llvm-svn: 49951
* Add support to module codegen for adding and emitting annotationsNate Begeman2008-04-182-0/+20
| | | | llvm-svn: 49944
* OCUVector -> ExtVector, shorthand for extended vector, per feedback from Chris.Nate Begeman2008-04-184-40/+43
| | | | llvm-svn: 49942
* Allow targets to override double size, alignment, and semantics, and tie thisNate Begeman2008-04-181-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 Naroff2008-04-158-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.hNate Begeman2008-04-141-31/+331
| | | | llvm-svn: 49633
* update to follow mainline llvm API change.Chris Lattner2008-04-137-28/+25
| | | | llvm-svn: 49607
* The dtor CGObjCRuntime::~CGObjCRuntime() was implemented twice, onceTed Kremenek2008-04-093-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 Lattner2008-04-084-1/+14
| | | | | | | | interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49369
* remove the Decl::getCanonicalType() method.Chris Lattner2008-04-061-4/+3
| | | | llvm-svn: 49295
* tracking API changes arising from r49277Gabor Greif2008-04-068-41/+41
| | | | llvm-svn: 49279
* Fix PR2049, updating Eli's patch that fixes to mainline. This produces ↵Chris Lattner2008-04-041-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 codeChris Lattner2008-04-046-18/+18
| | | | | | generator needs to call isAnyComplexType(). This fixes PR1960. llvm-svn: 49220
* updates from David.Chris Lattner2008-04-041-23/+46
| | | | llvm-svn: 49217
* various bug fixes, add to xcode project.Chris Lattner2008-04-041-16/+6
| | | | llvm-svn: 49216
* initial checkin of Étoilé runtime support, patch by David ChisnallChris Lattner2008-04-041-0/+241
| | | | llvm-svn: 49215
* fix build error: add missing braces.Torok Edwin2008-04-041-1/+2
| | | | llvm-svn: 49209
* Codegen assignment to self correctly, patch by David Chisnall!Chris Lattner2008-04-045-9/+34
| | | | llvm-svn: 49201
* Teach clang how to codegen punpcklbw and punpcklwdNate Begeman2008-04-031-0/+7
| | | | llvm-svn: 49186
* Fix PR2081 (problems codegen'ing some recursive structures) patchChris Lattner2008-04-032-14/+48
| | | | | | by Lauro Venancio! llvm-svn: 49144
* simplify some code by using PointerLikeType.Chris Lattner2008-04-021-1/+1
| | | | llvm-svn: 49101
* add a common base class "PointerLikeType" for PointerType and ReferenceType,Chris Lattner2008-04-022-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 twoChris Lattner2008-03-305-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 theChris Lattner2008-03-3013-53/+357
| | | | | | etoile runtime, patch by David Chisnall! llvm-svn: 48969
* simplify code by using the variadic StructType::get method.Chris Lattner2008-03-193-27/+24
| | | | llvm-svn: 48535
* simplify the clang codegen by using the new Builder.CreateStructGEP method.Chris Lattner2008-03-194-49/+23
| | | | llvm-svn: 48534
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-1519-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
OpenPOWER on IntegriCloud