summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCXX.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add basic codegen for thunks that return values.Mike Stump2009-11-021-2/+5
| | | | llvm-svn: 85842
* Refine codegen for thunks.Mike Stump2009-11-021-30/+27
| | | | llvm-svn: 85839
* Minor cleanup.Fariborz Jahanian2009-10-281-3/+4
| | | | llvm-svn: 85434
* Code gen for array construction - WIPFariborz Jahanian2009-10-281-4/+17
| | | | llvm-svn: 85432
* Code-gen for CXXZeroInitValueExpr AST passedFariborz Jahanian2009-10-201-4/+0
| | | | | | as argument to a function call. Removes a FIXME. llvm-svn: 84694
* Implement derived-to-base AST/code gen. There is aFariborz Jahanian2009-10-161-6/+13
| | | | | | | FIXME in CGCXX.cpp that I would like Anders to take a look at. llvm-svn: 84265
* Don't assume that the LHS and RHS of a member pointer expression is a ↵Anders Carlsson2009-10-131-5/+6
| | | | | | DeclRefExpr. Fixes PR5177. llvm-svn: 83986
* Even more devirtualization cleverness.Anders Carlsson2009-10-121-1/+5
| | | | llvm-svn: 83886
* More devirtualization improvements.Anders Carlsson2009-10-121-0/+4
| | | | llvm-svn: 83883
* Devirtualize calls on temporaries. A().f() for example.Anders Carlsson2009-10-121-0/+6
| | | | llvm-svn: 83882
* Factor out devirtualization checking into a separate function and make it ↵Anders Carlsson2009-10-121-1/+15
| | | | | | handle references correctly. llvm-svn: 83880
* If the base type of a member call is a record type we don't need to emit a ↵Anders Carlsson2009-10-111-5/+6
| | | | | | virtual call. llvm-svn: 83816
* Move the vtable builder to CGVtable.cpp, general cleanup.Anders Carlsson2009-10-111-548/+5
| | | | llvm-svn: 83798
* Change mangleCXXVtable and mangleCXXRtti to take CXXRecordDecls instead of ↵Anders Carlsson2009-10-111-2/+1
| | | | | | QualTypes. llvm-svn: 83793
* Move our (non-existing) RTTI emission code into CGRtti.cpp. No functionality ↵Anders Carlsson2009-10-101-32/+0
| | | | | | change. llvm-svn: 83732
* Avoid warning.Mike Stump2009-10-091-1/+1
| | | | llvm-svn: 83609
* Add a MangleContext and pass it to all mangle functions. It will be used for ↵Anders Carlsson2009-10-071-7/+7
| | | | | | keeping state, such as identifiers assigned to anonymous structs as well as scope encoding. llvm-svn: 83442
* Uncomment some commented out code.Anders Carlsson2009-10-061-4/+4
| | | | llvm-svn: 83428
* Change GetAddressCXXOfBaseClass to use CXXBasePaths for calculating base ↵Anders Carlsson2009-10-061-8/+46
| | | | | | class offsets. Fix the code to handle virtual bases as well. llvm-svn: 83426
* Pass the right type to GetAddrOfFunction when getting functions for the ↵Anders Carlsson2009-10-061-4/+16
| | | | | | VTable. Fixes PR5021. llvm-svn: 83395
* Implement code generation of member function pointer calls. Fixes PR5121.Anders Carlsson2009-10-031-0/+109
| | | | llvm-svn: 83271
* Move some functions from CodeGenFunctions to CodeGenModule so they can be ↵Anders Carlsson2009-10-031-8/+12
| | | | | | used by CGExprConstant. llvm-svn: 83263
* Handle CXXMemberCallExprs that point to a static method. Fixes PR5093.Anders Carlsson2009-09-291-0/+8
| | | | llvm-svn: 83045
* Fix http://llvm.org/PR5090.Mike Stump2009-09-291-1/+2
| | | | llvm-svn: 83035
* CodeGen for try statements. (We just emit the body for now).Anders Carlsson2009-09-271-4/+9
| | | | llvm-svn: 82910
* Refactor the representation of qualifiers to bring ExtQualType out of theJohn McCall2009-09-241-2/+2
| | | | | | | | Type hierarchy. Demote 'volatile' to extended-qualifier status. Audit our use of qualifiers and fix a few places that weren't dealing with qualifiers quite right; many more remain. llvm-svn: 82705
* Add a new variant of EmitCXXAggrConstructorCall that takes a Value that ↵Anders Carlsson2009-09-231-20/+26
| | | | | | holds the number of elements to construct, to be used when implementing new[]. llvm-svn: 82602
* Move codegen of new and delete to CGCXXExpr.cppAnders Carlsson2009-09-221-187/+0
| | | | llvm-svn: 82585
* Change all the Type::getAsFoo() methods to specializations of Type::getAs().John McCall2009-09-211-18/+18
| | | | | | | | | | | Several of the existing methods were identical to their respective specializations, and so have been removed entirely. Several more 'leaf' optimizations were introduced. The getAsFoo() methods which imposed extra conditions, like getAsObjCInterfacePointerType(), have been left in place. llvm-svn: 82501
* Generate more of the vbase virtual offset for covariant thunks. WIP.Mike Stump2009-09-181-8/+72
| | | | llvm-svn: 82253
* Remove an unnecessary FunctionDecl parameter to the synthesizing functions.Anders Carlsson2009-09-141-24/+24
| | | | llvm-svn: 81759
* Handle delete where the class has a virtual destructor.Anders Carlsson2009-09-141-5/+8
| | | | llvm-svn: 81733
* Rename AddressCXXOfBaseClass to GetAddressCXXOfBaseClass. Add a ↵Anders Carlsson2009-09-121-12/+20
| | | | | | NullCheckValue argument (currently unused). llvm-svn: 81606
* Add CGCXXClass.cpp. and move CodeGenFunction::AddressCXXOfBaseClass there.Anders Carlsson2009-09-121-67/+0
| | | | llvm-svn: 81604
* Fix a crash when generating vtables that contain destructors.Anders Carlsson2009-09-121-5/+4
| | | | llvm-svn: 81587
* Add basic covariant thunk generation support. WIP.Mike Stump2009-09-111-4/+95
| | | | llvm-svn: 81585
* Pass GlobalDecls to GenerateCode and StartFunction.Anders Carlsson2009-09-111-13/+18
| | | | llvm-svn: 81485
* GlobalDecl doesn't have an explicit constructor anymore.Anders Carlsson2009-09-101-10/+8
| | | | llvm-svn: 81481
* Use the right GlobalDecl type for destructors.Anders Carlsson2009-09-091-1/+7
| | | | llvm-svn: 81398
* If a cast expression needs either a conversion function or a constructor to ↵Anders Carlsson2009-09-091-22/+0
| | | | | | be called, generate implicit child expressions that call them. llvm-svn: 81383
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-306/+306
| | | | llvm-svn: 81346
* Refine vcall offsets. Cleanups. WIP.Mike Stump2009-09-071-24/+35
| | | | llvm-svn: 81143
* Refine overrides and thunks for virtual bases. Cleanups. WIP.Mike Stump2009-09-051-25/+41
| | | | llvm-svn: 81080
* Cleanup.Mike Stump2009-09-051-6/+7
| | | | llvm-svn: 81078
* Cleanups.Mike Stump2009-09-051-5/+5
| | | | llvm-svn: 81077
* Cleanups.Mike Stump2009-09-051-2/+0
| | | | llvm-svn: 81075
* Cleanups.Mike Stump2009-09-051-21/+10
| | | | llvm-svn: 81074
* Cleanups.Mike Stump2009-09-051-6/+3
| | | | llvm-svn: 81073
* Cleanups.Mike Stump2009-09-051-5/+29
| | | | llvm-svn: 81072
* Cleanups.Mike Stump2009-09-051-6/+5
| | | | llvm-svn: 81071
OpenPOWER on IntegriCloud