- Jul 17, 2012
-
-
Richard Smith authored
* Treat compound assignment as a use, at Jordy's request. * Always add compound assignments into the CFG, so we can correctly diagnose the use in 'return x += 1;' llvm-svn: 160334
-
Richard Smith authored
use out of TransferFunctions, and compute it in advance rather than on-the-fly. This allows us to handle compound assignments with DeclRefExprs on the RHS correctly, and also makes it trivial to treat const& function parameters as not initializing the argument. The patch also makes both of those changes. llvm-svn: 160330
-
Jordan Rose authored
<rdar://problem/11818967> llvm-svn: 160328
-
- Jul 16, 2012
-
-
Jordan Rose authored
This code is very sensitive to the difference between "columns" as printed and "bytes" (SourceManager columns). All variables are now named explicitly and our assumptions are (hopefully) documented as both comment and assertion. Whether parseable fixits should use byte offsets or Unicode character counts is pending discussion on the mailing list; currently the implementation uses bytes (and has no problems on lines containing multibyte characters). This has been added to the user manual. <rdar://problem/11877454> llvm-svn: 160319
-
David Blaikie authored
Found while investigating PR13330 llvm-svn: 160318
-
Ted Kremenek authored
llvm-svn: 160315
-
Ted Kremenek authored
llvm-svn: 160313
-
Ted Kremenek authored
llvm-svn: 160309
-
Simon Atanasyan authored
This function has two versions. The first one is used for a register operand. The second one is used for an immediate number. llvm-svn: 160308
-
David Blaikie authored
Review by Richard Smith. llvm-svn: 160306
-
Fariborz Jahanian authored
<string.h>. // rdar://11847319 llvm-svn: 160287
-
Alexander Kornienko authored
The new clang-ast-dump tool for selective AST dumping. Moved common command-line tool stuff to CommandLineClangTool llvm-svn: 160265
-
Daniel Jasper authored
llvm-svn: 160257
-
Daniel Jasper authored
llvm-svn: 160255
-
Daniel Jasper authored
CXXFunctionalCastExprs. llvm-svn: 160252
-
Richard Smith authored
as an array of its base class TemplateArgument. Switch the const TemplateArgument* parameters of InstantiatingTemplate's constructors to ArrayRef<TemplateArgument> to prevent this from happening again in the future. llvm-svn: 160245
-
Richard Smith authored
being a property of a canonical type to being a property of the fully-sugared type. This should only make a difference in the case where an alias template ignores one of its parameters, and that parameter is an unexpanded parameter pack. llvm-svn: 160244
-
Richard Smith authored
llvm-svn: 160241
-
Richard Smith authored
has a much lower default stack limit than the systems I have access to. llvm-svn: 160240
-
Chandler Carruth authored
llvm-svn: 160238
-
- Jul 15, 2012
-
-
David Chisnall authored
llvm-svn: 160231
-
Rafael Espindola authored
struct __attribute__((visibility("hidden"))) zed { }; struct __attribute__((visibility("hidden"))) zed; Which is a bit silly and got a lot noisier now that we correctly handle visibility pragmas. This patch fixes that and also has some extra quality improvements: * We now produce an error instead of a warning for struct __attribute__((visibility("hidden"))) zed { }; struct __attribute__((visibility("default"))) zed; * The "after definition" warning now points to the new attribute that is ignored instead of pointing to the declaration. llvm-svn: 160227
-
Rafael Espindola authored
llvm-svn: 160226
-
Eric Christopher authored
Finishes rdar://11875995 llvm-svn: 160225
-
Eric Christopher authored
that we just copied from here and replace all uses. Part of rdar://11875995 llvm-svn: 160224
-
- Jul 14, 2012
-
-
Eric Christopher authored
llvm-svn: 160220
-
Ted Kremenek authored
instead push the terminator for the branch down into the basic blocks of the subexpressions of '&&' and '||' respectively. This eliminates some artifical control-flow from the CFG and results in a more compact CFG. Note that this patch only alters the branches 'while', 'if' and 'for'. This was complex enough for one patch. The remaining branches (e.g., do...while) can be handled in a separate patch, but they weren't immediately tackled because they were less important. It is possible that this patch introduces some subtle bugs, particularly w.r.t. to destructor placement. I've tried to audit these changes, but it is also known that the destructor logic needs some refinement in the area of '||' and '&&' regardless (i.e., their are known bugs). llvm-svn: 160218
-
Ted Kremenek authored
llvm-svn: 160217
-
Ted Kremenek authored
llvm-svn: 160216
-
Ted Kremenek authored
llvm-svn: 160215
-
Chad Rosier authored
AVX). Currently, if no aligned attribute is specified the alignment of a vector is inferred from its size. Thus, very large vectors will be over-aligned with no benefit. Target owners should set this target max. llvm-svn: 160209
-
Richard Smith authored
uninitialized variable use, walk back over branches where we've reached all the non-null successors, not just cases where we've reached all successors. llvm-svn: 160206
-
Rafael Espindola authored
llvm-svn: 160202
-
Joel Jones authored
intrinsics with target-indepdent intrinsics. The first instruction(s) to be handled are the vector versions of count leading zeros (ctlz). The changes here are to clang so that it generates a target independent vector ctlz when it sees an ARM dependent vector ctlz. The changes in llvm are to match the target independent vector ctlz and in VMCore/AutoUpgrade.cpp to update any existing bc files containing ARM dependent vector ctlzs with target-independent ctlzs. There are also changes to an existing test case in llvm for ARM vector count instructions and a new test for the bitcode upgrade. <rdar://problem/11831778> There is deliberately no test for the change to clang, as so far as I know, no consensus has been reached regarding how to test neon instructions in clang; q.v. <rdar://problem/8762292> llvm-svn: 160201
-
- Jul 13, 2012
-
-
Richard Trieu authored
multiple %diff's, only print the first tree and fallback to inline printing for the rest of the diagnostic. llvm-svn: 160193
-
Nuno Lopes authored
This fixes a bug in __builtin_object_size() codegen llvm-svn: 160191
-
Dmitri Gribenko authored
Comment AST nodes: rename getXXXCount() methods to getNumXXXs() to be in line with Statement AST nodes. llvm-svn: 160182
-
Rafael Espindola authored
we might use the declaration to build a type before seeing the definition. llvm-svn: 160176
-
Rafael Espindola authored
behavior since gcc pr30066. Thanks to Benjamin Kramer for pointing it out. llvm-svn: 160174
-
Benjamin Kramer authored
llvm-svn: 160172
-