| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Start stubbing out vcall offset handling. | Anders Carlsson | 2010-02-18 | 1 | -10/+60 |
| | | | | | llvm-svn: 96585 | ||||
| * | Store the base offset of the final overrider in the OverriderInfo struct, to ↵ | Anders Carlsson | 2010-02-18 | 1 | -1/+6 |
| | | | | | | | be used for vcall offsets. llvm-svn: 96582 | ||||
| * | Remove some dead code. | Anders Carlsson | 2010-02-18 | 1 | -13/+0 |
| | | | | | llvm-svn: 96581 | ||||
| * | Extract out function-body code generation into its own method. No functionality | John McCall | 2010-02-18 | 3 | -111/+98 |
| | | | | | | | change. llvm-svn: 96564 | ||||
| * | silence warning in a cleaner way | Chris Lattner | 2010-02-17 | 1 | -2/+1 |
| | | | | | llvm-svn: 96520 | ||||
| * | Patch to remove arbitrary imporation of 'self' into | Fariborz Jahanian | 2010-02-17 | 1 | -13/+0 |
| | | | | | | | | | a block without it being used. This causes over release of objects in certain runtime-senitive apps. (fixes radar 7581175). llvm-svn: 96501 | ||||
| * | Did not intend to check this in. | Fariborz Jahanian | 2010-02-17 | 1 | -2/+0 |
| | | | | | llvm-svn: 96486 | ||||
| * | Use proper lexcial context for newly added ivars. | Fariborz Jahanian | 2010-02-17 | 1 | -0/+2 |
| | | | | | llvm-svn: 96484 | ||||
| * | Make FinalOverriders handle virtual bases correctly. Unfortunately this ↵ | Anders Carlsson | 2010-02-17 | 1 | -3/+33 |
| | | | | | | | can't be tested just yet. llvm-svn: 96481 | ||||
| * | Handle primary bases in AddVCallOffsets. | Anders Carlsson | 2010-02-17 | 1 | -2/+9 |
| | | | | | llvm-svn: 96461 | ||||
| * | Silence GCC warning by marking an assert-only variable as unused. | Chandler Carruth | 2010-02-17 | 1 | -1/+1 |
| | | | | | llvm-svn: 96459 | ||||
| * | First cut at emitting vcall offsets. | Anders Carlsson | 2010-02-17 | 1 | -3/+77 |
| | | | | | llvm-svn: 96455 | ||||
| * | Emit complete constructors and destructors as aliases to base constructors | John McCall | 2010-02-17 | 3 | -26/+142 |
| | | | | | | | | | and destructors when the two entities are semantically identical, i.e. when the class has no virtual base classes. We only do this for linkage types for which aliases are supported, i.e. internal and external, i.e. not linkonce. llvm-svn: 96451 | ||||
| * | Pass through whether a base is virtual or not. | Anders Carlsson | 2010-02-17 | 1 | -17/+26 |
| | | | | | llvm-svn: 96449 | ||||
| * | implement EmitVAArg. pretty much the same way other targets do. | Sanjiv Gupta | 2010-02-17 | 1 | -1/+21 |
| | | | | | llvm-svn: 96446 | ||||
| * | Correctly calculate base offsets for 'this' pointer adjustments involving ↵ | Anders Carlsson | 2010-02-17 | 1 | -3/+40 |
| | | | | | | | virtual bases. This can't be tested yet due to lack of vcall offsets :) llvm-svn: 96441 | ||||
| * | IRgen optimization: cache the value of 'this' and 'vtt' instead of | John McCall | 2010-02-16 | 4 | -25/+19 |
| | | | | | | | | | repeatedly reloading from an alloca. We still need to create the alloca for debug info purposes (although we currently create it in all cases because of some abstraction boundaries that're hard to break down). llvm-svn: 96403 | ||||
| * | Distinguish two lexical blocks at the same level. | Devang Patel | 2010-02-16 | 1 | -1/+4 |
| | | | | | llvm-svn: 96397 | ||||
| * | IRgen: Switch 'retval' to use CreateIRTemp. | Daniel Dunbar | 2010-02-16 | 1 | -2/+2 |
| | | | | | llvm-svn: 96376 | ||||
| * | IRgen: Add CreateIRTemp, which creates a temporary alloca but with type ↵ | Daniel Dunbar | 2010-02-16 | 2 | -1/+18 |
| | | | | | | | converted "not-for-memory". Dunno a better name. llvm-svn: 96374 | ||||
| * | IRgen: Switch EmitCompoundLiteralLValue to use CreateMemTemp. | Daniel Dunbar | 2010-02-16 | 1 | -3/+1 |
| | | | | | llvm-svn: 96373 | ||||
| * | Handle layout of vtables for virtual bases. | Anders Carlsson | 2010-02-16 | 1 | -1/+41 |
| | | | | | llvm-svn: 96355 | ||||
| * | Move some code around in preparation for virtual base vtables. | Anders Carlsson | 2010-02-16 | 1 | -9/+18 |
| | | | | | llvm-svn: 96354 | ||||
| * | Fix a bug where we would not emit secondary vtables for bases of a primary base. | Anders Carlsson | 2010-02-16 | 1 | -12/+29 |
| | | | | | llvm-svn: 96351 | ||||
| * | Emit vbase offsets. | Anders Carlsson | 2010-02-16 | 1 | -4/+38 |
| | | | | | llvm-svn: 96329 | ||||
| * | More work on the new layout code. | Anders Carlsson | 2010-02-16 | 1 | -11/+66 |
| | | | | | llvm-svn: 96328 | ||||
| * | When emitting complete destructors for classes with virtual bases, compute | John McCall | 2010-02-16 | 2 | -36/+64 |
| | | | | | | | | | | | | | the offset to the virtual bases statically inside of relying on the virtual base offsets in the object's vtable(s). This is both more efficient and sound against the destructor's manipulation of the vtables. Also extract a few helper routines. Oh and we seem to pass all tests with an optimized clang now. llvm-svn: 96327 | ||||
| * | Use getLocStart(), instead of getLocEnd(), to record starting location of ↵ | Devang Patel | 2010-02-15 | 1 | -1/+1 |
| | | | | | | | objc method. :) llvm-svn: 96245 | ||||
| * | Uniformize the names of type predicates: rather than having isFloatTy and | Duncan Sands | 2010-02-15 | 4 | -19/+19 |
| | | | | | | | isInteger, we now have isFloatTy and isIntegerTy. Requested by Chris! llvm-svn: 96224 | ||||
| * | When emitting an aggregate into a temporary, make sure we set the alignment | John McCall | 2010-02-15 | 1 | -1/+1 |
| | | | | | | | | | | on the alloca. The fact that codegen makes this class of bug so wonderfully easy to make is embarrassing. llvm-svn: 96204 | ||||
| * | Don't compute final overriders or build vtables for bases that don't need a ↵ | Anders Carlsson | 2010-02-14 | 1 | -3/+17 |
| | | | | | | | vtable. llvm-svn: 96171 | ||||
| * | Build fix. | Anders Carlsson | 2010-02-14 | 1 | -1/+1 |
| | | | | | llvm-svn: 96140 | ||||
| * | Baby steps towards teaching FinalOverriders about virtual bases. | Anders Carlsson | 2010-02-14 | 1 | -14/+31 |
| | | | | | llvm-svn: 96139 | ||||
| * | Don't try to layout construction vtables for now. | Anders Carlsson | 2010-02-14 | 1 | -1/+2 |
| | | | | | llvm-svn: 96138 | ||||
| * | Improve support for non-virtual 'this' pointer adjustments. With this, it ↵ | Anders Carlsson | 2010-02-14 | 1 | -27/+41 |
| | | | | | | | should be possible to use the new vtable layout code for all class hierarchies that do not involve virtual bases. llvm-svn: 96137 | ||||
| * | Add basic support for simple non-virtual 'this' pointer adjustments. | Anders Carlsson | 2010-02-13 | 1 | -5/+85 |
| | | | | | llvm-svn: 96136 | ||||
| * | Add support for very simple non-virtual this adjustments in the ↵ | Anders Carlsson | 2010-02-13 | 1 | -17/+68 |
| | | | | | | | FinalOverriders class. llvm-svn: 96133 | ||||
| * | Cleanup; remove some duplicated code. | Anders Carlsson | 2010-02-13 | 1 | -96/+4 |
| | | | | | llvm-svn: 96131 | ||||
| * | Assert if we encounter this adjustments. | Anders Carlsson | 2010-02-13 | 1 | -2/+9 |
| | | | | | llvm-svn: 96125 | ||||
| * | Start laying out secondary vtables. | Anders Carlsson | 2010-02-13 | 1 | -10/+17 |
| | | | | | llvm-svn: 96123 | ||||
| * | Merge base offsets and dump them. | Anders Carlsson | 2010-02-13 | 1 | -6/+42 |
| | | | | | llvm-svn: 96121 | ||||
| * | Don't make return adjustments for pure virtual member functions. | Anders Carlsson | 2010-02-13 | 1 | -5/+8 |
| | | | | | llvm-svn: 96120 | ||||
| * | Handle virtual bases in return adjustment types. | Anders Carlsson | 2010-02-13 | 1 | -17/+37 |
| | | | | | llvm-svn: 96119 | ||||
| * | Handle virtual bases in ComputeBaseOffset. | Anders Carlsson | 2010-02-13 | 1 | -10/+27 |
| | | | | | llvm-svn: 96117 | ||||
| * | More work on covariant return types. We now handle non-virtual adjustments fine. | Anders Carlsson | 2010-02-13 | 1 | -27/+96 |
| | | | | | llvm-svn: 96114 | ||||
| * | Emit the 'alignstack' LLVM function attribute when we encounter a function | Charles Davis | 2010-02-13 | 1 | -0/+17 |
| | | | | | | | | marked 'force_align_arg_pointer'. Almost there; now all I need to do is finish up the backend. llvm-svn: 96100 | ||||
| * | Fix think-o, attributes can't come *within* the type of the variable. | Chandler Carruth | 2010-02-13 | 1 | -1/+1 |
| | | | | | llvm-svn: 96099 | ||||
| * | Silence unused variable warning in a build without assertions. | Chandler Carruth | 2010-02-13 | 1 | -1/+2 |
| | | | | | llvm-svn: 96098 | ||||
| * | Remove dead {include, semicolon, variable}. | Benjamin Kramer | 2010-02-13 | 1 | -5/+1 |
| | | | | | llvm-svn: 96087 | ||||
| * | Use a different name for this iterator. MSVC and clang++ didn't like "I" in ↵ | Benjamin Kramer | 2010-02-13 | 1 | -3/+3 |
| | | | | | | | the same scope twice. llvm-svn: 96086 | ||||

