summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/virt.cpp
Commit message (Collapse)AuthorAge
* Baby steps towards fixing PR5589. If a class needs a vtable pointer, add one.Anders Carlsson2009-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91545 91177308-0d34-0410-b5e6-96231b3b80d8
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-15
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
* Work-in-progess rewrite of thunks: move thunk generation outside of vtableEli Friedman2009-12-06
| | | | | | | | | generation, and make sure we generate thunks when the function is defined rather than when the vtable is defined. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90722 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup key function calculations.Mike Stump2009-11-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89412 91177308-0d34-0410-b5e6-96231b3b80d8
* More VTT and constructor vtable testcases from recent work.Mike Stump2009-11-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88710 91177308-0d34-0410-b5e6-96231b3b80d8
* Add more testcase for construction vtables and VTTs.Mike Stump2009-11-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88702 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some more VTT testcases.Mike Stump2009-11-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88699 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a testcase for the recent VTT work.Mike Stump2009-11-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88681 91177308-0d34-0410-b5e6-96231b3b80d8
* This falls into the category of stupid pet tricks. I hate to do this,Mike Stump2009-11-13
| | | | | | | | | but this is necessary to continue work on virtual vtables. We don't want to penalize virtual table building testcases, just because complex virtual conversions don't yet work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88676 91177308-0d34-0410-b5e6-96231b3b80d8
* Unify the codepaths used to verify base and member initializers for explicitlyEli Friedman2009-11-09
| | | | | | | | | | | | | | | | | | and implicitly defined constructors. This has a number of benefits: 1. Less code. 2. Explicit and implicit constructors get the same diagnostics. 3. The AST explicitly contains constructor calls from implicit default constructors. This allows handing some cases that previously weren't handled correctly in IRGen without any additional code. Specifically, implicit default constructors containing calls to constructors with default arguments are now handled correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86500 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove RUN: true lines.Daniel Dunbar2009-11-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86432 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate &&s in tests.Daniel Dunbar2009-11-08
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86430 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine the non-virtual this adjustment. Optimize out virtual thisMike Stump2009-11-06
| | | | | | | adjustments of zero. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86300 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine the vcall for a function that is defined in a virtual baseMike Stump2009-11-06
| | | | | | | class that is overridden in a base that isn't morally virtual. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86217 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert file over to checking the .ll file for codegen. Also, weMike Stump2009-11-06
| | | | | | | speed up this file by not doing twice the checking. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86205 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine covariant return value adjustments for thunks when nullMike Stump2009-11-05
| | | | | | | pointers are returned. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86120 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for a recent checkin.Mike Stump2009-11-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86118 91177308-0d34-0410-b5e6-96231b3b80d8
* Update.Mike Stump2009-11-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86117 91177308-0d34-0410-b5e6-96231b3b80d8
* this test has started failing due to an optimizer change. Clang testsChris Lattner2009-11-04
| | | | | | | | should only look at -O0 IR output not -O3 assembly output. XFAIL it for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86029 91177308-0d34-0410-b5e6-96231b3b80d8
* Split out return adjustments in thunks from this adjustment in thunksMike Stump2009-11-04
| | | | | | | | so the optimizer can tailcall into the return value adjustment thunk. This improves codesize for complex hierarchies. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85988 91177308-0d34-0410-b5e6-96231b3b80d8
* vtable testcase for recent work on vcall/vbase offsets.Mike Stump2009-11-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85925 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine codegen for covariant thunks that return references.Mike Stump2009-11-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85916 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine return value adjustments for thunks.Mike Stump2009-11-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85905 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine vcall/vbase ordering with vtable construction.Mike Stump2009-10-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85677 91177308-0d34-0410-b5e6-96231b3b80d8
* Finish off pure virtual function handling.Mike Stump2009-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85354 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for recent checkin. WIP.Mike Stump2009-10-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84123 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine handling for return value conversions with respect to virtualMike Stump2009-10-13
| | | | | | | offsets for covariant thunks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83965 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix http://llvm.org/PR5090.Mike Stump2009-09-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83035 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine vcall offsets. Cleanups. WIP.Mike Stump2009-09-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81143 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for recent checkin.Mike Stump2009-09-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80725 91177308-0d34-0410-b5e6-96231b3b80d8
* iGenerate vcalls as we build up the methods. WIP.Mike Stump2009-08-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80405 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for an almost recent checkin.Mike Stump2009-08-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80189 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup codegen for static dispatch to a virtual function that wasMike Stump2009-08-26
| | | | | | | almost correct. :-) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80181 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement virtual dispatch. :-) This is self-consistent with clang,Mike Stump2009-08-26
| | | | | | | | but not yet necessarily perfectly consistent with gcc. Also addressed Doug and John's comments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80137 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r80064 since it broke the build.Anders Carlsson2009-08-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80066 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement virtual dispatch. :-) This is self-consistent with clang, but ↵Mike Stump2009-08-26
| | | | | | | | | not yet necessarily perfectly consistent with gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80064 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for a recent checkin.Mike Stump2009-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79646 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo.Mike Stump2009-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79632 91177308-0d34-0410-b5e6-96231b3b80d8
* We now support overriding base functions in vtables. WIP.Mike Stump2009-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79587 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine vbase offsets for the inductive case. Things are now startingMike Stump2009-08-20
| | | | | | | to come together nicely. Still a WIP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79521 91177308-0d34-0410-b5e6-96231b3b80d8
* Ensure we don't output repeated vbase offsets. I have a testcase forMike Stump2009-08-20
| | | | | | | | this, but need to fixup the actual offset value before I can check it in. WIP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79506 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for recent improvements.Mike Stump2009-08-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79421 91177308-0d34-0410-b5e6-96231b3b80d8
* Restore vbase offsets for classes without a primary.Mike Stump2009-08-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79402 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine vcalls a little.Mike Stump2009-08-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79400 91177308-0d34-0410-b5e6-96231b3b80d8
* Refine vbase offset calculations. WIP.Mike Stump2009-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79198 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the -NEXT feature of FileCheck.Mike Stump2009-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79166 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanups and fixups for calculating the virtual base offsets. WIP.Mike Stump2009-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79156 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for a recent checkin.Mike Stump2009-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78974 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for recent checkin.Mike Stump2009-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78973 91177308-0d34-0410-b5e6-96231b3b80d8