- May 03, 2010
-
-
Dan Gohman authored
llvm-svn: 102906
-
Anders Carlsson authored
llvm-svn: 102905
-
Benjamin Kramer authored
llvm-svn: 102902
-
Anders Carlsson authored
llvm-svn: 102896
-
Anders Carlsson authored
llvm-svn: 102891
-
Anders Carlsson authored
llvm-svn: 102890
-
Anders Carlsson authored
llvm-svn: 102889
-
Anders Carlsson authored
llvm-svn: 102888
-
Anders Carlsson authored
llvm-svn: 102887
-
Anders Carlsson authored
llvm-svn: 102886
-
Anders Carlsson authored
llvm-svn: 102885
-
Anders Carlsson authored
llvm-svn: 102884
-
Anders Carlsson authored
llvm-svn: 102883
-
Anders Carlsson authored
llvm-svn: 102882
-
Anders Carlsson authored
llvm-svn: 102881
-
Anders Carlsson authored
llvm-svn: 102880
-
Anders Carlsson authored
Add an enum to CXXConstructExpr so we can determine if the construction expression constructs a non-virtual or virtual base. llvm-svn: 102879
-
- May 02, 2010
-
-
Anders Carlsson authored
llvm-svn: 102871
-
Anders Carlsson authored
llvm-svn: 102870
-
Duncan Sands authored
Remove the -enable-eh option which is only used by the JIT, and replace it with -jit-enable-eh. llvm-svn: 102865
-
Benjamin Kramer authored
llvm-svn: 102863
-
David Chisnall authored
llvm-svn: 102862
-
- May 01, 2010
-
-
Douglas Gregor authored
assignment operators. Previously, Sema provided type-checking and template instantiation for copy assignment operators, then CodeGen would synthesize the actual body of the copy constructor. Unfortunately, the two were not in sync, and CodeGen might pick a copy-assignment operator that is different from what Sema chose, leading to strange failures, e.g., link-time failures when CodeGen called a copy-assignment operator that was not instantiation, run-time failures when copy-assignment operators were overloaded for const/non-const references and the wrong one was picked, and run-time failures when by-value copy-assignment operators did not have their arguments properly copy-initialized. This implementation synthesizes the implicitly-defined copy assignment operator bodies in Sema, so that the resulting ASTs encode exactly what CodeGen needs to do; there is no longer any special code in CodeGen to synthesize copy-assignment operators. The synthesis of the body is relatively simple, and we generate one of three different kinds of copy statements for each base or member: - For a class subobject, call the appropriate copy-assignment operator, after overload resolution has determined what that is. - For an array of scalar types or an array of class types that have trivial copy assignment operators, construct a call to __builtin_memcpy. - For an array of class types with non-trivial copy assignment operators, synthesize a (possibly nested!) for loop whose inner statement calls the copy constructor. - For a scalar type, use built-in assignment. This patch fixes at least a few tests cases in Boost.Spirit that were failing because CodeGen picked the wrong copy-assignment operator (leading to link-time failures), and I suspect a number of undiagnosed problems will also go away with this change. Some of the diagnostics we had previously have gotten worse with this change, since we're going through generic code for our type-checking. I will improve this in a subsequent patch. llvm-svn: 102853
-
Chris Lattner authored
llvm-svn: 102852
-
Chris Lattner authored
llvm-svn: 102851
-
Chris Lattner authored
other places, killing a valid transformation is not the right answer. llvm-svn: 102850
-
Anders Carlsson authored
llvm-svn: 102849
-
Anders Carlsson authored
llvm-svn: 102848
-
Douglas Gregor authored
llvm-svn: 102847
-
Anders Carlsson authored
llvm-svn: 102846
-
Anders Carlsson authored
llvm-svn: 102845
-
Dale Johannesen authored
preventing the emission of the NOP on Darwin for a function with no actual code. From timberwolfmc with TEST=optllcdbg. llvm-svn: 102843
-
Anders Carlsson authored
llvm-svn: 102842
-
David Chisnall authored
Added a variant of InlineCostAnalyzer::getInlineCost() that takes the called function as an explicit argument, for use when inlining function pointers. llvm-svn: 102841
-
Douglas Gregor authored
information required to implicitly define a C++ special member function. Use it rather than explicitly setting CurContext on entry and exit, which is fragile. Use this RAII object for the implicitly-defined default constructor, copy constructor, copy assignment operator, and destructor. llvm-svn: 102840
-
David Chisnall authored
llvm-svn: 102839
-
Anton Korobeynikov authored
when needed. This fixes PR7001 llvm-svn: 102838
-
David Chisnall authored
llvm-svn: 102837
-
Anton Korobeynikov authored
llvm-svn: 102836
-
Anton Korobeynikov authored
llvm-svn: 102835
-