Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Replace strcpy with memcpy when we have the length around anyway. | Benjamin Kramer | 2010-01-28 | 1 | -2/+3 | |
| | | | | llvm-svn: 94746 | |||||
* | Make SMDiagnostic::Print a const method. | Mikhail Glushenkov | 2010-01-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 94672 | |||||
* | Trailing whitespace. | Mikhail Glushenkov | 2010-01-27 | 1 | -19/+19 | |
| | | | | llvm-svn: 94671 | |||||
* | Fix a typo that several people pointed out. Also, address the case of | Dan Gohman | 2010-01-26 | 1 | -2/+4 | |
| | | | | | | wrapping that Duncan pointed out. llvm-svn: 94547 | |||||
* | Add a comment about a missed opportunity. | Dan Gohman | 2010-01-26 | 1 | -0/+3 | |
| | | | | llvm-svn: 94507 | |||||
* | Print empty and full sets specially. | Dan Gohman | 2010-01-26 | 1 | -1/+6 | |
| | | | | llvm-svn: 94506 | |||||
* | Changes to fix buffering that I forgot to commit with previous patch. | Chris Lattner | 2010-01-22 | 1 | -5/+8 | |
| | | | | llvm-svn: 94222 | |||||
* | add a new MCAsmStreamer::GetCommentOS method to simplify stuff | Chris Lattner | 2010-01-22 | 1 | -0/+8 | |
| | | | | | | that doesn't want to use twines. llvm-svn: 94199 | |||||
* | Avoid printing a spurious semicolon when there is no filename. | Dan Gohman | 2010-01-21 | 1 | -9/+12 | |
| | | | | llvm-svn: 94071 | |||||
* | Fix an infinite recursion problem. dbgs() should return errs() in | David Greene | 2010-01-20 | 1 | -2/+2 | |
| | | | | | | release mode. llvm-svn: 94001 | |||||
* | Fix refacto reported by Nicolas Geoffray. | Benjamin Kramer | 2010-01-18 | 1 | -3/+1 | |
| | | | | llvm-svn: 93723 | |||||
* | Temporarily revert r93581. It was causing failures in the ExecutionEngine tests | Bill Wendling | 2010-01-16 | 1 | -4/+2 | |
| | | | | | | on the build bots. llvm-svn: 93606 | |||||
* | BumpPtrAllocator: Have the DefaultSlabAllocator created at runtime, not ↵ | Ted Kremenek | 2010-01-15 | 1 | -2/+4 | |
| | | | | | | initialization time. This removes one of the 'init_constructors' reported in <rdar://problem/7545356>. llvm-svn: 93581 | |||||
* | Introduce Twine::toStringRef, a variant of toVector which avoids the copy if the | Benjamin Kramer | 2010-01-13 | 1 | -2/+8 | |
| | | | | | | | twine can be represented as a single StringRef. Use the new methode to simplify some twine users. llvm-svn: 93317 | |||||
* | Remove unused string functions. | Benjamin Kramer | 2010-01-11 | 1 | -12/+0 | |
| | | | | llvm-svn: 93183 | |||||
* | Add StrInStrNoCase, a StringRef version of CStrInCStrNoCase. | Benjamin Kramer | 2010-01-11 | 1 | -0/+13 | |
| | | | | llvm-svn: 93174 | |||||
* | Turns out llvm-gcc still uses SplitString with a vector. Add it back until I | Benjamin Kramer | 2010-01-11 | 1 | -0/+12 | |
| | | | | | | have a fix. llvm-svn: 93163 | |||||
* | Reimplement getToken and SplitString as "StringRef helper functions" | Benjamin Kramer | 2010-01-11 | 1 | -28/+18 | |
| | | | | | | | | | - getToken is modeled after StringRef::split but it can split on multiple separator chars and skips leading seperators. - SplitString is a StringRef::split variant for more than 2 elements with the same behaviour as getToken. llvm-svn: 93161 | |||||
* | Suppress use of uninitialized variable warning. | Duncan Sands | 2010-01-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 93046 | |||||
* | 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 | |||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -3/+3 | |
| | | | | llvm-svn: 92646 | |||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -1/+2 | |
| | | | | llvm-svn: 92645 | |||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -34/+34 | |
| | | | | llvm-svn: 92643 | |||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -1/+2 | |
| | | | | llvm-svn: 92642 | |||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -0/+8 | |
| | | | | llvm-svn: 92641 | |||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -2/+3 | |
| | | | | llvm-svn: 92640 | |||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -1/+2 | |
| | | | | llvm-svn: 92638 | |||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -4/+5 | |
| | | | | llvm-svn: 92637 | |||||
* | 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 | |||||
* | Do not crash when .ll printing metadata that smells like debug info, but isn't. | Chris Lattner | 2009-12-29 | 1 | -46/+23 | |
| | | | | llvm-svn: 92268 | |||||
* | fix indentation, fit in 80 cols. | Chris Lattner | 2009-12-29 | 1 | -382/+382 | |
| | | | | llvm-svn: 92267 | |||||
* | fix .cpp file to not wrap the entire file in namespace blocks. | Chris Lattner | 2009-12-29 | 1 | -30/+23 | |
| | | | | llvm-svn: 92250 | |||||
* | Implement support for converting to string at "natural precision", and fix some | John McCall | 2009-12-24 | 1 | -16/+26 | |
| | | | | | | major bugs in long-precision conversion. llvm-svn: 92150 | |||||
* | Substantially optimize APFloat::toString() by doing a single large divide to | John McCall | 2009-12-24 | 1 | -0/+37 | |
| | | | | | | | | | | | | cut the significand down to the desired precision *before* entering the core divmod loop. Makes the overall algorithm logarithmic in the exponent. There's still a lot of room for improvement here, but this gets the performance back down to acceptable-for-diagnostics levels, even for long doubles. negligible, even on long doubles. llvm-svn: 92130 | |||||
* | Add accessors for the largest-magnitude, smallest-magnitude, and | John McCall | 2009-12-24 | 1 | -0/+301 | |
| | | | | | | | | smallest-normalized-magnitude values in a given FP semantics. Provide an APFloat-to-string conversion which I am quite ready to admit could be much more efficient. llvm-svn: 92126 | |||||
* | Set Remainder before Quotient in case Quotient and LHS alias. The new | John McCall | 2009-12-24 | 1 | -1/+1 | |
| | | | | | | order should be immune to such problems. llvm-svn: 92124 | |||||
* | Clarify how dbgs() operates. | David Greene | 2009-12-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 92083 | |||||
* | sizeof(char) is always 1. | Chris Lattner | 2009-12-23 | 1 | -2/+2 | |
| | | | | llvm-svn: 92079 | |||||
* | De-bork CMake build | Douglas Gregor | 2009-12-23 | 1 | -0/+1 | |
| | | | | llvm-svn: 92003 | |||||
* | Provide dbgs(), a circular-buffering debug output stream. By default it | David Greene | 2009-12-23 | 1 | -1/+55 | |
| | | | | | | | | simply passes output to errs(). If -debug-buffer-size=N is set N > 0, dbgs() buffers its output until program termination and dumps the last N characters sent to it. This is handy when debugging very large inputs. llvm-svn: 92002 | |||||
* | Add circular_raw_ostream, which buffers its output in a circular queue | David Greene | 2009-12-23 | 1 | -0/+47 | |
| | | | | | | | | and outputs it when explicitly flushed. The intent is to use it in situations such as debug output logging where a signal handler can take care of flushing the buffer at program termination. llvm-svn: 92001 | |||||
* | Make some methods const. The only interesting change here is that | Chris Lattner | 2009-12-19 | 2 | -15/+17 | |
| | | | | | | | | it changes raw_fd_ostream::preferred_buffer_size to return zero on a scary stat failure instead of setting the stream to an error state. This method really should not mutate the stream. llvm-svn: 91740 | |||||
* | now that libsystem no longer uses SmallVector, we can move | Chris Lattner | 2009-12-16 | 2 | -0/+38 | |
| | | | | | | SmallVectorBase::grow_pod out of line, finally satisfying PR3758. llvm-svn: 91529 | |||||
* | Micro-optimize these functions in the case where they are not inlined. | Dan Gohman | 2009-12-14 | 1 | -2/+1 | |
| | | | | llvm-svn: 91316 | |||||
* | DeltaAlgorithm: Add a virtual destructor and home. | Daniel Dunbar | 2009-12-09 | 1 | -0/+3 | |
| | | | | llvm-svn: 90957 | |||||
* | Fix typo and add missing include. | Daniel Dunbar | 2009-12-04 | 1 | -1/+2 | |
| | | | | llvm-svn: 90557 | |||||
* | Print a newline after the Args: line so that unrelated errs() output doesn't | Dan Gohman | 2009-12-03 | 1 | -1/+2 | |
| | | | | | | end up on the same line. llvm-svn: 90473 | |||||
* | Add an implementation of the delta debugging algorithm. | Daniel Dunbar | 2009-12-03 | 2 | -0/+111 | |
| | | | | | | | - This is a pretty slow / memory intensive implementation, and I will likely change it to an iterative model, but it works. llvm-svn: 90447 |