- Feb 27, 2013
-
-
Rafael Espindola authored
llvm-svn: 176157
-
Meador Inge authored
PR15262 reported a bug where the following instruction: i8 getelementptr inbounds i8* bitcast ([4 x i8] addrspace(12)* @buf to i8*), i32 2 was getting folded into: addrspace(12)* getelementptr inbounds ([4 x i8] addrspace(12)* @buf, i32 0, i32 2) This caused instcombine to crash because the original instruction and the folded instruction have different types. The issue was fixed by disallowing bitcasts between different address spaces to be folded away. llvm-svn: 176156 -
Rafael Espindola authored
Everything that cares about visibility also cares about linkage, so I just moved it to Visibility.h instead of creating a new .h. llvm-svn: 176155
-
Manman Ren authored
CurrentCallSite to avoid an assertion failure: assert(MMI.getCurrentCallSite() == 0 && "Overlapping call sites!"); rdar://problem/13228754 llvm-svn: 176154
-
Richard Trieu authored
llvm-svn: 176153
-
Argyrios Kyrtzidis authored
llvm-svn: 176152
-
Adrian Prantl authored
This reverts commit ea95e4587fd13606fbf63b10a07a7d02026aa39c. llvm-svn: 176151
-
Michael J. Spencer authored
This adds separate PLT and dynamic relocation tables. It also fills in the dynamic table entries for them. llvm-svn: 176150
-
Ted Kremenek authored
This potentially reduces a performance optimization of throwing away PreStmtPurgeDeadSymbols nodes. I'll investigate the performance impact soon and see if we need something better. llvm-svn: 176149
-
Argyrios Kyrtzidis authored
[PCH] When deserializing an IdentifierInfo, call IdentifierInfo::RevertTokenIDToIdentifier() only when it's not already an identifier. Fixes an assertion hit. rdar://13288735 llvm-svn: 176148
-
Fariborz Jahanian authored
think of them as having return values that may be computed. Don't warn when using @return in their comment. // rdar://13189938 llvm-svn: 176147
-
John McCall authored
access to a private member to which we have special access. rdar://12926092 llvm-svn: 176146
-
Bill Wendling authored
llvm-svn: 176145
-
Jordan Rose authored
This is essentially the same problem as r174031: a lazy binding for the first field of a struct may stomp on an existing default binding for the entire struct. Because of the way RegionStore is set up, we can't help but lose the top-level binding, but then we need to make sure that accessing one of the other fields doesn't come back as Undefined. In this case, RegionStore is now correctly detecting that the lazy binding we have isn't the right type, but then failing to follow through on the implications of that: we don't know anything about the other fields in the aggregate. This fix adds a test when searching for other kinds of default values to see if there's a lazy binding we rejected, and if so returns a symbolic value instead of Undefined. The long-term fix for this is probably a new Store model; see <rdar://problem/12701038>. Fixes <rdar://problem/13292559>. llvm-svn: 176144
-
Manman Ren authored
definition DIE, to make old GDB happy. We have a regression for old GDB when Clang uses DW_TAG_member to declare static members inside a class, instead of DW_TAG_variable. This patch will fix this regression. rdar://problem/13291234 llvm-svn: 176143
-
Ted Kremenek authored
isBeforeInTranslationUnit() uses a cache to reduce the expensive work to compute a common ancestor for two FileIDs. This work is very expensive, so even caching the latest used FileIDs was a big win. A closer analysis of the cache before, however, shows that the cache access pattern would oscillate between a working set of FileIDs, and thus caching more pairs would be profitable. This patch adds a side table for extending caching. This side table is bounded in size (experimentally determined in this case from a simple Objective-C project), and when the table gets too large we fall back to the single entry caching before as before. On Sketch (a small example Objective-C project), this optimization reduces -fsyntax-only time on SKTGraphicView.m by 5%. This is for a project that is already using PCH. Fixes <rdar://problem/13299847> llvm-svn: 176142
-
Jason Molenda authored
from being fetched correctly. <rdar://problem/13290877> llvm-svn: 176141
-
rdar://problem/13287629Greg Clayton authored
Fixed an issue with clang 500's new way to represent static class variables where it emits a DW_TAG_member with a DW_AT_external(0x01) attribute and no DW_AT_data_member_location. llvm-svn: 176140
-
Pedro Artigas authored
enhancement done the trivial way; by extending inputs and truncating outputs which is addequate for targets with little or no support for integer arithmetic on integer types less than 32 bits. llvm-svn: 176139
-
Rafael Espindola authored
llvm-svn: 176138
-
Bill Wendling authored
llvm-svn: 176137
-
Michael Ilseman authored
llvm-svn: 176136
-
Bill Wendling authored
llvm-svn: 176135
-
Eli Bendersky authored
to NULL and use asserts to check in relevant places. llvm-svn: 176134
-
Bill Wendling authored
This is causing some problems with some of the builders. It's non-trivial to reset the target's features. llvm-svn: 176133
-
Jim Ingham authored
llvm-svn: 176132
-
Michael Ilseman authored
Constant fold vector bitcasts of halves similarly to how floats and doubles are folded. Test case included. llvm-svn: 176131
-
Roman Divacky authored
llvm-svn: 176130
-
Manman Ren authored
llvm-svn: 176129
-
Chad Rosier authored
llvm-svn: 176128
-
Fariborz Jahanian authored
doxygen commands. // rdar://12379053 llvm-svn: 176127
-
Daniel Malea authored
llvm-svn: 176126
-
Michael J. Spencer authored
llvm-svn: 176125
-
Bill Schmidt authored
There's no need to generate a stack frame for PPC32 SVR4 when there are no local variables assigned to the stack, i.e., when no red zone is needed. (PPC64 supports a red zone, but PPC32 does not.) llvm-svn: 176124
-
Matt Arsenault authored
llvm-svn: 176123
-
Matt Arsenault authored
llvm-svn: 176122
-
Matt Arsenault authored
This would error in C++ mode unless the variable also had a cv qualifier. e.g. __attribute__((address_space(2))) float foo = 1.0f; would error but __attribute__((address_space(2))) const float foo = 1.0f; would not. llvm-svn: 176121
-
Manman Ren authored
TAG_member inside a class to the specification DIE. Having AT_MIPS_linkage_name on TAG_member caused old gdb (GNU 6.3.50) to error out. Also gcc 4.7 has AT_MIPS_linkage_name on the specification DIE. rdar://problem/13291234 llvm-svn: 176120
-
Chad Rosier authored
llvm-svn: 176119
-
Jim Grosbach authored
For integer constants, allow 'L', 'UL' as well as 'ULL' and 'LL'. This provides better support for shared headers between .s and .c files that define bunches of constant values. rdar://9321056 llvm-svn: 176118
-