summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/new.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix a CodeGen bug where we would skip zero-initialization forEli Friedman2012-08-251-0/+10
| | | | | | array new with a non-trivial constructor. Pointed out in PR13380. llvm-svn: 162643
* Elide copy construction in new expressions. PR11757.Eli Friedman2012-02-161-0/+11
| | | | llvm-svn: 150738
* Make array new on a pointer to data member type work correctly. PR11523.Eli Friedman2011-12-091-0/+8
| | | | llvm-svn: 146291
* Convert the standard default-construction loops to use phis andJohn McCall2011-07-131-7/+16
| | | | | | partial destruction. llvm-svn: 135033
* When instantiating a C++ "new" expression, don't fake source locationsDouglas Gregor2011-06-271-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 deleteJohn McCall2011-05-161-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, fixingDouglas Gregor2010-09-021-0/+4
| | | | | | two regressions in Boost.Config. llvm-svn: 112908
* Abstract IR generation of array cookies into the C++ ABI class andJohn McCall2010-09-021-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 Kyrtzidis2010-08-261-1/+4
| | | | | | multiple dimensions. llvm-svn: 112188
* Fix miscompilation. The custom new[]/delete[] methods were not getting ↵Argyrios Kyrtzidis2010-08-251-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 Gregor2010-08-181-0/+4
| | | | | | when -fassume-sane-operator-new. Patch by Tom Jablin! llvm-svn: 111363
* Implement zero-initialization for array new when there is anDouglas Gregor2010-07-211-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 Lattner2010-07-201-0/+1
| | | | | | doing an overflow check. llvm-svn: 108943
* temporarily disable this to fix the build bot.Chris Lattner2010-07-201-1/+0
| | | | llvm-svn: 108936
* Don't build an aggregate constructor loop when the constructor is trivial.Anders Carlsson2010-05-031-0/+10
| | | | llvm-svn: 102912
* Don't copy or initialize empty classes. Fixes PR7012.Anders Carlsson2010-05-031-1/+1
| | | | llvm-svn: 102891
* Reapply patch for adding support for address spaces and added a isVolatile ↵Mon P Wang2010-04-041-1/+1
| | | | | | field to memcpy, memmove, and memset. llvm-svn: 100305
* Revert r100193 since it causes failures in objc in clangMon P Wang2010-04-021-1/+1
| | | | llvm-svn: 100200
* Reapply patch for adding support for address spaces and added a isVolatile ↵Mon P Wang2010-04-021-1/+1
| | | | | | field to memcpy, memmove, and memset. llvm-svn: 100193
* Revert Mon Ping's 99930 due to broken llvm-gcc buildbots.Bob Wilson2010-03-301-1/+1
| | | | llvm-svn: 99949
* Added support for address spaces and added a isVolatile field to memcpy, ↵Mon P Wang2010-03-301-1/+1
| | | | | | memmove, and memset llvm-svn: 99930
* implement PR5654: add -fassume-sane-operator-new, which is enabled by ↵Nuno Lopes2009-12-161-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 Carlsson2009-12-161-0/+6
| | | | llvm-svn: 91519
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-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 Jahanian2009-11-241-1/+1
| | | | llvm-svn: 89791
* Refactor collection of call arguments in common code.Fariborz Jahanian2009-11-241-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 Carlsson2009-11-221-0/+7
| | | | llvm-svn: 89613
* Fix test portability.Daniel Dunbar2009-11-121-1/+2
| | | | llvm-svn: 86911
* Emit new[] cookie when needed.Anders Carlsson2009-09-231-0/+8
| | | | llvm-svn: 82642
* Basic support for new[].Anders Carlsson2009-09-231-3/+12
| | | | llvm-svn: 82628
* Fix a thinko.Anders Carlsson2009-06-011-0/+4
| | | | llvm-svn: 72679
* Check for null correctly for new expressions.Anders Carlsson2009-06-011-0/+5
| | | | llvm-svn: 72678
* Improve irgen of 'new' further.Anders Carlsson2009-05-311-1/+23
| | | | llvm-svn: 72677
* ...and aggregate POD types.Anders Carlsson2009-05-311-0/+7
| | | | llvm-svn: 72676
* Support for complex types.Anders Carlsson2009-05-311-0/+2
| | | | llvm-svn: 72675
* Better support for scalar POD types in 'new' expressions.Anders Carlsson2009-05-311-0/+4
| | | | llvm-svn: 72674
* Make sure to copy back arguments that can be changed by ↵Anders Carlsson2009-05-311-0/+7
| | | | | | FindAllocationOverload. This fixes placement new. (Sebastian, please review). llvm-svn: 72673
* Very basic irgen support for new expressions.Anders Carlsson2009-05-311-0/+5
llvm-svn: 72672
OpenPOWER on IntegriCloud