- May 13, 2010
-
-
Dan Gohman authored
when they move instructions. llvm-svn: 103737
-
Evan Cheng authored
llvm-svn: 103733
-
Howard Hinnant authored
llvm-svn: 103732
-
Evan Cheng authored
llvm-svn: 103731
-
Bob Wilson authored
Do not use those for Thumb1 functions. llvm-svn: 103730
-
Oscar Fuentes authored
Patch by Dimitry Andric! llvm-svn: 103727
-
Dan Gohman authored
use of it in MachineCSE. llvm-svn: 103726
-
Dan Gohman authored
basic block. llvm-svn: 103725
-
Daniel Dunbar authored
llvm-svn: 103724
-
Daniel Dunbar authored
llvm-svn: 103723
-
Howard Hinnant authored
llvm-svn: 103722
-
Jakob Stoklund Olesen authored
The revision history for this function is interesting, with multiple layers of wrongness being introduced one at a time. This fixes a weird issue where bugpoint -run-llc would suddenly exit 13 half way through isolating a miscompilation. llvm-svn: 103721
-
Nick Lewycky authored
llvm-svn: 103720
-
Fariborz Jahanian authored
Completes radar 7963410. llvm-svn: 103719
-
Douglas Gregor authored
"used" (e.g., we will refer to the vtable in the generated code) and when they are defined (i.e., because we've seen the key function definition). Previously, we were effectively tracking "potential definitions" rather than uses, so we were a bit too eager about emitting vtables for classes without key functions. The new scheme: - For every use of a vtable, Sema calls MarkVTableUsed() to indicate the use. For example, this occurs when calling a virtual member function of the class, defining a constructor of that class type, dynamic_cast'ing from that type to a derived class, casting to/through a virtual base class, etc. - For every definition of a vtable, Sema calls MarkVTableUsed() to indicate the definition. This happens at the end of the translation unit for classes whose key function has been defined (so we can delay computation of the key function; see PR6564), and will also occur with explicit template instantiation definitions. - For every vtable defined/used, we mark all of the virtual member functions of that vtable as defined/used, unless we know that the key function is in another translation unit. This instantiates virtual member functions when needed. - At the end of the translation unit, Sema tells CodeGen (via the ASTConsumer) which vtables must be defined (CodeGen will define them) and which may be used (for which CodeGen will define the vtables lazily). From a language perspective, both the old and the new schemes are permissible: we're allowed to instantiate virtual member functions whenever we want per the standard. However, all other C++ compilers were more lazy than we were, and our eagerness was both a performance issue (we instantiated too much) and a portability problem (we broke Boost test cases, which now pass). Notes: (1) There's a ton of churn in the tests, because the order in which vtables get emitted to IR has changed. I've tried to isolate some of the larger tests from these issues. (2) Some diagnostics related to implicitly-instantiated/implicitly-defined virtual member functions have moved to the point of first use/definition. It's better this way. (3) I could use a review of the places where we MarkVTableUsed, to see if I missed any place where the language effectively requires a vtable. Fixes PR7114 and PR6564. llvm-svn: 103718
-
Ted Kremenek authored
Fixes <rdar://problem/7979430>. llvm-svn: 103717
-
Ted Kremenek authored
llvm-svn: 103716
-
Daniel Dunbar authored
llvm-svn: 103715
-
Rafael Espindola authored
llvm-svn: 103714
-
Chandler Carruth authored
llvm-svn: 103713
-
Chandler Carruth authored
references. This is a WIP as we should handle function pointers, etc. Reshuffle the code to do this to facilitate recursing in this manner, and to check for the type already being printed first rather than last. llvm-svn: 103712
-
Daniel Dunbar authored
MC: Move ordinal calculation, to make sure fragments synthesized for layout get assigned ordinals properly. llvm-svn: 103711
-
Daniel Dunbar authored
llvm-svn: 103710
-
Daniel Dunbar authored
llvm-svn: 103709
-
John McCall authored
magic type that 'id' is a pointer to. llvm-svn: 103708
-
Zhongxing Xu authored
llvm-svn: 103707
-
John McCall authored
against pointer patterns. llvm-svn: 103706
-
Chandler Carruth authored
llvm-svn: 103705
-
Chandler Carruth authored
llvm-svn: 103704
-
Chandler Carruth authored
than 127 groups so this was already failing given -fsigned-char. A subsequent to commit to TableGen will generate shorts for the arrays themselves. llvm-svn: 103703
-
Anton Korobeynikov authored
llvm-svn: 103702
-
-
Nick Lewycky authored
llvm-svn: 103700
-
Nick Lewycky authored
llvm-svn: 103699
-
Nick Lewycky authored
vector<>::push_back() in: int foo(vector<int> &a, vector<unsigned> &b) { a.push_back(10); b.push_back(11); } to two calls to the same push_back function, or fold away the two copies of push_back() in: struct T { int; }; struct S { char; }; vector<T*> t; vector<S*> s; void f(T *x) { t.push_back(x); } void g(S *x) { s.push_back(x); } but leave f() and g() separate, since they refer to two different global variables. llvm-svn: 103698
-
Daniel Dunbar authored
llvm-svn: 103697
-
Ted Kremenek authored
llvm-svn: 103696
-
Daniel Dunbar authored
utility functions. llvm-svn: 103695
-
Daniel Dunbar authored
llvm-svn: 103694
-
Daniel Dunbar authored
of manually doing padding/editing layout in LayoutSection(). - This probably seems like six-of-one and half-dozen of another, but there is a method to my madness. llvm-svn: 103693
-