- May 14, 2010
-
-
Daniel Dunbar authored
MC: Extend MCAsmLayout to explicitly track which fragments have been layed out, and enforce several invariants to LayoutFragment to ensure we only do layout in a sensible order. llvm-svn: 103753
-
Daniel Dunbar authored
llvm-svn: 103752
-
Daniel Dunbar authored
llvm-svn: 103751
-
Daniel Dunbar authored
Also, elimminate MCAsmLayout::set*, which are no longer needed. llvm-svn: 103750
-
Evan Cheng authored
llvm-svn: 103749
-
Jakob Stoklund Olesen authored
llvm-svn: 103748
-
Jakob Stoklund Olesen authored
This loop is quadratic in the capacity for a DenseMap: while(!map.empty()) map.erase(map.begin()); Instead we now do a normal begin() - end() iteration followed by map.clear(). That also has the nice sideeffect of shrinking the map capacity on demand. llvm-svn: 103747
-
Evan Cheng authored
Adding a v8i64 512-bit vector type. This will be used to model ARM NEON intrinsics which translate into a pair of vld / vst instructions that can load / store 8 consecutive 64-bit (D) registers. llvm-svn: 103746
-
Devang Patel authored
This fixes bunch of failures in gdb testsuite. llvm-svn: 103745
-
Dale Johannesen authored
one was subject to double rounding in extreme cases. llvm-svn: 103744
-
Evan Cheng authored
Eliminate use of magic numbers to access OpActions. It also has the effect of allowing more than 31 scalar value types. MAX_ALLOWED_VALUETYPE had already been updated to 64 a while back. llvm-svn: 103743
-
Evan Cheng authored
Fix up LoadExtActions, TruncStoreActions, and IndexedModeActions representation and setter and getter's so they will continue to work if the number of scalar ValueType's exceeds 31. llvm-svn: 103742
-
- May 13, 2010
-
-
Douglas Gregor authored
methods for which the key function is guaranteed to be in another translation unit. Unfortunately, this guarantee isn't the case when dealing with shared libraries that fail to export these virtual method definitions. I'm reopening PR6747 so we can consider this again at a later point in time. llvm-svn: 103741
-
Jakob Stoklund Olesen authored
llvm-svn: 103739
-
Daniel Dunbar authored
llvm-svn: 103738
-
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
-