clang-1/lib
Douglas Gregor f540305c5d Introduce new AST statistics that keep track of the number of isa (or
dyn_cast) invocations for C++ and Objective-C types, declarations,
expressions, and statements. The statistics will be printed when
-print-stats is provided to Clang -cc1, with results such as:

277073 clang - Number of checks for C++ declaration nodes
 13311 clang - Number of checks for C++ expression nodes
    18 clang - Number of checks for C++ statement nodes
174182 clang - Number of checks for C++ type nodes
 92300 clang - Number of checks for Objective-C declaration nodes
  9800 clang - Number of checks for Objective-C expression nodes
     7 clang - Number of checks for Objective-C statement nodes
 65733 clang - Number of checks for Objective-C type nodes

The statistics are only gathered when NDEBUG is not defined, since
they introduce potentially-expensive operations into very low-level
routines (isa).




git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99912 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-30 18:56:13 +00:00
..
AST Introduce new AST statistics that keep track of the number of isa (or 2010-03-30 18:56:13 +00:00
Analysis Be a bit more consistent in using operator-> 2010-03-29 03:39:46 +00:00
Basic Optimize PartialDiagnostic's memory-allocation behavior by placing a 2010-03-29 23:34:08 +00:00
Checker Change the analyzer to recognize (but ignore) assignments to isa. Fixes PR 6302. 2010-03-30 18:24:54 +00:00
CodeGen Don't produce a vtable if we are just instantiating a method and the 2010-03-30 18:07:27 +00:00
Driver add support for -MQ flag to quote targets in dependency file, 2010-03-29 17:55:58 +00:00
Frontend Teach Clang's -cc1 option -print-stats to print LLVM statistics. 2010-03-30 17:33:59 +00:00
Headers Fix 80 col violations. 2010-03-26 20:17:17 +00:00
Index Allow users to set CPPFLAGS and CXXFLAGS on the make command line. 2010-03-12 22:55:16 +00:00
Lex fix a case where macro expansion should be disabled, patch by 2010-03-26 17:49:16 +00:00
Parse Support __attribute__((packed)) (along with other attributes) at the 2010-03-29 14:42:08 +00:00
Rewrite Let SourceManager::getBufferData return StringRef instead of a pair of two const char*. 2010-03-16 14:14:31 +00:00
Runtime Runtime: Install the new libcc_kext.a produced by the clang_darwin compiler-rt 2010-03-26 19:37:38 +00:00
Sema Add Support for 'warn_unused_result" attribute on 2010-03-30 18:22:15 +00:00
CMakeLists.txt Split libAnalysis into two libraries: libAnalysis and libChecker. 2010-01-25 04:41:41 +00:00
Makefile Split libAnalysis into two libraries: libAnalysis and libChecker. 2010-01-25 04:41:41 +00:00