#
c97b778b |
| 10-Jul-2009 |
David Greene <greened@obbligato.org> |
Make changes suggested by Chris and eliminate newly-added raw_ostream hooks as they're no longer needed.
The major change with this patch is to make formatted_raw_ostream usable by any client of raw
Make changes suggested by Chris and eliminate newly-added raw_ostream hooks as they're no longer needed.
The major change with this patch is to make formatted_raw_ostream usable by any client of raw_ostream.
llvm-svn: 75283
show more ...
|
#
ab11a81f |
| 09-Jul-2009 |
David Greene <greened@obbligato.org> |
Add some hooks that a redesigned AsmStream needs to do its job. These allow derived classes to examine the stream buffer before it's flushed.
llvm-svn: 75199
|
#
9b5a47fc |
| 04-Jun-2009 |
Torok Edwin <edwintorok@gmail.com> |
Add support for outputting ANSI colors to raw_fd_ostream.
llvm-svn: 72854
|
#
b231e579 |
| 20-Apr-2009 |
Douglas Gregor <dgregor@apple.com> |
Make all raw_ostreams support the tell() function.
llvm-svn: 69583
|
#
437b8a5c |
| 17-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add BUILTIN_EXPECT Support/Compiler macro. - Use for exceptional buffer conditions in raw_ostream:write to shave off a cycle or two.
- Please rename if you have a better one.
llvm-svn: 67103
|
#
64fa3860 |
| 17-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
raw_ostream: Put all exceptional conditions in raw_ostream::write under a single branch.
Also, add a FIXME for formatted output.
llvm-svn: 67069
|
#
2d603dae |
| 17-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
raw_ostream: Rework implementation of unbuffered streams so outputting a single character requires only one branch to follow slow path. - Never use a buffer when writing on an unbuffered stream.
-
raw_ostream: Rework implementation of unbuffered streams so outputting a single character requires only one branch to follow slow path. - Never use a buffer when writing on an unbuffered stream.
- Move default buffer size to header.
llvm-svn: 67066
show more ...
|
#
db7a36cd |
| 16-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
raw_ostream: Replace flush_impl with write_impl, which takes data to write as arguments. - Add raw_ostream::GetNumBytesInBuffer. - Privatize buffer pointers. - Get rid of slow and unnecessary code
raw_ostream: Replace flush_impl with write_impl, which takes data to write as arguments. - Add raw_ostream::GetNumBytesInBuffer. - Privatize buffer pointers. - Get rid of slow and unnecessary code for writing out large strings.
llvm-svn: 67060
show more ...
|
#
d24535fe |
| 16-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
raw_ostream: Lift out flush_nonempty. - Flush a known non-empty buffers; enforces the interface to flush_impl and kills off HandleFlush (which I saw no reason to be an inline method, Chris?).
raw_ostream: Lift out flush_nonempty. - Flush a known non-empty buffers; enforces the interface to flush_impl and kills off HandleFlush (which I saw no reason to be an inline method, Chris?).
- Clarify invariant that flush_impl is only called with OutBufCur > OutBufStart.
- This also cleary collects all places where we have to deal with the buffer possibly not existing.
- A few more comments and fixing the unbuffered behavior remain in this commit sequence.
llvm-svn: 67057
show more ...
|
#
8786218b |
| 16-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Make raw_ostream::operator<<(const void *) fast; it doesn't matter but it is easy.
llvm-svn: 67054
|
#
7a9bb9ee |
| 16-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add slow path for single character write, and use exclusively for single characters writes outside of the fast path in raw_ostream.h
llvm-svn: 67053
|
#
3da6a707 |
| 10-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
PR3478: raw_ostream should not buffer stderr - Add unbuffered flag to raw_ostream, forwarded by raw_fd_ostream and used by raw_stderr_ostream.
llvm-svn: 66545
|
Revision tags: llvmorg-2.5.0 |
|
#
a2669921 |
| 26-Jan-2009 |
Ted Kremenek <kremenek@apple.com> |
Add method raw_fd_ostream::seek() for random access within a file.
llvm-svn: 63044
|
#
123a35a8 |
| 04-Dec-2008 |
Ted Kremenek <kremenek@apple.com> |
Have raw_fd_ostream keep track of the position in the file to make tell() go faster by not requiring a flush().
llvm-svn: 60560
|
#
e076257b |
| 26-Nov-2008 |
Ted Kremenek <kremenek@apple.com> |
Add 'tell' method to raw_fd_ostream that clients can use to query the current location in the file the stream is writing to.
llvm-svn: 60085
|
#
ed90e701 |
| 13-Nov-2008 |
Daniel Dunbar <daniel@zuster.org> |
Add Binary flag to raw_fd_ostream constructor.
Document raw_fd_ostream's treatment of "-".
llvm-svn: 59219
|
Revision tags: llvmorg-2.4.0 |
|
#
2bfc72e6 |
| 26-Oct-2008 |
Chris Lattner <sabre@nondot.org> |
fix PR2953, an off-by-one error handling formatted i/o. Thanks to Török Edwin for the awesome reduced testcase.
llvm-svn: 58199
|
#
3c6de496 |
| 23-Oct-2008 |
Ted Kremenek <kremenek@apple.com> |
Added raw_fd_ostream::close().
llvm-svn: 58052
|
#
1ca20df4 |
| 21-Oct-2008 |
Daniel Dunbar <daniel@zuster.org> |
Clear raw_fd_ostream error string on success and explain behavior in documentation.
Add C++ header marker.
llvm-svn: 57923
|
#
0f7b5666 |
| 24-Aug-2008 |
Cedric Venet <cedric.venet@laposte.net> |
Updating VC++ project. Adding one include file and correct one declaration from class to struct in order to make llvm compile on VC2005.
llvm-svn: 55279
|
#
205af964 |
| 23-Aug-2008 |
Chris Lattner <sabre@nondot.org> |
Add raw_stream adaptors that write into an std::string and SmallVector/SmallString.
llvm-svn: 55265
|
#
0c19df48 |
| 23-Aug-2008 |
Chris Lattner <sabre@nondot.org> |
Switch the asmprinter (.ll) and all the stuff it requires over to use raw_ostream instead of std::ostream. Among other goodness, this speeds up llvm-dis of kc++ with a release build from 0.85s to 0.
Switch the asmprinter (.ll) and all the stuff it requires over to use raw_ostream instead of std::ostream. Among other goodness, this speeds up llvm-dis of kc++ with a release build from 0.85s to 0.49s (88% faster).
Other interesting changes: 1) This makes Value::print be non-virtual. 2) AP[S]Int and ConstantRange can no longer print to ostream directly, use raw_ostream instead. 3) This fixes a bug in raw_os_ostream where it didn't flush itself when destroyed. 4) This adds a new SDNode::print method, instead of only allowing "dump".
A lot of APIs have both std::ostream and raw_ostream versions, it would be useful to go through and systematically anihilate the std::ostream versions.
This passes dejagnu, but there may be minor fallout, plz let me know if so and I'll fix it.
llvm-svn: 55263
show more ...
|
#
da429649 |
| 23-Aug-2008 |
Chris Lattner <sabre@nondot.org> |
add #include
llvm-svn: 55252
|
#
22b52c98 |
| 23-Aug-2008 |
Chris Lattner <sabre@nondot.org> |
add a simple mechanism for formatted output. This gives raw_ostream's all the power and risk of fprintf format strings. Use them like this:
OS << format("%10.4f", 42.0) << "\n" << format("%x",
add a simple mechanism for formatted output. This gives raw_ostream's all the power and risk of fprintf format strings. Use them like this:
OS << format("%10.4f", 42.0) << "\n" << format("%x", 42) << '\n';
llvm-svn: 55246
show more ...
|
#
d564f299 |
| 22-Aug-2008 |
Chris Lattner <sabre@nondot.org> |
improve support for systems that need unistd.h to get STDOUT_FILENO. Patch contributed by Bjorn Reese!
llvm-svn: 55179
|