summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
Commit message (Collapse)AuthorAge
...
* Synthesized copy constructor now generates code forFariborz Jahanian2009-08-07
| | | | | | | | copying non-virtual base classes which have non-trivial constructor. Work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78436 91177308-0d34-0410-b5e6-96231b3b80d8
* More synthesis of copy constructors. Work in progress.Fariborz Jahanian2009-08-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78402 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for vcall generation for vtables for virtual bases. WIP.Mike Stump2009-08-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78357 91177308-0d34-0410-b5e6-96231b3b80d8
* Also generate the rtti field for virtual bases for vtables. Turn onMike Stump2009-08-06
| | | | | | | | rtti so we can properly test it. Refactor code a little. Still a work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78343 91177308-0d34-0410-b5e6-96231b3b80d8
* More layout for virtual tables for virtual bases. Still in progress.Mike Stump2009-08-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78314 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for LLVM API change.Owen Anderson2009-08-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78259 91177308-0d34-0410-b5e6-96231b3b80d8
* Add beginnigs of rtti generation, wire up more of -fno-exceptions.Mike Stump2009-07-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77751 91177308-0d34-0410-b5e6-96231b3b80d8
* Add code to setup the vtable pointer in the constructor. Work in progress.Mike Stump2009-07-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77699 91177308-0d34-0410-b5e6-96231b3b80d8
* Patch for future ir-gen for destructor calls.Fariborz Jahanian2009-07-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77608 91177308-0d34-0410-b5e6-96231b3b80d8
* Some code cleanup.Fariborz Jahanian2009-07-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77339 91177308-0d34-0410-b5e6-96231b3b80d8
* More work toward data member access ir-gen.Fariborz Jahanian2009-07-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77332 91177308-0d34-0410-b5e6-96231b3b80d8
* Early ir-gen for constructor prologue. This is on going.Fariborz Jahanian2009-07-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76493 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid generation of dead code in a few more situations.Daniel Dunbar2009-07-19
| | | | | | | | | | | | | | - Emit variable declarations as "simple", we want to avoid forcing the creation of a dummy basic block, but still need to make the variable available for later use. - With that, we can now skip IRgen for other unreachable statements (which don't define a label). - Anders, I added two fixmes on calls to EmitVLASize, can you check them? git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76361 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for LLVM API change, and contextify a bunch of related stuff.Owen Anderson2009-07-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75705 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for LLVM API change.Owen Anderson2009-07-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75446 91177308-0d34-0410-b5e6-96231b3b80d8
* Implemented memmove_collectable API for Next runtimeFariborz Jahanian2009-07-08
| | | | | | | | when struct variables with GC'able members are copied into. Will provide a test case later. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74984 91177308-0d34-0410-b5e6-96231b3b80d8
* Add PushConditionalTempDestruction/PopConditionalTempDestruction.Anders Carlsson2009-06-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72835 91177308-0d34-0410-b5e6-96231b3b80d8
* More temporary work.Anders Carlsson2009-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72796 91177308-0d34-0410-b5e6-96231b3b80d8
* Store more information about live temporaries. No functionality change for now.Anders Carlsson2009-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72793 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new function for emitting new functions.Anders Carlsson2009-05-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72656 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit destructors correctly for temporaries.Anders Carlsson2009-05-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72655 91177308-0d34-0410-b5e6-96231b3b80d8
* Add lvalue irgen support for CXXBindTemporaryExpr.Anders Carlsson2009-05-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72649 91177308-0d34-0410-b5e6-96231b3b80d8
* More temporary support.Anders Carlsson2009-05-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72648 91177308-0d34-0410-b5e6-96231b3b80d8
* Add code for emitting C++ destructors. Not used yet.Anders Carlsson2009-05-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72591 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup the rest of the trivial cases of the codegen of volatile. IfMike Stump2009-05-29
| | | | | | | | any body can spot codegen bugs with volatile, or knows of any in the bug database, let me know. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72572 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle operator call expressions where the callee is a member function.Anders Carlsson2009-05-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72458 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename an EmitCallExpr function to EmitCall to make it clear that it doesn't ↵Anders Carlsson2009-05-27
| | | | | | emit an expr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72446 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup codegen for volatile structs in the trivial cases (a a=a and a=a=a).Mike Stump2009-05-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72439 91177308-0d34-0410-b5e6-96231b3b80d8
* Track volatile aggregate copies better. I'm hoping someone else will decideMike Stump2009-05-23
| | | | | | | how to get the backend to know that the operation is volatile. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72348 91177308-0d34-0410-b5e6-96231b3b80d8
* Add EmitReferenceBindingToExpr. Have EmitCallArg use it for now. Doesn't ↵Anders Carlsson2009-05-20
| | | | | | support anything but at least we don't crash ;) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72147 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass the destination QualType to EmitStoreOfScalar. No functionality change.Anders Carlsson2009-05-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72118 91177308-0d34-0410-b5e6-96231b3b80d8
* Factor code that's common to EmitCXXMemberCallExpr and ↵Anders Carlsson2009-05-11
| | | | | | EmitCXXConstructorCall out into a EmitCXXMemberCall function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71514 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unnecessary copy of constraint info.Daniel Dunbar2009-05-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70835 91177308-0d34-0410-b5e6-96231b3b80d8
* Make codegen for constructors work again.Anders Carlsson2009-05-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70785 91177308-0d34-0410-b5e6-96231b3b80d8
* split ObjC and C++ Statements out into their own headers.Chris Lattner2009-04-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70105 91177308-0d34-0410-b5e6-96231b3b80d8
* fix PR4067: [Linux kernel] cannot aggregate codegen stmtexpr as lvalue Chris Lattner2009-04-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70067 91177308-0d34-0410-b5e6-96231b3b80d8
* the logic for computing __func__ and friends is really broken:Chris Lattner2009-04-23
| | | | | | | | | | the type assigned by sema (and is visible with sizeof(__func__) for example) has nothing to do with what codegen ends up producing. We should eventually add a method on PredefinedExpr to handle this. In the meantime, just set up some framework and add some fixme's. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69872 91177308-0d34-0410-b5e6-96231b3b80d8
* Make ObjCInterfaceDecl's const in some more places.Daniel Dunbar2009-04-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69775 91177308-0d34-0410-b5e6-96231b3b80d8
* Kill ASTContext::[gs]etFieldForDecl, instead we just lookup thingsDaniel Dunbar2009-04-21
| | | | | | | | | when we need them -- which is exactly what some code was already doing! - No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69648 91177308-0d34-0410-b5e6-96231b3b80d8
* Silence gcc warning.Eli Friedman2009-04-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69541 91177308-0d34-0410-b5e6-96231b3b80d8
* Make CodeGenFunction::EmitCallArgs a template function that takes a generic ↵Anders Carlsson2009-04-18
| | | | | | "Type Info" parameter. The type info parameter knows how to iterate over its arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69469 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement basic code generation of constructor calls. We can now compile:Anders Carlsson2009-04-17
| | | | | | | | | | | | | | struct S { S(int, int); }; void f() { S s(10, 10); } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69330 91177308-0d34-0410-b5e6-96231b3b80d8
* Support code generation of 'this' exprsAnders Carlsson2009-04-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69050 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove asserts that weren't really useful, and that would fire in case the ↵Anders Carlsson2009-04-10
| | | | | | CleanupEntries vector needed to be reallocated. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68835 91177308-0d34-0410-b5e6-96231b3b80d8
* Add code for emitting call arguments (not used yet).Anders Carlsson2009-04-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68639 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some basic support for generating C++ member functions.Anders Carlsson2009-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68425 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for calling C++ member functions.Anders Carlsson2009-04-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68412 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a subtle bug where the cleanup scope entries had a dangling block referenceDaniel Dunbar2009-04-01
| | | | | | | | | | - <rdar://problem/6732143> Crash when generating @synchronize for zero-cost exception - Thanks to Anders for helping track down the problem. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68186 91177308-0d34-0410-b5e6-96231b3b80d8
* remove some obsolete comments, use an AssertingVH.Chris Lattner2009-03-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68151 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup codegen for block literals that bleed copy/dispose informationMike Stump2009-03-25
| | | | | | | from previous block literals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67696 91177308-0d34-0410-b5e6-96231b3b80d8