summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
Commit message (Collapse)AuthorAge
...
* When dumping vtables, also dump the thunks.Anders Carlsson2010-03-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98799 91177308-0d34-0410-b5e6-96231b3b80d8
* More work on thunks.Anders Carlsson2010-03-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98765 91177308-0d34-0410-b5e6-96231b3b80d8
* More this adjustment simplification.Anders Carlsson2010-03-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98333 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove OldOffset.Anders Carlsson2010-03-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98331 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove debug output.Anders Carlsson2010-03-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98330 91177308-0d34-0410-b5e6-96231b3b80d8
* Begin simplifying handling of thunks.Anders Carlsson2010-03-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98329 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the new vtable layout code for computing virtual base offset offsets.Anders Carlsson2010-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98257 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename getVirtualBaseOffsetIndex to getVirtualBaseOffsetOffset to reflect ↵Anders Carlsson2010-03-11
| | | | | | what it actually does. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98248 91177308-0d34-0410-b5e6-96231b3b80d8
* When possible, use the vbase offset offsets from the most derived class ↵Anders Carlsson2010-03-11
| | | | | | directly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98247 91177308-0d34-0410-b5e6-96231b3b80d8
* Keep track of, and dump, vbase offset offsets.Anders Carlsson2010-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98245 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix tests.Anders Carlsson2010-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98242 91177308-0d34-0410-b5e6-96231b3b80d8
* Run the new vtable builder for construction vtables as well now. Note that ↵Anders Carlsson2010-03-11
| | | | | | we still don't use the data it generates. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98239 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix calculation of whether a member function needs a thunk in construction ↵Anders Carlsson2010-03-10
| | | | | | vtables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98191 91177308-0d34-0410-b5e6-96231b3b80d8
* We were mistakenly marking morally virtual bases as being uninteresting. Fix ↵Anders Carlsson2010-03-10
| | | | | | this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98180 91177308-0d34-0410-b5e6-96231b3b80d8
* Ignore non-interesting bases when emitting construction vtables.Anders Carlsson2010-03-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98177 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't accidentally mark some functions in construction vtables as unused. ↵Anders Carlsson2010-03-10
| | | | | | Also land the test for a previous checkin, now that it's correct. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98139 91177308-0d34-0410-b5e6-96231b3b80d8
* When building construction vtables, we need to check if a primary virtual ↵Anders Carlsson2010-03-10
| | | | | | base is actually a primary virtual base in the layout class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98131 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve vcall offset handling in construction vtables. With this we layout ↵Anders Carlsson2010-03-10
| | | | | | the construction vtables from the ABI examples correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98127 91177308-0d34-0410-b5e6-96231b3b80d8
* Delay codegen of vtables when handling implicit instantiations.Rafael Espindola2010-03-10
| | | | | | | | This fixes PR6474. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98123 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug with base offset merging that Devang noticed.Anders Carlsson2010-03-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97641 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify code.Anders Carlsson2010-03-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97551 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename BaseOffset to Offset and make it signed in preparation of more ↵Anders Carlsson2010-03-02
| | | | | | construction vtable work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97546 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove debug output.Anders Carlsson2010-02-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97407 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle unused functions in construction vtables correctly.Anders Carlsson2010-02-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97406 91177308-0d34-0410-b5e6-96231b3b80d8
* When laying out vtables for virtual bases in construction vtables, we need ↵Anders Carlsson2010-02-28
| | | | | | to check if the vtable is a primary base in the layout class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97402 91177308-0d34-0410-b5e6-96231b3b80d8
* More improvements to construction vtables; we know handle vbase offsets ↵Anders Carlsson2010-02-28
| | | | | | correctly (I hope). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97361 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass information about whether a base is virtual or not down to ↵Anders Carlsson2010-02-28
| | | | | | getCtorVtable, we need this information in the vtable builder. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97356 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new function.Anders Carlsson2010-02-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97353 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix to dumpLayout; we want to be able to dump address points even if the ↵Anders Carlsson2010-02-27
| | | | | | vtable doesn't have any methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97350 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a simple construction vtable test.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97344 91177308-0d34-0410-b5e6-96231b3b80d8
* Start fleshing out construction vtable support.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97342 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable the new vtable layout code for vtables that aren't construction ↵Anders Carlsson2010-02-27
| | | | | | vtables. (This doesn't mean that we emit LLVM IR using it yet, it just means that it's running and hopefully not crashing or asserting). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97341 91177308-0d34-0410-b5e6-96231b3b80d8
* Move ComputeThisAdjustmentBaseOffset to VtableBuilder.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97340 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to insert the primary base in the set :)Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97339 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the real base offset when calculating vbase offsets.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97338 91177308-0d34-0410-b5e6-96231b3b80d8
* Figured out why the test was failing, this will hopefully fix it.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97336 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't add this adjustments for pure virtual member functions.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97334 91177308-0d34-0410-b5e6-96231b3b80d8
* We want to store method info for unused functions.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97333 91177308-0d34-0410-b5e6-96231b3b80d8
* Finish up the changes to this adjustments.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97328 91177308-0d34-0410-b5e6-96231b3b80d8
* Stub out more of the 'this' pointer adjustment fixes I've been planning. ↵Anders Carlsson2010-02-27
| | | | | | Start using a set vector for primary bases so they will be ordered. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97326 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix another vtable layout bug; we weren't looking hard enough for overriden ↵Anders Carlsson2010-02-27
| | | | | | functions when determining if an overrider will ever be used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97306 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle vcall offset sharing between destructors.Anders Carlsson2010-02-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97304 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug where we were generating an unnecessary vtable for a virtual base ↵Anders Carlsson2010-02-27
| | | | | | that's already a primary virtual base. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97303 91177308-0d34-0410-b5e6-96231b3b80d8
* Sundry fixes to the new vtable builder.John McCall2010-02-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97258 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve vcall offset handling.Anders Carlsson2010-02-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97174 91177308-0d34-0410-b5e6-96231b3b80d8
* Fux a bug where we were trying to add overriders for non-virtual bases of ↵Anders Carlsson2010-02-25
| | | | | | virtual bases more than once. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97173 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead code.Anders Carlsson2010-02-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97109 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the vcall and vbase offset layout code out into its own class.Anders Carlsson2010-02-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97107 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of 'this' adjustments from the FinalOverriders class since they can ↵Anders Carlsson2010-02-24
| | | | | | be different for the same overrider in different parts of the vtable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97068 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve this adjustment pointer calculation.Anders Carlsson2010-02-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97067 91177308-0d34-0410-b5e6-96231b3b80d8