- Feb 12, 2011
-
-
Jeffrey Yasskin authored
I also sorted the tools/driver dependencies since their order no longer matters. llvm-svn: 125417
-
-
- Feb 11, 2011
-
-
Zhanyong Wan authored
Reviewed by dgregor. llvm-svn: 125407
-
Peter Collingbourne authored
llvm-svn: 125399
-
Ted Kremenek authored
llvm-svn: 125396
-
Ted Kremenek authored
llvm-svn: 125395
-
Douglas Gregor authored
Rename the operation that loads a preprocessed entity from a given offset to indicate that we're loading from an offset, not an index, lest one be confused. No functionality change. llvm-svn: 125394
-
Fariborz Jahanian authored
is unqualified but its initialized is qualified. This is for c only and fixes the imm. problem. c++ is more involved and is wip. // rdar://8979379 llvm-svn: 125386
-
Zhanyong Wan authored
This patch contains: - making some of the existing comments more accurate in the presence of virtual files/directories. - renaming some private data members of FileManager to match their roles better. - creating 'DirectorEntry's for the parent directories of virtual files, such that we can tell whether two virtual files are from the same directory. This is useful for injecting virtual files whose directories don't exist in the real file system. - minor clean-ups and adding comments for class FileManager::UniqueDirContainer and FileManager::UniqueFileContainer. - adding statistics on virtual files to FileManager::PrintStats(). - adding unit tests to verify the existing and new behavior of FileManager. llvm-svn: 125384
-
Douglas Gregor authored
contents when it's safe. I just *love* C++ some days. llvm-svn: 125378
-
NAKAMURA Takumi authored
llvm-svn: 125364
-
Ted Kremenek authored
llvm-svn: 125362
-
Rafael Espindola authored
llvm-svn: 125360
-
Ken Dyck authored
unnecessary calls to RoundUpToAlignment. No changes to functionality intended. llvm-svn: 125356
-
Ken Dyck authored
CharUnits to sizes in bits, and use it to tidy up the places where the conversion was done explicitly. llvm-svn: 125332
-
Rafael Espindola authored
llvm-svn: 125330
-
Douglas Gregor authored
causing the deserialization of a large number of declarations when writing the visible-updates record for the translation unit in C. This takes us from: *** AST File Statistics: 2 stat cache hits 6 stat cache misses 1/64463 source location entries read (0.001551%) 15606/16956 types read (92.038216%) 59266/89334 declarations read (66.342041%) 38952/61393 identifiers read (63.446976%) 0/7778 selectors read (0.000000%) 24192/34644 statements read (69.830276%) 388/8809 macros read (4.404586%) 2095/5189 lexical declcontexts read (40.373867%) 0/4587 visible declcontexts read (0.000000%) 0/7716 method pool entries read (0.000000%) 0 method pool misses to *** AST File Statistics: 2 stat cache hits 6 stat cache misses 1/64463 source location entries read (0.001551%) 26/16956 types read (0.153338%) 18/89334 declarations read (0.020149%) 145/61393 identifiers read (0.236183%) 0/7778 selectors read (0.000000%) 21/34644 statements read (0.060617%) 0/8809 macros read (0.000000%) 0/5189 lexical declcontexts read (0.000000%) 0/4587 visible declcontexts read (0.000000%) 0/7716 method pool entries read (0.000000%) 0 method pool misses when generating a chained PCH for a header that #includes Cocoa.h (from a PCH file) and adds one simple function declaration. The generated PCH file is now only 9580 bytes (down from > 2MB). llvm-svn: 125326
-
Douglas Gregor authored
we would deserialize all of the macro definitions we knew about while serializing the macro definitions at the end of the AST/PCH file. Even though we skipped most of them (since they were unchanged), it's still a performance problem. Now, we do the standard AST/PCH chaining trick: watch what identifiers are deserialized as macro names, and consider only those identifiers (along with macro definitions that have been deserialized/written in the source) when serializing the preprocessor state. llvm-svn: 125324
-
Rafael Espindola authored
llvm-svn: 125321
-
- 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
-