summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Fix minor style issues.Dan Gohman2010-03-246-211/+206
| | | | llvm-svn: 99414
* Fix comment typo.Duncan Sands2010-03-241-1/+1
| | | | llvm-svn: 99392
* Add the ability to "intern" FoldingSetNodeID data into aDan Gohman2010-03-181-0/+10
| | | | | | | | | | | | BumpPtrAllocator-allocated region to allow it to be stored in a more compact form and to avoid the need for a non-trivial destructor call. Use this new mechanism in ScalarEvolution instead of FastFoldingSetNode to avoid leaking memory in the case where a FoldingSetNodeID uses heap storage, and to reduce overall memory usage. llvm-svn: 98829
* Extend MemoryBuffer::getFile() to take an optional "stat" structureDouglas Gregor2010-03-151-7/+10
| | | | | | | pointer. If given, the structure will be set with the stat information from the file actually read. llvm-svn: 98575
* make APFloat::toString be const.Chris Lattner2010-03-061-1/+1
| | | | llvm-svn: 97883
* add an assertion requested on llvmdev.Chris Lattner2010-03-051-0/+1
| | | | llvm-svn: 97769
* Don't potentially read past the end of the fill data when making a NaN fromJohn McCall2010-03-011-1/+2
| | | | | | an APInt. llvm-svn: 97467
* Properly clear all the extra bits in a significand when making a NaN from anJohn McCall2010-02-281-8/+28
| | | | | | | APInt. Be certain to set the integer bit in an x87 extended-precision significand so that we don't accidentally make a pseudo-NaN. llvm-svn: 97382
* Add an override to StringRef::getAsInteger which parses into an APInt.John McCall2010-02-281-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
* Teach APFloat how to create both QNaNs and SNaNs and with arbitrary-widthJohn McCall2010-02-282-12/+45
| | | | | | | | payloads. APFloat's internal folding routines always make QNaNs now, instead of sometimes making QNaNs and sometimes SNaNs depending on the type. llvm-svn: 97364
* Make APFloat's string-parsing routines a bit safer against very large exponents.John McCall2010-02-261-2/+16
| | | | llvm-svn: 97278
* Replace a temporary std::string with SmallString.Benjamin Kramer2010-02-261-1/+2
| | | | llvm-svn: 97259
* Adding the MicroBlaze backend.Wesley Peck2010-02-231-0/+9
| | | | | | | | | | | | The MicroBlaze is a highly configurable 32-bit soft-microprocessor for use on Xilinx FPGAs. For more information see: http://www.xilinx.com/tools/microblaze.htm http://en.wikipedia.org/wiki/MicroBlaze The current LLVM MicroBlaze backend generates assembly which can be compiled using the an appropriate binutils assembler. llvm-svn: 96969
* Fix viewCFG on Linux.Jeffrey Yasskin2010-02-231-1/+1
| | | | llvm-svn: 96834
* Fix various doxygen warnings.Dan Gohman2010-02-221-2/+0
| | | | llvm-svn: 96779
* Refer to -help instead of --help since this is what tools themselves say.Duncan Sands2010-02-181-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 Dunbar2010-02-171-0/+76
| | | | llvm-svn: 96503
* enhance raw_svector_ostream::write_impl to work with unbuffered streams,Chris Lattner2010-02-151-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 Lattner2010-02-151-1/+2
| | | | | | OS.PadToColumn(42) << "foo"; llvm-svn: 96208
* Fix "the the" and similar typos.Dan Gohman2010-02-101-2/+2
| | | | llvm-svn: 95781
* add support for the sparcv9-*-* target triple to turn onChris Lattner2010-02-041-0/+6
| | | | | | 64-bit sparc codegen. Patch by Nathan Keynes! llvm-svn: 95293
* Make APInt::countLeadingZerosSlowCase() treat the contents of padding bitsJohn McCall2010-02-031-6/+18
| | | | | | as undefined. Fixes an assertion in APFloat::toString noticed by Dale. llvm-svn: 95196
* Fix MSVC build.Benjamin Kramer2010-01-291-0/+1
| | | | llvm-svn: 94809
* Convert some users of ftostr to raw_ostream.Benjamin Kramer2010-01-291-7/+7
| | | | llvm-svn: 94808
* Use llvm::format instead of ftostr (which just calls sprintf).Benjamin Kramer2010-01-291-2/+1
| | | | llvm-svn: 94807
* 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
OpenPOWER on IntegriCloud