summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace strcpy with memcpy when we have the length around anyway.Benjamin Kramer2010-01-281-2/+3
| | | | llvm-svn: 94746
* Make SMDiagnostic::Print a const method.Mikhail Glushenkov2010-01-271-1/+1
| | | | llvm-svn: 94672
* Trailing whitespace.Mikhail Glushenkov2010-01-271-19/+19
| | | | llvm-svn: 94671
* Fix a typo that several people pointed out. Also, address the case ofDan Gohman2010-01-261-2/+4
| | | | | | wrapping that Duncan pointed out. llvm-svn: 94547
* Add a comment about a missed opportunity.Dan Gohman2010-01-261-0/+3
| | | | llvm-svn: 94507
* Print empty and full sets specially.Dan Gohman2010-01-261-1/+6
| | | | llvm-svn: 94506
* Changes to fix buffering that I forgot to commit with previous patch.Chris Lattner2010-01-221-5/+8
| | | | llvm-svn: 94222
* add a new MCAsmStreamer::GetCommentOS method to simplify stuffChris Lattner2010-01-221-0/+8
| | | | | | that doesn't want to use twines. llvm-svn: 94199
* Avoid printing a spurious semicolon when there is no filename.Dan Gohman2010-01-211-9/+12
| | | | llvm-svn: 94071
* Fix an infinite recursion problem. dbgs() should return errs() inDavid Greene2010-01-201-2/+2
| | | | | | release mode. llvm-svn: 94001
* Fix refacto reported by Nicolas Geoffray.Benjamin Kramer2010-01-181-3/+1
| | | | llvm-svn: 93723
* Temporarily revert r93581. It was causing failures in the ExecutionEngine testsBill Wendling2010-01-161-4/+2
| | | | | | on the build bots. llvm-svn: 93606
* BumpPtrAllocator: Have the DefaultSlabAllocator created at runtime, not ↵Ted Kremenek2010-01-151-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 theBenjamin Kramer2010-01-131-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 Kramer2010-01-111-12/+0
| | | | llvm-svn: 93183
* Add StrInStrNoCase, a StringRef version of CStrInCStrNoCase.Benjamin Kramer2010-01-111-0/+13
| | | | llvm-svn: 93174
* Turns out llvm-gcc still uses SplitString with a vector. Add it back until IBenjamin Kramer2010-01-111-0/+12
| | | | | | have a fix. llvm-svn: 93163
* Reimplement getToken and SplitString as "StringRef helper functions"Benjamin Kramer2010-01-111-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 Sands2010-01-091-1/+1
| | | | llvm-svn: 93046
* More trivial optimizations to a function well outside the critical pathDouglas Gregor2010-01-071-15/+8
| | | | llvm-svn: 92896
* Switch StringRef::edit_distance over to using raw pointers, since bothDouglas Gregor2010-01-071-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 Greene2010-01-051-3/+3
| | | | llvm-svn: 92646
* Change errs() to dbgs().David Greene2010-01-051-1/+2
| | | | llvm-svn: 92645
* Change errs() to dbgs().David Greene2010-01-051-34/+34
| | | | llvm-svn: 92643
* Change errs() to dbgs().David Greene2010-01-051-1/+2
| | | | llvm-svn: 92642
* Change errs() to dbgs().David Greene2010-01-051-0/+8
| | | | llvm-svn: 92641
* Change errs() to dbgs().David Greene2010-01-051-2/+3
| | | | llvm-svn: 92640
* Change errs() to dbgs().David Greene2010-01-051-1/+2
| | | | llvm-svn: 92638
* Change errs() to dbgs().David Greene2010-01-051-4/+5
| | | | llvm-svn: 92637
* Document the edit-distance algorithm used in StringRef, switch it overDouglas Gregor2009-12-311-5/+14
| | | | | | to SmallVector, and add a unit test. llvm-svn: 92340
* Implement edit distance for StringRefDouglas Gregor2009-12-301-0/+31
| | | | llvm-svn: 92309
* Do not crash when .ll printing metadata that smells like debug info, but isn't.Chris Lattner2009-12-291-46/+23
| | | | llvm-svn: 92268
* fix indentation, fit in 80 cols.Chris Lattner2009-12-291-382/+382
| | | | llvm-svn: 92267
* fix .cpp file to not wrap the entire file in namespace blocks.Chris Lattner2009-12-291-30/+23
| | | | llvm-svn: 92250
* Implement support for converting to string at "natural precision", and fix someJohn McCall2009-12-241-16/+26
| | | | | | major bugs in long-precision conversion. llvm-svn: 92150
* Substantially optimize APFloat::toString() by doing a single large divide toJohn McCall2009-12-241-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, andJohn McCall2009-12-241-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 newJohn McCall2009-12-241-1/+1
| | | | | | order should be immune to such problems. llvm-svn: 92124
* Clarify how dbgs() operates.David Greene2009-12-231-1/+1
| | | | llvm-svn: 92083
* sizeof(char) is always 1.Chris Lattner2009-12-231-2/+2
| | | | llvm-svn: 92079
* De-bork CMake buildDouglas Gregor2009-12-231-0/+1
| | | | llvm-svn: 92003
* Provide dbgs(), a circular-buffering debug output stream. By default itDavid Greene2009-12-231-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 queueDavid Greene2009-12-231-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 thatChris Lattner2009-12-192-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 Lattner2009-12-162-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 Gohman2009-12-141-2/+1
| | | | llvm-svn: 91316
* DeltaAlgorithm: Add a virtual destructor and home.Daniel Dunbar2009-12-091-0/+3
| | | | llvm-svn: 90957
* Fix typo and add missing include.Daniel Dunbar2009-12-041-1/+2
| | | | llvm-svn: 90557
* Print a newline after the Args: line so that unrelated errs() output doesn'tDan Gohman2009-12-031-1/+2
| | | | | | end up on the same line. llvm-svn: 90473
* Add an implementation of the delta debugging algorithm.Daniel Dunbar2009-12-032-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
OpenPOWER on IntegriCloud