summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* Kill off more cerr/cout uses and prune includes a bit.Benjamin Kramer2009-08-231-1/+0
| | | | llvm-svn: 79852
* Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other ↵Benjamin Kramer2009-08-231-39/+36
| | | | | | minor tweaks. llvm-svn: 79847
* Fix windows build.Benjamin Kramer2009-08-231-1/+1
| | | | llvm-svn: 79845
* Fix some refactos for iostream changes (in -Asserts mode).Daniel Dunbar2009-08-231-5/+5
| | | | | | - The world needs better C++ refactoring tools, can I get an Amen!? llvm-svn: 79843
* remove some uses of llvm/Support/Streams.hChris Lattner2009-08-235-110/+88
| | | | llvm-svn: 79842
* convert LoopInfo.h and GraphWriter.h to use raw_ostreamChris Lattner2009-08-231-16/+47
| | | | llvm-svn: 79836
* eliminate DOUT and make Debug.h not include Streams.h anymore, woo!Chris Lattner2009-08-231-40/+18
| | | | llvm-svn: 79835
* Change Pass::print to take a raw ostream instead of std::ostream,Chris Lattner2009-08-231-6/+1
| | | | | | update all code that this affects. llvm-svn: 79830
* Change raw_fd_ostream to take flags as an optional bitmask Chris Lattner2009-08-231-14/+24
| | | | | | | | | | | | | | | | instead of as two bools. Use this to add a F_Append flag which has the obvious behavior. Other unrelated changes conflated into this patch: 1. REmove EH stuff from llvm-dis and llvm-as, the try blocks are dead. 2. Simplify the filename inference code in llvm-as/llvm-dis, because raw_fd_ostream does the right thing with '-'. 3. Switch machine verifier to use raw_ostream instead of ostream (Which is the thing that needed append in the first place). llvm-svn: 79807
* switch formattedstream to use raw_ostream::indent. This eliminatesChris Lattner2009-08-221-10/+1
| | | | | | the weird MAX_COLUMN_PAD limitation. llvm-svn: 79785
* add a raw_ostream::indent method, to be used like:Chris Lattner2009-08-221-0/+17
| | | | | | | | OS.indent(i) << "whatever"; people seem to like indenting things ;-) llvm-svn: 79784
* Fix typo.Anton Korobeynikov2009-08-211-1/+1
| | | | llvm-svn: 79688
* Implement APInt <-> APFloat conversion for IEEE 128-bit floats.Anton Korobeynikov2009-08-211-3/+83
| | | | | | This fixes PR2555 llvm-svn: 79677
* Clean up the APInt function getDigit.Erick Tryzelaar2009-08-211-21/+19
| | | | llvm-svn: 79602
* Update error messages for '+'. Fix grammar and make the twoEric Christopher2009-08-211-4/+5
| | | | | | negative checks resemble each other. llvm-svn: 79595
* Fix trailing whitespace and 80-col violation.Eric Christopher2009-08-211-120/+121
| | | | llvm-svn: 79594
* Fix bug with APInt::getBitsNeeded with for base 10 numbers 0-9.Erick Tryzelaar2009-08-211-30/+42
| | | | llvm-svn: 79593
* Allow '+' to appear in APInt strings, and add more unit tests.Erick Tryzelaar2009-08-211-6/+11
| | | | llvm-svn: 79592
* Add support for including '+' in APFloat strings, more asserts,Erick Tryzelaar2009-08-201-28/+34
| | | | | | and many new unit tests. llvm-svn: 79574
* Add a comment explaining why llvm_unreachable_internal doesn't callDan Gohman2009-08-201-0/+3
| | | | | | the ErrorHandler callback. llvm-svn: 79541
* Fix two APFloat bugs in converting hexadecimal constants.Daniel Dunbar2009-08-201-2/+2
| | | | llvm-svn: 79540
* Add triple parsing support for TCE.Eli Friedman2009-08-191-0/+5
| | | | llvm-svn: 79461
* Switch to SmallString::str from SmallString::c_str, and removeDaniel Dunbar2009-08-192-5/+6
| | | | | | SmallString::c_str. llvm-svn: 79456
* Change raw_svector_ostream to reserve the input buffer if necessary, Ted wasDaniel Dunbar2009-08-191-3/+7
| | | | | | | | | | | | | right. - This class turns out to be much more convenient to use if we do this; clients can make sure the buffer is always big enough if they care (since our current idiom tends to be to use a SmallString<256> for the input to this we should generally be avoiding an unnecessary malloc). Also, add a convenience raw_svector_ostream::str method which flushes the buffer and returns a StringRef for the vector contents. llvm-svn: 79446
* Switch Twine::str() to use toVector(), which is now efficient.Daniel Dunbar2009-08-191-14/+4
| | | | llvm-svn: 79437
* Switch raw_svector_ostream to use the vector as the ostream buffer.Daniel Dunbar2009-08-191-1/+29
| | | | | | | - This avoids unnecessary malloc/free overhead in the common case, and unnecessary copying from the ostream buffer into the output vector. llvm-svn: 79434
* Speculatively revert r79375, which may be breaking bootstrap, although in aDaniel Dunbar2009-08-191-15/+10
| | | | | | rather obscure way (the other candidate is r79377). llvm-svn: 79426
* raw_ostream: Simplify write(unsigned char) to match write(const char*, ↵Daniel Dunbar2009-08-191-18/+8
| | | | | | unsigned). llvm-svn: 79386
* raw_ostream: Remove pointless redefinitions of tell().Daniel Dunbar2009-08-191-8/+0
| | | | | | - The base class implementation is correct. llvm-svn: 79385
* raw_ostream: Add the capability for subclasses to manually install an externalDaniel Dunbar2009-08-181-21/+23
| | | | | | buffer. llvm-svn: 79382
* raw_ostream: Reduce FormattedStream's reliance on raw_ostream's implementation.Daniel Dunbar2009-08-181-21/+18
| | | | | | | | | | | | | | - Kill off begin(), end(), and iterator. It isn't clear what these mean. Instead provide getBufferStart(), which can be used with GetNumBytesInBuffer to the same effect. - Update ComputeColumn to take arguments for the buffer to scan, this simplifies the implementation of write_impl substantially. - This should also fix possible problems with the scanning pointer pointing outside of the current raw_ostream buffer. llvm-svn: 79379
* Speed up raw_ostream::<<(unsigned long long) for 32-bit systems by doing mostDaniel Dunbar2009-08-181-10/+15
| | | | | | div/mods in 32-bits. llvm-svn: 79375
* Fix a bug in raw_ostream::write(char) introduced by the change toDan Gohman2009-08-181-3/+10
| | | | | | | | | allow underlying stream classes to decline buffering. After calling SetBuffered(), re-check whether the stream is Unbuffered in order to handle the case where the underlying stream has declined buffering. llvm-svn: 79362
* Revert r78924, disabling buffering defeats all the fast paths in raw_ostream.Daniel Dunbar2009-08-181-0/+12
| | | | llvm-svn: 79361
* Improve Triple to recognize the OS in i386-mingw32.Daniel Dunbar2009-08-181-2/+19
| | | | llvm-svn: 79359
* Fix an uninitialized value warning in APFloat.Erick Tryzelaar2009-08-181-2/+1
| | | | llvm-svn: 79353
* Fix Triple to recognize the 'bfin' arch.Daniel Dunbar2009-08-181-0/+2
| | | | llvm-svn: 79325
* Recognize xscale as an ARM arch.Daniel Dunbar2009-08-181-1/+2
| | | | | | - Patch by Yonggang Luo. llvm-svn: 79315
* Add Triple matching for pic16 arch and solaris OS.Daniel Dunbar2009-08-181-2/+8
| | | | | | - Patch by Yonggang Luo. llvm-svn: 79314
* the MinPad argument to PadToColumn only really makes sense to be 1,Chris Lattner2009-08-171-4/+3
| | | | | | just remove the argument and replace it with 1. llvm-svn: 79246
* Modify APFloat to take a StringRef instead of a c string.Erick Tryzelaar2009-08-161-63/+106
| | | | | | | This also adds unit tests to APFloat that mainly tests the string handling of APFloat, but not much else of it's api. llvm-svn: 79210
* Mingw also doesn't have st_blksize.Dan Gohman2009-08-151-1/+1
| | | | llvm-svn: 79142
* Always check to see if raw_fd_ostream's file descriptor is attached toDan Gohman2009-08-151-13/+16
| | | | | | a terminal, not just when it's STDOUT_FILENO. llvm-svn: 79066
* Add support for column computation on unbuffered streams.Dan Gohman2009-08-151-15/+38
| | | | llvm-svn: 79065
* Move FormattedStream's write_impl out of line.Dan Gohman2009-08-151-0/+6
| | | | llvm-svn: 79064
* Remove an unnecessary #include.Dan Gohman2009-08-151-1/+0
| | | | llvm-svn: 79063
* fix "pc" to be lower case in a target triple, patch by Yonggang LuoChris Lattner2009-08-141-1/+1
| | | | llvm-svn: 79016
* When standard output is a terminal, set outs() to be unbuffered, toDan Gohman2009-08-131-1/+11
| | | | | | | | mimic the behavior of stdtout, which is line-buffered when the output is a terminal. This fixes some issues with bugpoint output appearing being printed out of order. llvm-svn: 78953
* Fix a compiler warning about comparing signed with unsigned.Dan Gohman2009-08-131-1/+1
| | | | llvm-svn: 78933
* Add an assert to check copy_to_buffer's precondition.Dan Gohman2009-08-131-0/+2
| | | | llvm-svn: 78926
OpenPOWER on IntegriCloud