| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Clean up the APInt function getDigit. | Erick Tryzelaar | 2009-08-21 | 1 | -21/+19 | |
| | | | | | llvm-svn: 79602 | |||||
| * | Update error messages for '+'. Fix grammar and make the two | Eric Christopher | 2009-08-21 | 1 | -4/+5 | |
| | | | | | | | negative checks resemble each other. llvm-svn: 79595 | |||||
| * | Fix trailing whitespace and 80-col violation. | Eric Christopher | 2009-08-21 | 1 | -120/+121 | |
| | | | | | llvm-svn: 79594 | |||||
| * | Fix bug with APInt::getBitsNeeded with for base 10 numbers 0-9. | Erick Tryzelaar | 2009-08-21 | 1 | -30/+42 | |
| | | | | | llvm-svn: 79593 | |||||
| * | Allow '+' to appear in APInt strings, and add more unit tests. | Erick Tryzelaar | 2009-08-21 | 1 | -6/+11 | |
| | | | | | llvm-svn: 79592 | |||||
| * | Add support for including '+' in APFloat strings, more asserts, | Erick Tryzelaar | 2009-08-20 | 1 | -28/+34 | |
| | | | | | | | and many new unit tests. llvm-svn: 79574 | |||||
| * | Add a comment explaining why llvm_unreachable_internal doesn't call | Dan Gohman | 2009-08-20 | 1 | -0/+3 | |
| | | | | | | | the ErrorHandler callback. llvm-svn: 79541 | |||||
| * | Fix two APFloat bugs in converting hexadecimal constants. | Daniel Dunbar | 2009-08-20 | 1 | -2/+2 | |
| | | | | | llvm-svn: 79540 | |||||
| * | Add triple parsing support for TCE. | Eli Friedman | 2009-08-19 | 1 | -0/+5 | |
| | | | | | llvm-svn: 79461 | |||||
| * | Switch to SmallString::str from SmallString::c_str, and remove | Daniel Dunbar | 2009-08-19 | 2 | -5/+6 | |
| | | | | | | | SmallString::c_str. llvm-svn: 79456 | |||||
| * | Change raw_svector_ostream to reserve the input buffer if necessary, Ted was | Daniel Dunbar | 2009-08-19 | 1 | -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 Dunbar | 2009-08-19 | 1 | -14/+4 | |
| | | | | | llvm-svn: 79437 | |||||
| * | Switch raw_svector_ostream to use the vector as the ostream buffer. | Daniel Dunbar | 2009-08-19 | 1 | -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 a | Daniel Dunbar | 2009-08-19 | 1 | -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 Dunbar | 2009-08-19 | 1 | -18/+8 | |
| | | | | | | | unsigned). llvm-svn: 79386 | |||||
| * | raw_ostream: Remove pointless redefinitions of tell(). | Daniel Dunbar | 2009-08-19 | 1 | -8/+0 | |
| | | | | | | | - The base class implementation is correct. llvm-svn: 79385 | |||||
| * | raw_ostream: Add the capability for subclasses to manually install an external | Daniel Dunbar | 2009-08-18 | 1 | -21/+23 | |
| | | | | | | | buffer. llvm-svn: 79382 | |||||
| * | raw_ostream: Reduce FormattedStream's reliance on raw_ostream's implementation. | Daniel Dunbar | 2009-08-18 | 1 | -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 most | Daniel Dunbar | 2009-08-18 | 1 | -10/+15 | |
| | | | | | | | div/mods in 32-bits. llvm-svn: 79375 | |||||
| * | Fix a bug in raw_ostream::write(char) introduced by the change to | Dan Gohman | 2009-08-18 | 1 | -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 Dunbar | 2009-08-18 | 1 | -0/+12 | |
| | | | | | llvm-svn: 79361 | |||||
| * | Improve Triple to recognize the OS in i386-mingw32. | Daniel Dunbar | 2009-08-18 | 1 | -2/+19 | |
| | | | | | llvm-svn: 79359 | |||||
| * | Fix an uninitialized value warning in APFloat. | Erick Tryzelaar | 2009-08-18 | 1 | -2/+1 | |
| | | | | | llvm-svn: 79353 | |||||
| * | Fix Triple to recognize the 'bfin' arch. | Daniel Dunbar | 2009-08-18 | 1 | -0/+2 | |
| | | | | | llvm-svn: 79325 | |||||
| * | Recognize xscale as an ARM arch. | Daniel Dunbar | 2009-08-18 | 1 | -1/+2 | |
| | | | | | | | - Patch by Yonggang Luo. llvm-svn: 79315 | |||||
| * | Add Triple matching for pic16 arch and solaris OS. | Daniel Dunbar | 2009-08-18 | 1 | -2/+8 | |
| | | | | | | | - Patch by Yonggang Luo. llvm-svn: 79314 | |||||
| * | the MinPad argument to PadToColumn only really makes sense to be 1, | Chris Lattner | 2009-08-17 | 1 | -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 Tryzelaar | 2009-08-16 | 1 | -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 Gohman | 2009-08-15 | 1 | -1/+1 | |
| | | | | | llvm-svn: 79142 | |||||
| * | Always check to see if raw_fd_ostream's file descriptor is attached to | Dan Gohman | 2009-08-15 | 1 | -13/+16 | |
| | | | | | | | a terminal, not just when it's STDOUT_FILENO. llvm-svn: 79066 | |||||
| * | Add support for column computation on unbuffered streams. | Dan Gohman | 2009-08-15 | 1 | -15/+38 | |
| | | | | | llvm-svn: 79065 | |||||
| * | Move FormattedStream's write_impl out of line. | Dan Gohman | 2009-08-15 | 1 | -0/+6 | |
| | | | | | llvm-svn: 79064 | |||||
| * | Remove an unnecessary #include. | Dan Gohman | 2009-08-15 | 1 | -1/+0 | |
| | | | | | llvm-svn: 79063 | |||||
| * | fix "pc" to be lower case in a target triple, patch by Yonggang Luo | Chris Lattner | 2009-08-14 | 1 | -1/+1 | |
| | | | | | llvm-svn: 79016 | |||||
| * | When standard output is a terminal, set outs() to be unbuffered, to | Dan Gohman | 2009-08-13 | 1 | -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 Gohman | 2009-08-13 | 1 | -1/+1 | |
| | | | | | llvm-svn: 78933 | |||||
| * | Add an assert to check copy_to_buffer's precondition. | Dan Gohman | 2009-08-13 | 1 | -0/+2 | |
| | | | | | llvm-svn: 78926 | |||||
| * | Set raw_os_ostream, raw_string_ostream, and raw_svector_ostream to be | Dan Gohman | 2009-08-13 | 1 | -12/+0 | |
| | | | | | | | | | unbuffered. std::ostream does its own buffering, and std::string and SmallVector both have allocation strategies intended to handle frequent appending. llvm-svn: 78924 | |||||
| * | Add support to raw_ostream for sizing the buffer according to the | Dan Gohman | 2009-08-13 | 1 | -2/+25 | |
| | | | | | | | | needs of the underlying output mechanism. raw_fd_ostream now uses st_blksize from fstat to determine a buffer size. llvm-svn: 78923 | |||||
| * | Move SetBufferSize and SetUnbuffered out of line. | Dan Gohman | 2009-08-13 | 1 | -0/+20 | |
| | | | | | llvm-svn: 78909 | |||||
| * | Fix the buffer handling logic so that write_impl is always called with | Dan Gohman | 2009-08-13 | 1 | -20/+25 | |
| | | | | | | | | a full buffer, rather than often being called with a slightly-less-than-full buffer. llvm-svn: 78907 | |||||
| * | Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef. | Daniel Dunbar | 2009-08-13 | 1 | -17/+22 | |
| | | | | | | | - Patch by Erick Tryzelaar, with some edits (and a bug fix) from me. llvm-svn: 78885 | |||||
| * | This void is implicit in C++. | Dan Gohman | 2009-08-12 | 1 | -1/+1 | |
| | | | | | llvm-svn: 78848 | |||||
| * | Add attempted idiotproofing comment per review. | Dale Johannesen | 2009-08-12 | 1 | -1/+2 | |
| | | | | | llvm-svn: 78825 | |||||
| * | Fix a nondeterministic bug in APInt::roundToDouble; | Dale Johannesen | 2009-08-12 | 1 | -2/+2 | |
| | | | | | | | | | when !isSingleWord() but getActiveBits() is small, we were using the pointer value instead of the low word of the integer value. llvm-svn: 78821 | |||||
| * | the x86 version of the name is x86-64, not x86_64. Handle this properly | Chris Lattner | 2009-08-12 | 1 | -1/+1 | |
| | | | | | | | in getArchTypeForLLVMName. llvm-svn: 78799 | |||||
| * | add support for mingw64 target triples. | Chris Lattner | 2009-08-12 | 1 | -0/+3 | |
| | | | | | llvm-svn: 78797 | |||||
| * | add a couple of helpers to the Triple class for decoding | Chris Lattner | 2009-08-12 | 1 | -0/+65 | |
| | | | | | | | | | the darwin version string. This should help consolidate the variety of weird functions we have scattered around the codebase that do stuff like this. llvm-svn: 78792 | |||||
| * | add a trivial line # cache to SourceMgr to make repeated queries to | Chris Lattner | 2009-08-11 | 1 | -0/+40 | |
| | | | | | | | FindLineNumber much faster when in sequence. llvm-svn: 78693 | |||||
| * | Add support for a user supplied pointer argument to llvm_install_error_handler. | Daniel Dunbar | 2009-08-10 | 1 | -2/+6 | |
| | | | | | llvm-svn: 78553 | |||||

