llvm-project/clang/lib/Lex
Ted Kremenek 47b8cf6deb Enhance PTH 'getSpelling' caching:
- Refactor caching logic into a helper class PTHSpellingSearch
- Allow "random accesses" in the spelling cache, thus catching the remaining
  cases where 'getSpelling' wasn't hitting the PTH cache
  
For -Eonly, PTH, Cocoa.h:
- This reduces wall time by 3% (user time unchanged, sys time reduced)
- This reduces the amount of paged source by 1112K.
  The remaining 1112K still being paged in is from somewhere else
  (investigating).

llvm-svn: 62009
2009-01-09 22:05:30 +00:00
..
CMakeLists.txt CMake: Added some source files. 2008-11-19 18:46:39 +00:00
HeaderMap.cpp Initialize Suffix and Prefix to 0, even with a bad entry. Removes an uninitialized value warning from gcc. 2008-10-28 00:18:42 +00:00
HeaderSearch.cpp Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
Lexer.cpp rdar://6060752 - don't warn about trigraphs in bcpl-style comments 2008-12-12 07:34:39 +00:00
LiteralSupport.cpp Fix a weird inconsistency with hex floats. Previously the lexer 2008-11-22 07:39:03 +00:00
MacroArgs.cpp Optimize stringification a bit to avoid std::string thrashing and 2009-01-05 23:04:18 +00:00
MacroArgs.h Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
MacroInfo.cpp Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
Makefile Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
PPCaching.cpp Remove Preprocessor::CacheTokens boolean data member. The same functionality can be provided by using Preprocessor::isBacktrackEnabled(). 2008-11-19 14:23:14 +00:00
PPDirectives.cpp PTH: 2008-12-23 01:30:52 +00:00
PPExpressions.cpp make the 'to match this' diagnostic a note. 2008-11-23 23:17:07 +00:00
PPLexerChange.cpp Remove old PTH token-generation test harness. 2008-12-23 19:25:33 +00:00
PPMacroExpansion.cpp Preprocessor: Allocate MacroInfo objects using a BumpPtrAllocator instead using new/delete. This speeds up -Eonly on Cocoa.h using the regular lexer by 1.8% and the PTHLexer by 3%. 2008-12-15 19:56:42 +00:00
PTHLexer.cpp Enhance PTH 'getSpelling' caching: 2009-01-09 22:05:30 +00:00
Pragma.cpp Just use the SourceLocation of SysHeaderTok when doing a callback to emit #line 2008-11-20 01:45:11 +00:00
Preprocessor.cpp PTH: 2009-01-08 02:47:16 +00:00
PreprocessorLexer.cpp remove a sneaky version of Diag hiding in PreprocessorLexer. 2008-11-22 06:20:42 +00:00
ScratchBuffer.cpp Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
TokenLexer.cpp Remove the last of the old-style Preprocessor::Diag methods. 2008-11-18 21:48:13 +00:00