- Apr 07, 2011
-
-
Ken Dyck authored
Change the return type of CodeGenVTables::getVirtualBaseOffsetOffset() to CharUnits. No change in functionality intended. llvm-svn: 129072
-
- Apr 04, 2011
-
-
Devang Patel authored
llvm-svn: 128842
-
- Apr 02, 2011
-
-
Ken Dyck authored
CharUnits. No change in functionality intended. llvm-svn: 128776
-
- Mar 30, 2011
-
-
Jay Foad authored
PHINode::Create() giving the (known or expected) number of operands. llvm-svn: 128538
-
- Mar 24, 2011
-
-
Ken Dyck authored
change in functionality intended. llvm-svn: 128190
-
- Mar 23, 2011
- Mar 22, 2011
- Mar 11, 2011
-
-
John McCall authored
llvm-svn: 127494
-
- Mar 09, 2011
-
-
John McCall authored
simplify the logic of initializing function parameters so that we don't need both a variable declaration and a type in FunctionArgList. This also means that we need to propagate the CGFunctionInfo down in a lot of places rather than recalculating it from the FAL. There's more we can do to eliminate redundancy here, and I've left FIXMEs behind to do it. llvm-svn: 127314
-
- Feb 28, 2011
-
-
Anders Carlsson authored
llvm-svn: 126598
-
- Feb 22, 2011
-
-
Devang Patel authored
llvm-svn: 126246
-
- Feb 20, 2011
-
-
Anders Carlsson authored
llvm-svn: 126062
-
- Feb 08, 2011
-
-
John McCall authored
Block{Function,Module} base class. Minor other refactorings. Fixed a few address-space bugs while I was there. llvm-svn: 125085
-
- Feb 03, 2011
-
-
Fariborz Jahanian authored
llvm-svn: 124807
-
Fariborz Jahanian authored
llvm-svn: 124757
-
- Feb 02, 2011
-
-
Fariborz Jahanian authored
llvm-svn: 124701
-
- Jan 29, 2011
-
-
Anders Carlsson authored
Make emitting a VTT a two-step process, much like emitting a VTable. You first get the address of the VTT, and then pass it to EmitVTTDefinition. llvm-svn: 124539
-
Anders Carlsson authored
When doing a derived-to-base class through a virtual class, we don't have to get the vbase offset from the vtable if the derived class is marked final. llvm-svn: 124523
-
- Jan 08, 2011
-
-
Alexis Hunt authored
more accurate, and makes it make sense for it to hold a delegating constructor call. llvm-svn: 123084
-
- Dec 04, 2010
-
-
Francois Pichet authored
More anonymous struct/union redesign. This one deals with anonymous field used in a constructor initializer list: struct X { X() : au_i1(123) {} union { int au_i1; float au_f1; }; }; clang will now deal with au_i1 explicitly as an IndirectFieldDecl. llvm-svn: 120900
-
- Nov 13, 2010
-
-
Fariborz Jahanian authored
copy helper function and dtor of copied cxx objects in dispose helper functions. __block variables TBD next. llvm-svn: 119011
-
- Nov 01, 2010
-
-
Anders Carlsson authored
Rename getBaseClassOffset to getBaseClassOffsetInBits and introduce a getBaseClassOffset which returns the offset in CharUnits. Do the same thing for getVBaseClassOffset. llvm-svn: 117881
-
- Oct 26, 2010
-
-
Dan Gohman authored
so that it's done in one place. llvm-svn: 117386
-
- Oct 15, 2010
-
-
John McCall authored
ambiguous context. llvm-svn: 116567
-
- Sep 17, 2010
-
-
John McCall authored
the bases are completely initialized. This won't work --- base initializer expressions can rely on the vtables having been set up. Check for uses of 'this' in the initializers and force a vtable initialization if found. This might not be good enough; we might need to extend this to handle the possibility of arbitrary code finding an external reference to this (not yet completely-constructed!) object and accessing through it, in which case we'll probably find ourselves doing a lot more unnecessary stores. llvm-svn: 114153
-
- Sep 15, 2010
-
-
John McCall authored
slot. The easiest way to do that was to bundle up the information we care about for aggregate slots into a new structure which demands that its creators at least consider the question. I could probably be convinced that the ObjC 'needs GC' bit should be rolled into this structure. Implement generalized copy elision. The main obstacle here is that IR-generation must be much more careful about making sure that exactly llvm-svn: 113962
-
- Aug 21, 2010
-
-
Daniel Dunbar authored
llvm-svn: 111716
-
- Aug 11, 2010
-
-
Devang Patel authored
Emit a stop point for delegate constructor call. This gives user a chance to step into constructor body. llvm-svn: 110853
-
- Aug 07, 2010
-
-
John McCall authored
This takes some trickery since CastExpr has subclasses (and indeed, is abstract). Also, smoosh the CastKind into the bitfield from Expr. Drops two words of storage from Expr in the common case of expressions which don't need inheritance paths. Avoids a separate allocation and another word of overhead in cases needing inheritance paths. Also has the advantage of not leaking memory, since destructors for AST nodes are never run. llvm-svn: 110507
-
- Jul 21, 2010
-
-
John McCall authored
commits. llvm-svn: 109000
-
John McCall authored
using a lazy cleanup. llvm-svn: 108994
-
John McCall authored
llvm-svn: 108989
-
John McCall authored
llvm-svn: 108979
-
John McCall authored
lazy cleanups. llvm-svn: 108978
-
Douglas Gregor authored
initializer of (). Make sure to use a simple memset() when we can, or fall back to generating a loop when a simple memset will not suffice. Fixes <rdar://problem/8212208>, a regression due to my work in r107857. llvm-svn: 108977
-
- Jul 13, 2010
-
-
John McCall authored
mostly in avoiding unnecessary work at compile time but also in producing more sensible block orderings. Move the destructor cleanups for local variables over to use lazy cleanups. Eventually all cleanups will do this; for now we have some awkward code duplication. Tell IR generation just to never produce landing pads in -fno-exceptions. This is a much more comprehensive solution to a problem which previously was half-solved by checks in most cleanup-generation spots. llvm-svn: 108270
-
- Jul 07, 2010
-
-
John McCall authored
rethrow. Fixes rdar://problem/7696603 llvm-svn: 107757
-
- Jul 06, 2010
-
-
John McCall authored
self-host. Hopefully these results hold up on different platforms. I tried to keep the GNU ObjC runtime happy, but it's hard for me to test. Reimplement how clang generates IR for exceptions. Instead of creating new invoke destinations which sequentially chain to the previous destination, push a more semantic representation of *why* we need the cleanup/catch/filter behavior, then collect that information into a single landing pad upon request. Also reorganizes how normal cleanups (i.e. cleanups triggered by non-exceptional control flow) are generated, since it's actually fairly closely tied in with the former. Remove the need to track which cleanup scope a block is associated with. Document a lot of previously poorly-understood (by me, at least) behavior. The new framework implements the Horrible Hack (tm), which requires every landing pad to have a catch-all so that inlining will work. Clang no longer requires the Horrible Hack just to make exceptions flow correctly within a function, however. The HH is an unfortunate requirement of LLVM's EH IR. llvm-svn: 107631
-