Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix various doxygen warnings. | Dan Gohman | 2010-02-22 | 1 | -2/+0 |
| | | | | llvm-svn: 96779 | ||||
* | Refer to -help instead of --help since this is what tools themselves say. | Duncan Sands | 2010-02-18 | 1 | -7/+7 |
| | | | | | | | | Also, have tools output -help-hidden rather than refer to --help-hidden, for consistency, and likewise adjust documentation. This doesn't change every mention of --help, only those which seemed clearly safe. llvm-svn: 96578 | ||||
* | Add Regex::sub, for doing regular expression substitution with backreferences. | Daniel Dunbar | 2010-02-17 | 1 | -0/+76 |
| | | | | llvm-svn: 96503 | ||||
* | enhance raw_svector_ostream::write_impl to work with unbuffered streams, | Chris Lattner | 2010-02-15 | 1 | -6/+12 |
| | | | | | | which may call write_impl on things that are not the usual buffer. llvm-svn: 96209 | ||||
* | make PadToColumn return the stream so you can use: | Chris Lattner | 2010-02-15 | 1 | -1/+2 |
| | | | | | | OS.PadToColumn(42) << "foo"; llvm-svn: 96208 | ||||
* | Fix "the the" and similar typos. | Dan Gohman | 2010-02-10 | 1 | -2/+2 |
| | | | | llvm-svn: 95781 | ||||
* | add support for the sparcv9-*-* target triple to turn on | Chris Lattner | 2010-02-04 | 1 | -0/+6 |
| | | | | | | 64-bit sparc codegen. Patch by Nathan Keynes! llvm-svn: 95293 | ||||
* | Make APInt::countLeadingZerosSlowCase() treat the contents of padding bits | John McCall | 2010-02-03 | 1 | -6/+18 |
| | | | | | | as undefined. Fixes an assertion in APFloat::toString noticed by Dale. llvm-svn: 95196 | ||||
* | Fix MSVC build. | Benjamin Kramer | 2010-01-29 | 1 | -0/+1 |
| | | | | llvm-svn: 94809 | ||||
* | Convert some users of ftostr to raw_ostream. | Benjamin Kramer | 2010-01-29 | 1 | -7/+7 |
| | | | | llvm-svn: 94808 | ||||
* | Use llvm::format instead of ftostr (which just calls sprintf). | Benjamin Kramer | 2010-01-29 | 1 | -2/+1 |
| | | | | llvm-svn: 94807 | ||||
* | 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 |