|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| 
| 
| | under a single branch.
Also, add a FIXME for formatted output.
llvm-svn: 67069 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - 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 | 
| | 
| 
| 
| 
| 
| | it is easy.
llvm-svn: 67054 | 
| | 
| 
| 
| 
| 
| | single characters writes outside of the fast path in raw_ostream.h
llvm-svn: 67053 | 
| | 
| 
| 
| 
| 
| 
| | - Add unbuffered flag to raw_ostream, forwarded by raw_fd_ostream and
   used by raw_stderr_ostream.
llvm-svn: 66545 | 
| | 
| 
| 
| | llvm-svn: 63044 | 
| | 
| 
| 
| 
| 
| | faster by not requiring a flush().
llvm-svn: 60560 | 
| | 
| 
| 
| 
| 
| | current location in the file the stream is writing to.
llvm-svn: 60085 | 
| | 
| 
| 
| 
| 
| | Document raw_fd_ostream's treatment of "-".
llvm-svn: 59219 | 
| | 
| 
| 
| 
| 
| | Thanks to Török Edwin for the awesome reduced testcase.
llvm-svn: 58199 | 
| | 
| 
| 
| | llvm-svn: 58052 | 
| | 
| 
| 
| 
| 
| 
| 
| | documentation.
Add C++ header marker.
llvm-svn: 57923 | 
| | 
| 
| 
| 
| 
| | Adding one include file and correct one declaration from class to struct in order to make llvm compile on VC2005.
llvm-svn: 55279 | 
| | 
| 
| 
| 
| 
| | SmallVector/SmallString.
llvm-svn: 55265 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| | llvm-svn: 55252 | 
| | 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| | Patch contributed by Bjorn Reese!
llvm-svn: 55179 | 
| | 
| 
| 
| 
| 
| 
| 
| | broke various ObjC testcases
with very long symbol names.
llvm-svn: 55148 | 
| | 
| 
| 
| | llvm-svn: 55138 | 
| | 
| 
| 
| | llvm-svn: 55092 | 
| | 
| 
| 
| | llvm-svn: 54879 | 
| | 
| 
| 
| 
| 
| 
| | a simple adaptor class to give raw output capabilities to 
something that wants to write to an ostream.
llvm-svn: 54865 | 
| | 
| 
| 
| | llvm-svn: 54863 | 
| | 
| 
| 
| | llvm-svn: 54857 | 
|  | can *only* output data (no seeking, reading, etc).  This is adapted from the
clang "-E outputter", and is roughly 10% faster than stdio on darwin and 30%
(or more) faster than std::ostream.
llvm-svn: 54855 |