summaryrefslogtreecommitdiffstats
path: root/clang/Driver/CacheTokens.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Enhance PTH preprocessor-condition-block side table to track ↵Ted Kremenek2008-12-121-16/+29
| | | | | | #elseinformation as well. llvm-svn: 60955
* PTH:Ted Kremenek2008-12-111-6/+55
| | | | | | | - Added a side-table per each token-cached file with the preprocessor conditional stack. This tracks what #if's are matched with what #endifs and where their respective tokens are in the PTH file. This will allow for quick skipping of excluded conditional branches in the Preprocessor. - Performance testing shows the addition of this information (without actually utilizing it) leads to no performance regressions. llvm-svn: 60911
* Remove unneeded assertion. We already know that FE->getName() is an ↵Ted Kremenek2008-12-041-5/+4
| | | | | | absolute path. llvm-svn: 60558
* PTH:Ted Kremenek2008-12-031-1/+4
| | | | | | Use an array instead of a DenseMap to cache persistent IDs -> IdentifierInfo*. This leads to a 4% speedup at -fsyntax-only using PTH. llvm-svn: 60452
* PTH emission:Ted Kremenek2008-12-021-66/+61
| | | | | | | | | - Output 32 bit integers using bit-shifting + write of individual bytes. This is motivated because we aren't guaranteed to load 32-bit ints of the mmaped PTH file at 4-byte offsets. - Don't emit flags for IdentifierInfos. These are lazily populated by the Preprocessor/Parser. - Only write out tokens for files with absolute paths. This is potentially temporary, but simplifies things for now. llvm-svn: 60435
* - Enhance PTH generation to write out IdentifierInfo table in two parts:Ted Kremenek2008-11-261-19/+59
| | | | | | | | - a table including the IdentifierInfo data - an index from persistent IdentifierInfo IDs to indices within this file. - Enhance PTH generation to write out file map information, mapping inodes to tokens. llvm-svn: 60132
* Re-apply r60071 now that raw_fd_ostream::tell has been committed.Ted Kremenek2008-11-261-44/+91
| | | | llvm-svn: 60086
* Revert 60071, depends on uncommitted LLVM changes.Daniel Dunbar2008-11-261-91/+44
| | | | llvm-svn: 60077
* Migrate token-cache generation logic from dummy harness in PPLexerChange.cpp ↵Ted Kremenek2008-11-261-44/+91
| | | | | | to CacheTokens.cpp. llvm-svn: 60071
* [LLVM up] Update for raw_fd_ostream change. This fixes a FIXME thatDaniel Dunbar2008-11-131-1/+1
| | | | | | | | the Backend output should be done in binary mode. - I'd appreciate it if someone who has a Windows build could verify this. llvm-svn: 59221
* Added the start of a prototype implementation of PCH based on token caching.Ted Kremenek2008-10-211-0/+177
llvm-svn: 57863
OpenPOWER on IntegriCloud