Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove bounded StringRef::compare() since nothing but Clang SA was using it ↵ | Lenny Maiorani | 2011-04-28 | 1 | -21/+0 |
| | | | | | | and it is just as easy to use StringRef::substr() preceding StringRef::compare() to achieve the same thing. llvm-svn: 130430 | ||||
* | Implements StringRef::compare with bounds. It is behaves similarly to ↵ | Lenny Maiorani | 2011-04-15 | 1 | -0/+21 |
| | | | | | | strncmp(). Unit tests also included. llvm-svn: 129582 | ||||
* | Fix a ton of comment typos found by codespell. Patch by | Chris Lattner | 2011-04-15 | 1 | -2/+2 |
| | | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558 | ||||
* | PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and | Jay Foad | 2010-12-07 | 1 | -1/+1 |
| | | | | | | | | zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method trunc(), to be const and to return a new value instead of modifying the object in place. llvm-svn: 121120 | ||||
* | Support/ADT/StringRef: Add find_last_of. | Michael J. Spencer | 2010-11-30 | 1 | -0/+15 |
| | | | | llvm-svn: 120495 | ||||
* | Fix Whitespace. | Michael J. Spencer | 2010-11-26 | 1 | -20/+20 |
| | | | | llvm-svn: 120166 | ||||
* | Fix memory leak in StringRef::edit_distance(). 'Allocated' could be leaked ↵ | Ted Kremenek | 2010-11-07 | 1 | -5/+6 |
| | | | | | | on an early return. llvm-svn: 118370 | ||||
* | Extend StringRef's edit-distance algorithm to permit an upper bound on the ↵ | Douglas Gregor | 2010-10-19 | 1 | -1/+8 |
| | | | | | | allowed edit distance llvm-svn: 116867 | ||||
* | StringRef::compare_numeric also differed from StringRef::compare for ↵ | Benjamin Kramer | 2010-08-26 | 1 | -1/+1 |
| | | | | | | characters > 127. llvm-svn: 112189 | ||||
* | Do unsigned char comparisons in StringRef::compare_lower to be more ↵ | Benjamin Kramer | 2010-08-26 | 1 | -4/+4 |
| | | | | | | consistent with compare in corner cases. llvm-svn: 112185 | ||||
* | Avoid O(n*m) complexity in StringRef::find_first(_not)_of(StringRef). | Benjamin Kramer | 2010-08-23 | 1 | -4/+13 |
| | | | | | | | | - Cache used characters in a bitset to reduce memory overhead to just 32 bytes. - On my core2 this code is faster except when the checked string was very short (smaller than the list of delimiters). llvm-svn: 111817 | ||||
* | Add StringRef::compare_numeric and use it to sort TableGen register records. | Jakob Stoklund Olesen | 2010-05-26 | 1 | -0/+28 |
| | | | | | | | This means that our Registers are now ordered R7, R8, R9, R10, R12, ... Not R1, R10, R11, R12, R2, R3, ... llvm-svn: 104745 | ||||
* | Add an override to StringRef::getAsInteger which parses into an APInt. | John McCall | 2010-02-28 | 1 | -12/+93 |
| | | | | | | | | | | It gets its own implementation totally divorced from the (presumably performance-sensitive) routines which parse into a uint64_t. Add APInt::operator|=(uint64_t), which is situationally much better than using a full APInt. llvm-svn: 97381 | ||||
* | More trivial optimizations to a function well outside the critical path | Douglas Gregor | 2010-01-07 | 1 | -15/+8 |
| | | | | llvm-svn: 92896 | ||||
* | Switch StringRef::edit_distance over to using raw pointers, since both | Douglas Gregor | 2010-01-07 | 1 | -7/+25 |
| | | | | | | | std::vector and llvm::SmallVector have annoying performance tradeoffs. No, I don't expect this to matter, and now it won't. llvm-svn: 92884 | ||||
* | Document the edit-distance algorithm used in StringRef, switch it over | Douglas Gregor | 2009-12-31 | 1 | -5/+14 |
| | | | | | | to SmallVector, and add a unit test. llvm-svn: 92340 | ||||
* | Implement edit distance for StringRef | Douglas Gregor | 2009-12-30 | 1 | -0/+31 |
| | | | | llvm-svn: 92309 | ||||
* | Use StringRef::min instead of std::min. | Daniel Dunbar | 2009-11-19 | 1 | -5/+5 |
| | | | | llvm-svn: 89372 | ||||
* | Add compare_lower and equals_lower methods to StringRef. Switch all users of | Benjamin Kramer | 2009-11-12 | 1 | -0/+20 |
| | | | | | | StringsEqualNoCase (from StringExtras.h) to it. llvm-svn: 87020 | ||||
* | Add From arguments to StringRef search functions, and tweak doxyments. | Daniel Dunbar | 2009-11-11 | 1 | -9/+24 |
| | | | | | | Also, add unittests for find_first_of and find_first_not_of. llvm-svn: 86770 | ||||
* | Pass StringRef by value. | Daniel Dunbar | 2009-11-06 | 1 | -3/+3 |
| | | | | llvm-svn: 86251 | ||||
* | Workaround what I believe is an MSVC bug where it emits a definition for a | Daniel Dunbar | 2009-09-22 | 1 | -0/+3 |
| | | | | | | | | static const class member into each translation unit, with external linkage??? - If someone understands this issue better, please clue me in, I haven't consulted the standard yet. llvm-svn: 82516 | ||||
* | simplify as daniel suggests | Chris Lattner | 2009-09-20 | 1 | -16/+9 |
| | | | | llvm-svn: 82415 | ||||
* | move a couple non-trivial methods out of line, add new | Chris Lattner | 2009-09-20 | 1 | -0/+71 |
| | | | | | | find_first_of/find_first_of methods. llvm-svn: 82347 | ||||
* | add some more overloads of StringRef::getAsInteger for | Chris Lattner | 2009-09-19 | 1 | -0/+45 |
| | | | | | | common and useful integer types. llvm-svn: 82338 | ||||
* | provide a "strtoull" operation that works on StringRef's. | Chris Lattner | 2009-09-19 | 1 | -0/+63 |
| | | | | llvm-svn: 82322 | ||||
* | Add StringRef::{rfind, rsplit} | Daniel Dunbar | 2009-09-16 | 1 | -0/+13 |
llvm-svn: 82087 |