- Feb 10, 2011
-
-
Matt Beaumont-Gay authored
llvm-svn: 125309
-
Daniel Dunbar authored
llvm-svn: 125299
-
Daniel Dunbar authored
llvm-svn: 125298
-
Douglas Gregor authored
macro definitions by macro name first. That way, we'll get a stable ordering in the AST/PCH file. llvm-svn: 125297
-
Argyrios Kyrtzidis authored
For -Woverloaded-virtual take into account canonical methods. Fixes rdar://8979966 & http://llvm.org/PR9182. llvm-svn: 125296
-
Daniel Dunbar authored
llvm-svn: 125293
-
Daniel Dunbar authored
llvm-svn: 125289
-
Douglas Gregor authored
AST/PCH files more lazy: - Don't preload all of the file source-location entries when reading the AST file. Instead, load them lazily, when needed. - Only look up header-search information (whether a header was already #import'd, how many times it's been included, etc.) when it's needed by the preprocessor, rather than pre-populating it. Previously, we would pre-load all of the file source-location entries, which also populated the header-search information structure. This was a relatively minor performance issue, since we would end up stat()'ing all of the headers stored within a AST/PCH file when the AST/PCH file was loaded. In the normal PCH use case, the stat()s were cached, so the cost--of preloading ~860 source-location entries in the Cocoa.h case---was relatively low. However, the recent optimization that replaced stat+open with open+fstat turned this into a major problem, since the preloading of source-location entries would now end up opening those files. Worse, those files wouldn't be closed until the file manager was destroyed, so just opening a Cocoa.h PCH file would hold on to ~860 file descriptors, and it was easy to blow through the process's limit on the number of open file descriptors. By eliminating the preloading of these files, we neither open nor stat the headers stored in the PCH/AST file until they're actually needed for something. Concretely, we went from *** HeaderSearch Stats: 835 files tracked. 364 #import/#pragma once files. 823 included exactly once. 6 max times a file is included. 3 #include/#include_next/#import. 0 #includes skipped due to the multi-include optimization. 1 framework lookups. 0 subframework lookups. *** Source Manager Stats: 835 files mapped, 3 mem buffers mapped. 37460 SLocEntry's allocated, 11215575B of Sloc address space used. 62 bytes of files mapped, 0 files with line #'s computed. with a trivial program that uses a chained PCH including a Cocoa PCH to *** HeaderSearch Stats: 4 files tracked. 1 #import/#pragma once files. 3 included exactly once. 2 max times a file is included. 3 #include/#include_next/#import. 0 #includes skipped due to the multi-include optimization. 1 framework lookups. 0 subframework lookups. *** Source Manager Stats: 3 files mapped, 3 mem buffers mapped. 37460 SLocEntry's allocated, 11215575B of Sloc address space used. 62 bytes of files mapped, 0 files with line #'s computed. for the same program. llvm-svn: 125286
-
Roman Divacky authored
is specified in the FreeBSD linker driver. llvm-svn: 125285
-
Roman Divacky authored
llvm-svn: 125282
-
Ken Dyck authored
character units. llvm-svn: 125281
-
Ken Dyck authored
r125156. llvm-svn: 125280
-
NAKAMURA Takumi authored
llvm-svn: 125275
-
John McCall authored
linkage into Decl.cpp. Disable this logic for extern "C" functions, because the operative rule there is weaker. Fixes rdar://problem/8898466 llvm-svn: 125268
-
Ted Kremenek authored
llvm-svn: 125262
-
Ted Kremenek authored
This reduces memory usage of the analyzer on sqlite by another 5%. llvm-svn: 125260
-
Ted Kremenek authored
Split 'include/clang/StaticAnalyzer' into 'include/clang/StaticAnalyzer/Core' and 'include/clang/StaticAnalyzer/Checkers'. This layout matches lib/StaticAnalyzer, which corresponds to two StaticAnalyzer libraries. llvm-svn: 125251
-
Devang Patel authored
llvm-svn: 125249
-
- Feb 09, 2011
-
-
Fariborz Jahanian authored
warning when same parameter name used multiple times. // rdar://8877730 llvm-svn: 125229
-
Peter Collingbourne authored
llvm-svn: 125219
-
Peter Collingbourne authored
llvm-svn: 125218
-
Peter Collingbourne authored
llvm-svn: 125217
-
Peter Collingbourne authored
llvm-svn: 125216
-
Devang Patel authored
llvm-svn: 125210
-
Douglas Gregor authored
since the diagnostic client might poke at source locations that have not yet been deserialized. llvm-svn: 125204
-
Daniel Dunbar authored
llvm-svn: 125201
-
Nick Lewycky authored
llvm-svn: 125185
-
John McCall authored
complaining. llvm-svn: 125184
-
John McCall authored
there were only three virtual methods of any significance. The primary way to grab child iterators now is with Stmt::child_range children(); Stmt::const_child_range children() const; where a child_range is just a std::pair of iterators suitable for being llvm::tie'd to some locals. I've left the old child_begin() and child_end() accessors in place, but it's probably a substantial penalty to grab the iterators individually now, since the switch-based dispatch is kindof inherently slower than vtable dispatch. Grabbing them together is probably a slight win over the status quo, although of course we could've achieved that with vtables, too. I also reclassified SwitchCase (correctly) as an abstract Stmt class, which (as the first such class that wasn't an Expr subclass) required some fiddling in a few places. There are somewhat gross metaprogramming hooks in place to ensure that new statements/expressions continue to implement getSourceRange() and children(). I had to work around a recent clang bug; dgregor actually fixed it already, but I didn't want to introduce a selfhosting dependency on ToT. llvm-svn: 125183
-
Devang Patel authored
llvm-svn: 125163
-
Douglas Gregor authored
and we later find the definition, make sure that we add the definition (not the declaration) to the list of deferred definitions to emit. Fixes PR8864. Thanks to Nick Lewycky for testing this patch out llvm-svn: 125157
-
Ken Dyck authored
functionality intended. llvm-svn: 125156
-
Ted Kremenek authored
static analyzer: Further reduce the analyzer's memory usage when analyzing sqlite3 by 7-10% by recylcing "uninteresting" ExplodedNodes. The optimization involves eagerly pruning ExplodedNodes from the ExplodedGraph that contain practically no difference between the predecessor and successor nodes. For example, if the state is different between a predecessor and a node, the node is left in. Only for the 'environment' component of the state do we not care if the ExplodedNodes are different. This paves the way for future optimizations where we can reclaim the environment objects. llvm-svn: 125154
-
John McCall authored
Also, reorganize and make very explicit the logic for determining the value kind and type of a referenced declaration. llvm-svn: 125150
-
Devang Patel authored
destructor or copy constructor than let debug info know about it. Radar 8945514. llvm-svn: 125142
-
- Feb 08, 2011
-
-
Ted Kremenek authored
analyzer, retain/release checker: Remove hack where objects passed in message to 'self' are no longer tracked. llvm-svn: 125130
-
Rafael Espindola authored
llvm-svn: 125129
-
John McCall authored
linkage rather than the presence of the 'static' storage class specifier. Fixes rdar://problem/8814626. llvm-svn: 125126
-
Fariborz Jahanian authored
setter and getter types mismatch. // rdar://8966864 llvm-svn: 125125
-
Argyrios Kyrtzidis authored
Eventually there will also be a lib/StaticAnalyzer/Frontend that will handle initialization and checker registration. Yet another library to avoid cyclic dependencies between Core and Checkers. llvm-svn: 125124
-