Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | change the concatenation avoidance algorithm to be partially table-driven | Chris Lattner | 2007-07-23 | 1 | -41/+130 | |
| | | | | | | | and avoid computing the spelling of tokens when not needed. This speeds up -E on 447.dealII by 2.2% llvm-svn: 40421 | |||||
* | If a token doesn't need cleaning, we can get its first character | Chris Lattner | 2007-07-23 | 1 | -0/+4 | |
| | | | | | | | without having to get the whole token. This speeds up -E on 447.dealII by 1.8% llvm-svn: 40420 | |||||
* | A minor tweak to -E output, speeding up -E 1.5% on 447.dealII | Chris Lattner | 2007-07-23 | 1 | -3/+6 | |
| | | | | llvm-svn: 40419 | |||||
* | no need to avoid pasting >* It can't form ->*, because we know the previous | Chris Lattner | 2007-07-22 | 1 | -3/+2 | |
| | | | | | | token was not -> and if the token before it was -, the - and > would avoid pasting. llvm-svn: 40409 | |||||
* | remove redundant test | Chris Lattner | 2007-07-22 | 1 | -2/+0 | |
| | | | | llvm-svn: 40386 | |||||
* | avoid a small bit of string traffic by not storing the ""'s around a string ↵ | Chris Lattner | 2007-07-22 | 1 | -2/+6 | |
| | | | | | | in CurFilename llvm-svn: 40385 | |||||
* | At one point there were going to be lexer and parser tokens. | Chris Lattner | 2007-07-20 | 1 | -7/+7 | |
| | | | | | | | Since that point is now long gone, we should rename LexerToken to Token, as it is the only kind of token we have. llvm-svn: 40105 | |||||
* | Reimplement SourceLocation. Instead of having a | Chris Lattner | 2007-07-20 | 1 | -4/+5 | |
| | | | | | | | | | | | | | | | | | fileid/offset pair, it now contains a bit discriminating between mapped locations and file locations. This separates the tables for macros and files in SourceManager, and allows better separation of concepts in the rest of the compiler. This allows us to have *many* macro instantiations before running out of 'addressing space'. This is also more efficient, because testing whether something is a macro expansion is now a bit test instead of a table lookup (which also used to require having a srcmgr around, now it doesn't). This is fully functional, but there are several refinements and optimizations left. llvm-svn: 40103 | |||||
* | Finally bite the bullet and make the major change: split the clang namespace | Chris Lattner | 2007-06-15 | 1 | -9/+9 | |
| | | | | | | | | | | | | | out of the llvm namespace. This makes the clang namespace be a sibling of llvm instead of being a child. The good thing about this is that it makes many things unambiguous. The bad things is that many things in the llvm namespace (notably data structures like smallvector) now require an llvm:: qualifier. IMO, libsystem and libsupport should be split out of llvm into their own namespace in the future, which will fix this issue. llvm-svn: 39659 | |||||
* | ProcessInputFile no longer mutates LangInfo. | Chris Lattner | 2006-11-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 39210 | |||||
* | Change KeepComments/KeepMacroComments modes to be facets of the preprocessor | Chris Lattner | 2006-11-21 | 1 | -5/+3 | |
| | | | | | | state, not aspects of the language standard being parsed. llvm-svn: 39209 | |||||
* | first step refactoring driver so that it can process multiple input files | Chris Lattner | 2006-11-21 | 1 | -0/+1 | |
| | | | | | | at once. llvm-svn: 39207 | |||||
* | eliminate global variables now that PPCallbacks can have state | Chris Lattner | 2006-11-21 | 1 | -54/+67 | |
| | | | | llvm-svn: 39205 | |||||
* | Formalize preprocessor callbacks together into a PPCallbacks structure, instead | Chris Lattner | 2006-11-21 | 1 | -15/+26 | |
| | | | | | | | of having a loose collection of function pointers. This also allows clients to maintain state, and reduces the size of the Preprocessor.h interface. llvm-svn: 39203 | |||||
* | Remove GNU C++ min/max operator extension support, they have been removed | Chris Lattner | 2006-10-27 | 1 | -3/+0 | |
| | | | | | | from gcc mainline. llvm-svn: 39067 | |||||
* | Fix regression in my last commit | Chris Lattner | 2006-10-18 | 1 | -1/+3 | |
| | | | | llvm-svn: 39013 | |||||
* | silence warning | Chris Lattner | 2006-10-18 | 1 | -3/+1 | |
| | | | | llvm-svn: 39009 | |||||
* | Trigraphs are not enabled in -fpreprocessed mode. | Chris Lattner | 2006-07-29 | 1 | -3/+1 | |
| | | | | llvm-svn: 38796 | |||||
* | Fix -E mode to enter the main file *after* -E mode configures the preprocessor. | Chris Lattner | 2006-07-29 | 1 | -1/+8 | |
| | | | | llvm-svn: 38784 | |||||
* | Implement comment saving mode: the -C and -CC options. | Chris Lattner | 2006-07-29 | 1 | -1/+11 | |
| | | | | llvm-svn: 38783 | |||||
* | Implement paste avoidance, implementing Preprocessor/output_paste_avoid.c | Chris Lattner | 2006-07-28 | 1 | -2/+94 | |
| | | | | llvm-svn: 38767 | |||||
* | Change Lexer::Stringify to not add ""'s around the string. | Chris Lattner | 2006-07-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 38708 | |||||
* | Cleanup some obsolete comments. | Chris Lattner | 2006-07-04 | 1 | -5/+1 | |
| | | | | llvm-svn: 38673 | |||||
* | Change the Preprocessor::getSpelling interface to let it be zero-copy in | Chris Lattner | 2006-07-04 | 1 | -3/+3 | |
| | | | | | | the common case. llvm-svn: 38671 | |||||
* | Switch to using unix "write" when available, instead of stdio. This speeds up | Chris Lattner | 2006-07-04 | 1 | -29/+124 | |
| | | | | | | -E -P mode by 10% (i.e. takes away almost all i/o time). llvm-svn: 38669 | |||||
* | improve comments | Chris Lattner | 2006-07-04 | 1 | -0/+8 | |
| | | | | llvm-svn: 38668 | |||||
* | fix compile error | Chris Lattner | 2006-07-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 38667 | |||||
* | Minor code cleanup | Chris Lattner | 2006-07-04 | 1 | -6/+2 | |
| | | | | llvm-svn: 38666 | |||||
* | Make -P mode faster and closer to GCC output by not emitting newlines at all. | Chris Lattner | 2006-07-04 | 1 | -22/+18 | |
| | | | | | | This allows the SourceManager to not compute line number information for each buffer. llvm-svn: 38665 | |||||
* | Match GCC behavior better in -P mode. | Chris Lattner | 2006-07-04 | 1 | -1/+7 | |
| | | | | llvm-svn: 38663 | |||||
* | Switch from using iostreams to using stdio for -E mode output. This speeds | Chris Lattner | 2006-07-04 | 1 | -26/+31 | |
| | | | | | | up clang -E iostream by 30%. llvm-svn: 38660 | |||||
* | minor cleanup | Chris Lattner | 2006-07-04 | 1 | -1/+2 | |
| | | | | llvm-svn: 38659 | |||||
* | Split the -E mode printer out to a separate .cpp file. | Chris Lattner | 2006-07-04 | 1 | -0/+206 | |
llvm-svn: 38658 |