Revision tags: llvmorg-3.1.0-rc1 |
|
#
cfa95f66 |
| 10-Mar-2012 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Make StringRef::getAsInteger work with all integer types. Before this change it would fail with {,u}int64_t on x86-64 Linux.
This also removes code duplication.
llvm-svn: 152517
|
#
ca99ad3f |
| 04-Mar-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Add generic support for hashing StringRef objects using the new hashing library.
llvm-svn: 152003
|
#
69d7a913 |
| 24-Feb-2012 |
Duncan Sands <baldrick@free.fr> |
Workaround a miscompilation by gcc-4.3 that showed up as a failure of the StringRef.Split2 unittest on 32 bit machines.
llvm-svn: 151358
|
#
8570b29d |
| 21-Feb-2012 |
Duncan Sands <baldrick@free.fr> |
Move the implementation of StringRef::split out of StringExtras.cpp and into StringRef.cpp, which is where the other StringRef stuff is.
llvm-svn: 151054
|
#
7a9ccf4c |
| 15-Feb-2012 |
Kaelyn Uhrain <rikka@google.com> |
Add function for computing the edit distance of two arrays.
Accomplished by moving the body of StringRef::edit_distance into a separate function that accepts two ArrayRefs, and making StringRef::edi
Add function for computing the edit distance of two arrays.
Accomplished by moving the body of StringRef::edit_distance into a separate function that accepts two ArrayRefs, and making StringRef::edit_distance a wrapper around the new function.
llvm-svn: 150621
show more ...
|
Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3 |
|
#
e3b94d1b |
| 06-Nov-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Fix a typo.
llvm-svn: 143890
|
#
3fa528d6 |
| 06-Nov-2011 |
Daniel Dunbar <daniel@zuster.org> |
ADT/StringRef: Add ::lower() and ::upper() methods.
llvm-svn: 143880
|
Revision tags: llvmorg-3.0.0-rc2 |
|
#
e664de33 |
| 17-Oct-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Fix handling of the From parameter in StringRef::find.
Enable bounds checking to catch this kind of bug earlier.
llvm-svn: 142247
|
Revision tags: llvmorg-3.0.0-rc1 |
|
#
4d681d7d |
| 15-Oct-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Add a bad char heuristic to StringRef::find.
Based on Horspool's simplified version of Boyer-Moore. We use a constant-sized table of uint8_ts to keep cache thrashing low, needles bigger than 255 byt
Add a bad char heuristic to StringRef::find.
Based on Horspool's simplified version of Boyer-Moore. We use a constant-sized table of uint8_ts to keep cache thrashing low, needles bigger than 255 bytes are uncommon anyways.
The worst case is still O(n*m) but we do a lot better on the average case now.
llvm-svn: 142061
show more ...
|
#
c874e2d8 |
| 30-Sep-2011 |
Jakob Stoklund Olesen <stoklund@2pi.dk> |
Fix a bug in compare_numeric().
Thanks to Alexandru Dura and Jonas Paulsson for finding it.
llvm-svn: 140859
|
#
367342e2 |
| 28-Apr-2011 |
Lenny Maiorani <lenny@colorado.edu> |
Remove bounded StringRef::compare() since nothing but Clang SA was using it and it is just as easy to use StringRef::substr() preceding StringRef::compare() to achieve the same thing.
llvm-svn: 1304
Remove bounded StringRef::compare() since nothing but Clang SA was using it and it is just as easy to use StringRef::substr() preceding StringRef::compare() to achieve the same thing.
llvm-svn: 130430
show more ...
|
#
fad9d957 |
| 15-Apr-2011 |
Lenny Maiorani <lenny@colorado.edu> |
Implements StringRef::compare with bounds. It is behaves similarly to strncmp(). Unit tests also included.
llvm-svn: 129582
|
#
0ab5e2cd |
| 15-Apr-2011 |
Chris Lattner <sabre@nondot.org> |
Fix a ton of comment typos found by codespell. Patch by Luis Felipe Strano Moraes!
llvm-svn: 129558
|
Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1 |
|
#
583abbc4 |
| 07-Dec-2010 |
Jay Foad <jay.foad@gmail.com> |
PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method trunc(), to be const and to return a new value instead
PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and 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
show more ...
|
#
e1d3603d |
| 30-Nov-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Support/ADT/StringRef: Add find_last_of.
llvm-svn: 120495
|
#
f13f442b |
| 26-Nov-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Fix Whitespace.
llvm-svn: 120166
|
#
3e100cf5 |
| 07-Nov-2010 |
Ted Kremenek <kremenek@apple.com> |
Fix memory leak in StringRef::edit_distance(). 'Allocated' could be leaked on an early return.
llvm-svn: 118370
|
#
21afc3b0 |
| 19-Oct-2010 |
Douglas Gregor <dgregor@apple.com> |
Extend StringRef's edit-distance algorithm to permit an upper bound on the allowed edit distance
llvm-svn: 116867
|
Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2, llvmorg-2.8.0-rc1, llvmorg-2.8.0-rc0 |
|
#
9bf0380a |
| 26-Aug-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
StringRef::compare_numeric also differed from StringRef::compare for characters > 127.
llvm-svn: 112189
|
#
b04d4af0 |
| 26-Aug-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Do unsigned char comparisons in StringRef::compare_lower to be more consistent with compare in corner cases.
llvm-svn: 112185
|
#
08fd2cf2 |
| 23-Aug-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Avoid O(n*m) complexity in StringRef::find_first(_not)_of(StringRef).
- Cache used characters in a bitset to reduce memory overhead to just 32 bytes. - On my core2 this code is faster except when th
Avoid O(n*m) complexity in StringRef::find_first(_not)_of(StringRef).
- 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
show more ...
|
#
d1d7ed63 |
| 26-May-2010 |
Jakob Stoklund Olesen <stoklund@2pi.dk> |
Add StringRef::compare_numeric and use it to sort TableGen register records.
This means that our Registers are now ordered R7, R8, R9, R10, R12, ... Not R1, R10, R11, R12, R2, R3, ...
llvm-svn: 104
Add StringRef::compare_numeric and use it to sort TableGen register records.
This means that our Registers are now ordered R7, R8, R9, R10, R12, ... Not R1, R10, R11, R12, R2, R3, ...
llvm-svn: 104745
show more ...
|
Revision tags: llvmorg-2.7.0 |
|
#
512b6502 |
| 28-Feb-2010 |
John McCall <rjmccall@apple.com> |
Add an override to StringRef::getAsInteger which parses into an APInt. It gets its own implementation totally divorced from the (presumably performance-sensitive) routines which parse into a uint64_t
Add an override to StringRef::getAsInteger which parses into an APInt. 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
show more ...
|
#
47ed9668 |
| 07-Jan-2010 |
Douglas Gregor <dgregor@apple.com> |
More trivial optimizations to a function well outside the critical path
llvm-svn: 92896
|
#
09470e6a |
| 07-Jan-2010 |
Douglas Gregor <dgregor@apple.com> |
Switch StringRef::edit_distance over to using raw pointers, since both std::vector and llvm::SmallVector have annoying performance tradeoffs. No, I don't expect this to matter, and now it won't.
llv
Switch StringRef::edit_distance over to using raw pointers, since both 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
show more ...
|