| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix a CodeGen bug where we would skip zero-initialization for | Eli Friedman | 2012-08-25 | 1 | -0/+10 |
| | | | | | | | array new with a non-trivial constructor. Pointed out in PR13380. llvm-svn: 162643 | ||||
| * | Elide copy construction in new expressions. PR11757. | Eli Friedman | 2012-02-16 | 1 | -0/+11 |
| | | | | | llvm-svn: 150738 | ||||
| * | Make array new on a pointer to data member type work correctly. PR11523. | Eli Friedman | 2011-12-09 | 1 | -0/+8 |
| | | | | | llvm-svn: 146291 | ||||
| * | Convert the standard default-construction loops to use phis and | John McCall | 2011-07-13 | 1 | -7/+16 |
| | | | | | | | partial destruction. llvm-svn: 135033 | ||||
| * | When instantiating a C++ "new" expression, don't fake source locations | Douglas Gregor | 2011-06-27 | 1 | -0/+13 |
| | | | | | | | | | for the '(' and ')' around the initializer unless we actually have an initializer. Fixes PR10197, an issue where we were value-initializing rather than default-initializing. llvm-svn: 133913 | ||||
| * | Don't actually emit calls to the reserved global placement new and delete | John McCall | 2011-05-16 | 1 | -3/+49 |
| | | | | | | | | | | operators; their semantics are guaranteed by the language. If someone wants to argue that freestanding compiles shouldn't recognize this, I might be convinceable. llvm-svn: 131395 | ||||
| * | Fix a few more ConvertTypes that should be ConvertTypeForMems, fixing | Douglas Gregor | 2010-09-02 | 1 | -0/+4 |
| | | | | | | | two regressions in Boost.Config. llvm-svn: 112908 | ||||
| * | Abstract IR generation of array cookies into the C++ ABI class and | John McCall | 2010-09-02 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | implement ARM array cookies. Also fix a few unfortunate bugs: - throwing dtors in deletes prevented the allocation from being deleted - adding the cookie to the new[] size was not being considered for overflow (and, more seriously, was screwing up the earlier checks) - deleting an array via a pointer to array of class type was not causing any destructors to be run and was passing the unadjusted pointer to the deallocator - lots of address-space problems, in case anyone wants to support free store in a variant address space :) llvm-svn: 112814 | ||||
| * | Fix miscompilation. The cookie was not used when new'ing arrays with ↵ | Argyrios Kyrtzidis | 2010-08-26 | 1 | -1/+4 |
| | | | | | | | multiple dimensions. llvm-svn: 112188 | ||||
| * | Fix miscompilation. The custom new[]/delete[] methods were not getting ↵ | Argyrios Kyrtzidis | 2010-08-25 | 1 | -0/+11 |
| | | | | | | | called for arrays with more than 1 dimension. llvm-svn: 112107 | ||||
| * | Make sure to add MallocAttr to explicitly-declared operator new/new[] | Douglas Gregor | 2010-08-18 | 1 | -0/+4 |
| | | | | | | | when -fassume-sane-operator-new. Patch by Tom Jablin! llvm-svn: 111363 | ||||
| * | Implement zero-initialization for array new when there is an | Douglas Gregor | 2010-07-21 | 1 | -4/+38 |
| | | | | | | | | | | initializer of (). Make sure to use a simple memset() when we can, or fall back to generating a loop when a simple memset will not suffice. Fixes <rdar://problem/8212208>, a regression due to my work in r107857. llvm-svn: 108977 | ||||
| * | in 'new int[4]', constant fold the 4*4=16 instead of | Chris Lattner | 2010-07-20 | 1 | -0/+1 |
| | | | | | | | doing an overflow check. llvm-svn: 108943 | ||||
| * | temporarily disable this to fix the build bot. | Chris Lattner | 2010-07-20 | 1 | -1/+0 |
| | | | | | llvm-svn: 108936 | ||||
| * | Don't build an aggregate constructor loop when the constructor is trivial. | Anders Carlsson | 2010-05-03 | 1 | -0/+10 |
| | | | | | llvm-svn: 102912 | ||||
| * | Don't copy or initialize empty classes. Fixes PR7012. | Anders Carlsson | 2010-05-03 | 1 | -1/+1 |
| | | | | | llvm-svn: 102891 | ||||
| * | Reapply patch for adding support for address spaces and added a isVolatile ↵ | Mon P Wang | 2010-04-04 | 1 | -1/+1 |
| | | | | | | | field to memcpy, memmove, and memset. llvm-svn: 100305 | ||||
| * | Revert r100193 since it causes failures in objc in clang | Mon P Wang | 2010-04-02 | 1 | -1/+1 |
| | | | | | llvm-svn: 100200 | ||||
| * | Reapply patch for adding support for address spaces and added a isVolatile ↵ | Mon P Wang | 2010-04-02 | 1 | -1/+1 |
| | | | | | | | field to memcpy, memmove, and memset. llvm-svn: 100193 | ||||
| * | Revert Mon Ping's 99930 due to broken llvm-gcc buildbots. | Bob Wilson | 2010-03-30 | 1 | -1/+1 |
| | | | | | llvm-svn: 99949 | ||||
| * | Added support for address spaces and added a isVolatile field to memcpy, ↵ | Mon P Wang | 2010-03-30 | 1 | -1/+1 |
| | | | | | | | memmove, and memset llvm-svn: 99930 | ||||
| * | implement PR5654: add -fassume-sane-operator-new, which is enabled by ↵ | Nuno Lopes | 2009-12-16 | 1 | -1/+1 |
| | | | | | | | | | default, and adds the malloc attribute to the global function new() and to the overloaded new operators. feel free to chage the name to this lengthy argument llvm-svn: 91543 | ||||
| * | Handle ImplicitValueInitExpr in AggExprEmitter. | Anders Carlsson | 2009-12-16 | 1 | -0/+6 |
| | | | | | llvm-svn: 91519 | ||||
| * | Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. | Daniel Dunbar | 2009-12-15 | 1 | -1/+1 |
| | | | | | | | | | | - 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). llvm-svn: 91446 | ||||
| * | Fix the test case failed in buildbot. | Fariborz Jahanian | 2009-11-24 | 1 | -1/+1 |
| | | | | | llvm-svn: 89791 | ||||
| * | Refactor collection of call arguments in common code. | Fariborz Jahanian | 2009-11-24 | 1 | -0/+11 |
| | | | | | | | | Add support for variadic collection functions. More to do here. llvm-svn: 89781 | ||||
| * | Use EmitStoreOfScalar when copying the scalar to the space allocated by 'new'. | Anders Carlsson | 2009-11-22 | 1 | -0/+7 |
| | | | | | llvm-svn: 89613 | ||||
| * | Fix test portability. | Daniel Dunbar | 2009-11-12 | 1 | -1/+2 |
| | | | | | llvm-svn: 86911 | ||||
| * | Emit new[] cookie when needed. | Anders Carlsson | 2009-09-23 | 1 | -0/+8 |
| | | | | | llvm-svn: 82642 | ||||
| * | Basic support for new[]. | Anders Carlsson | 2009-09-23 | 1 | -3/+12 |
| | | | | | llvm-svn: 82628 | ||||
| * | Fix a thinko. | Anders Carlsson | 2009-06-01 | 1 | -0/+4 |
| | | | | | llvm-svn: 72679 | ||||
| * | Check for null correctly for new expressions. | Anders Carlsson | 2009-06-01 | 1 | -0/+5 |
| | | | | | llvm-svn: 72678 | ||||
| * | Improve irgen of 'new' further. | Anders Carlsson | 2009-05-31 | 1 | -1/+23 |
| | | | | | llvm-svn: 72677 | ||||
| * | ...and aggregate POD types. | Anders Carlsson | 2009-05-31 | 1 | -0/+7 |
| | | | | | llvm-svn: 72676 | ||||
| * | Support for complex types. | Anders Carlsson | 2009-05-31 | 1 | -0/+2 |
| | | | | | llvm-svn: 72675 | ||||
| * | Better support for scalar POD types in 'new' expressions. | Anders Carlsson | 2009-05-31 | 1 | -0/+4 |
| | | | | | llvm-svn: 72674 | ||||
| * | Make sure to copy back arguments that can be changed by ↵ | Anders Carlsson | 2009-05-31 | 1 | -0/+7 |
| | | | | | | | FindAllocationOverload. This fixes placement new. (Sebastian, please review). llvm-svn: 72673 | ||||
| * | Very basic irgen support for new expressions. | Anders Carlsson | 2009-05-31 | 1 | -0/+5 |
| llvm-svn: 72672 | |||||

