summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* On Darwin, initialization and destruction functions should go into the ↵Anders Carlsson2010-06-08
| | | | | | __StaticInit section. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105650 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a global CreateGlobalInitOrDestructFunction and use it for creating ↵Anders Carlsson2010-06-08
| | | | | | global init or destruction functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105649 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename __tcf_ to __cxx_global_array_dtor. Remove the ↵Anders Carlsson2010-06-08
| | | | | | UniqueAggreDestructorCount from CodeGenFunction and let LLVM handle uniquing the internal functions instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105648 91177308-0d34-0410-b5e6-96231b3b80d8
* Move GenerateCXXAggrDestructorHelper to CGDeclCXX.cpp where it belongs.Anders Carlsson2010-06-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105647 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify GenerateCXXAggrDestructorHelper.Anders Carlsson2010-06-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105646 91177308-0d34-0410-b5e6-96231b3b80d8
* Block Code Gen. API. Call destructor on descriptiorFariborz Jahanian2010-06-08
| | | | | | | | entry previously constructed via copy constructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105641 91177308-0d34-0410-b5e6-96231b3b80d8
* Makefiles: Set Clang CPP compiler flags in a single location, instead of ↵Daniel Dunbar2010-06-08
| | | | | | scattered throughout the project Makefiles. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105638 91177308-0d34-0410-b5e6-96231b3b80d8
* Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.Daniel Dunbar2010-06-08
| | | | | | - This eliminates most dependencies on how Clang is installed relative to LLVM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105637 91177308-0d34-0410-b5e6-96231b3b80d8
* Correctly mangle static variables of anonymous struct/union type.Anders Carlsson2010-06-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105606 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix NEON intrinsic argument passing, support vext. Most now successfully ↵Nate Begeman2010-06-08
| | | | | | make it through codegen to the .s file git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105599 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix what looks like a merge problem that broke __clear_cache.Rafael Espindola2010-06-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105595 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix passing and returning of objects with non trivial copy constructors onRafael Espindola2010-06-08
| | | | | | | | ARM. Fixes PR7310. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105592 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement ARM NEON up through vcvt, alphabetically.Nate Begeman2010-06-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105590 91177308-0d34-0410-b5e6-96231b3b80d8
* Extend __builtin_shufflevector to expose the full power of the llvm ↵Nate Begeman2010-06-08
| | | | | | shufflevector instruction. This means it can now be used for vector truncation and concatenation. This will be used for the ARM NEON implementation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105589 91177308-0d34-0410-b5e6-96231b3b80d8
* When using property-dot assignment syntax to call a setter method,Fariborz Jahanian2010-06-07
| | | | | | | | type of rhs need be compared to setter's argument and not the getter type. Fixes radar 8062778 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105560 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a block regression caused by trying to useFariborz Jahanian2010-06-07
| | | | | | | | | an existing ir for load of a bock variable. This cannot be done across basic blocks. Fixes radar 8064140. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105549 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement __clear_cache on ARM.Rafael Espindola2010-06-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105537 91177308-0d34-0410-b5e6-96231b3b80d8
* weekend checkpoint of arm neon builtins codegen. Nate Begeman2010-06-07
| | | | | | | TODO: add remainder of builtins to CGBuiltin, add code to SemaChecking to validate constants. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105532 91177308-0d34-0410-b5e6-96231b3b80d8
* Added AccessSpecDecl node.Abramo Bagnara2010-06-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105525 91177308-0d34-0410-b5e6-96231b3b80d8
* Preserve type info for local variables in optimized builds. Devang Patel2010-06-05
| | | | | | | llvm-gcc enabled this couple of weeks ago. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105516 91177308-0d34-0410-b5e6-96231b3b80d8
* Build AST for copy-construction of copied-inFariborz Jahanian2010-06-04
| | | | | | | | class object in blocks and carry it to IRGen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105487 91177308-0d34-0410-b5e6-96231b3b80d8
* For C++ copied in objects, use copy constructors inFariborz Jahanian2010-06-04
| | | | | | | | | setting up block's descriptor. This is on going work to support c++ specific issues in setting up blocks various APIs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105469 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove now unused code.Anders Carlsson2010-06-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105448 91177308-0d34-0410-b5e6-96231b3b80d8
* Use CXXRecordDecl::getFinalOverriders to get final overriders. This speeds ↵Anders Carlsson2010-06-04
| | | | | | up vtable layout by moving away from the old final overrider computation code that had O(N^2) complexity in some cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105447 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't intentionally try to ignore the value of a scalar expression when weEli Friedman2010-06-03
| | | | | | | | actually care about it. Fixes PR7291. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105404 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't try to explicitly zero out bit-fields.Anders Carlsson2010-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105391 91177308-0d34-0410-b5e6-96231b3b80d8
* Block C++ code gen. Adds support for block reference argumentFariborz Jahanian2010-06-02
| | | | | | | | types. Executable test will be added to LLVM test suite. (radar 8041962). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105347 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't try to emit the vtable for a class just because we're emitting aJohn McCall2010-06-02
| | | | | | | | | | virtual function from it. Fixes PR7241. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105345 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't substitute 'St' for 'std' when the namespace is nested inside another ↵Anders Carlsson2010-06-02
| | | | | | namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105330 91177308-0d34-0410-b5e6-96231b3b80d8
* When building RTTI descriptors for pointer types, we need to get the ↵Anders Carlsson2010-06-02
| | | | | | unqualified array type and the qualifiers from it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105326 91177308-0d34-0410-b5e6-96231b3b80d8
* Correctly mangle unsigned integer literals where the high bit is set.Anders Carlsson2010-06-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105312 91177308-0d34-0410-b5e6-96231b3b80d8
* Correctly mangle variadic functions that don't have any other parameters.Anders Carlsson2010-06-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105311 91177308-0d34-0410-b5e6-96231b3b80d8
* When mangling member function pointers, fake adding a substitution ↵Anders Carlsson2010-06-02
| | | | | | corresponding to the function type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105310 91177308-0d34-0410-b5e6-96231b3b80d8
* More cleanup.Anders Carlsson2010-06-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105301 91177308-0d34-0410-b5e6-96231b3b80d8
* More cleanup.Anders Carlsson2010-06-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105299 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup.Anders Carlsson2010-06-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105296 91177308-0d34-0410-b5e6-96231b3b80d8
* Make methods non-virtual again for now. I accidentally committed this inCharles Davis2010-05-31
| | | | | | | preparation for an alternate mangler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105224 91177308-0d34-0410-b5e6-96231b3b80d8
* Silence GCC warning about an accessible non-virtual destructor in a class withChandler Carruth2010-05-31
| | | | | | | | | virtual methods. Please review cdavis, should these methods even be virtual? git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105218 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused parameter to FinalOverriders::PropagateOverrider.Anders Carlsson2010-05-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105171 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert DeclNodes to use TableGen.Sean Hunt2010-05-30
| | | | | | | | The macros required for DeclNodes use have changed to match the use of StmtNodes. The FooFirst enumerator constants have been named firstFoo to match usage elsewhere. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105165 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR7040: Don't try to compute the LLVM type for a function where itEli Friedman2010-05-30
| | | | | | | | | | | | | isn't possible to compute. This patch is mostly refactoring; the key change is the addition of the code starting with the comment, "Check whether the function has a computable LLVM signature." The solution here is essentially the same as the way the vtable code handles such functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105151 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix personality function name when using SjLj exceptions.Daniel Dunbar2010-05-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104999 91177308-0d34-0410-b5e6-96231b3b80d8
* zero-cost exception API for NeXt runtime.Fariborz Jahanian2010-05-28
| | | | | | | | | rethrow inside @catch block must use objc_exception_rethrow API. Fixes radar 8037512. Test will be added to LLVM test suite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104964 91177308-0d34-0410-b5e6-96231b3b80d8
* This cast is no longer needed; the FIXME is fixed.Dan Gohman2010-05-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104919 91177308-0d34-0410-b5e6-96231b3b80d8
* This cast is no longer required.Dan Gohman2010-05-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104916 91177308-0d34-0410-b5e6-96231b3b80d8
* Update __builtin_setjmp codegen to match llvmCore changes in r104900.Jim Grosbach2010-05-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104902 91177308-0d34-0410-b5e6-96231b3b80d8
* When null-initializing bases with data member pointers, don't assert on ↵Anders Carlsson2010-05-27
| | | | | | virtual bases. Just initialize them to null. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104868 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable the implementation of __builtin_setjmp and __builtin_longjmp. Not allJohn McCall2010-05-27
| | | | | | | | LLVM backends support these yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104867 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement __builtin_init_dwarf_reg_size_table and __builtin_dwarf_sp_columnJohn McCall2010-05-27
| | | | | | | | | for 32-bit MIPS processors. Hat-tip to rdivacky for providing gcc dumps on this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104816 91177308-0d34-0410-b5e6-96231b3b80d8
* When deciding whether a deferred declaration has already been emitted,John McCall2010-05-27
| | | | | | | | | aliases count as definitions regardless of whether their target has been emitted yet. Fixes PR 7142. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104796 91177308-0d34-0410-b5e6-96231b3b80d8