#
99eef2d7 |
| 17-Oct-2016 |
Zachary Turner <zturner@google.com> |
[Support] Add support for "advanced" number formatting.
raw_ostream has not afforded a lot of flexibility in terms of how to format numbers when outputting. Wrap this all up into a set of low level
[Support] Add support for "advanced" number formatting.
raw_ostream has not afforded a lot of flexibility in terms of how to format numbers when outputting. Wrap this all up into a set of low level helper functions that can be used to output numbers with arbitrary precision, alignment, format, etc and then update raw_ostream to use these functions.
This will be useful for upcoming improvements to llvm's string formatting libraries, but are still useful independently.
Differential Revision: https://reviews.llvm.org/D25497
llvm-svn: 284425
show more ...
|
#
733be51d |
| 11-Oct-2016 |
Zachary Turner <zturner@google.com> |
[raw_ostream] Raise some helper functions out of raw_ostream.
Low level functionality to format numbers were embedded in the implementation of raw_ostream. I have need to use these through an inter
[raw_ostream] Raise some helper functions out of raw_ostream.
Low level functionality to format numbers were embedded in the implementation of raw_ostream. I have need to use these through an interface other than the overloaded stream operators, so they need to be raised to a level that they can be used from either raw_ostream operators or other code.
llvm-svn: 283921
show more ...
|
Revision tags: llvmorg-3.9.0, llvmorg-3.9.0-rc3 |
|
#
33d7b762 |
| 23-Aug-2016 |
Eugene Zelenko <eugene.zelenko@gmail.com> |
Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes.
Differential revision: https://reviews.llvm.org/D23789
llvm-svn: 279535
|
Revision tags: llvmorg-3.9.0-rc2 |
|
#
cd1d5aaf |
| 17-Aug-2016 |
Justin Bogner <mail@justinbogner.com> |
Replace a few more "fall through" comments with LLVM_FALLTHROUGH
Follow up to r278902. I had missed "fall through", with a space.
llvm-svn: 278970
|
Revision tags: llvmorg-3.9.0-rc1, llvmorg-3.8.1, llvmorg-3.8.1-rc1 |
|
#
29f5131d |
| 28-Mar-2016 |
Hal Finkel <hfinkel@anl.gov> |
C++11 is required, remove some preprocessor checks for it
We require C++11 to build, so remove a few remaining preprocessor checks for '__cplusplus >= 201103L'. This should always be true.
llvm-svn
C++11 is required, remove some preprocessor checks for it
We require C++11 to build, so remove a few remaining preprocessor checks for '__cplusplus >= 201103L'. This should always be true.
llvm-svn: 264572
show more ...
|
Revision tags: llvmorg-3.8.0, llvmorg-3.8.0-rc3 |
|
#
7cf7f80c |
| 23-Feb-2016 |
Yaron Keren <yaron.keren@gmail.com> |
Assert when trying to seek un-seekable raw_fd_ostream.
llvm-svn: 261614
|
#
c75d566f |
| 19-Feb-2016 |
Justin Lebar <jlebar@google.com> |
When printing MIR, output to errs() rather than outs().
Summary: Without this, this command
$ llvm-run llc -stop-after machine-cp -o - <( echo '' )
outputs an error, because we close stdout twic
When printing MIR, output to errs() rather than outs().
Summary: Without this, this command
$ llvm-run llc -stop-after machine-cp -o - <( echo '' )
outputs an error, because we close stdout twice -- once when closing the file opened for "-o", and again when closing outs().
Also clarify in the outs() definition that you can't ever call it if you want to open your own raw_fd_ostream on stdout.
Reviewers: jroelofs, tstellarAMD
Subscribers: jholewinski, qcolombet, dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D17422
llvm-svn: 261286
show more ...
|
#
52fa32de |
| 08-Feb-2016 |
Craig Topper <craig.topper@gmail.com> |
[Support] Use hexdigit. NFC
llvm-svn: 260068
|
#
775fb73d |
| 04-Feb-2016 |
Craig Topper <craig.topper@gmail.com> |
[Support] Use range-based for loop. NFC
llvm-svn: 259763
|
#
d08f32f6 |
| 04-Feb-2016 |
Craig Topper <craig.topper@gmail.com> |
[Support] Use hexdigit instead of manually coding the same thing. NFC
llvm-svn: 259762
|
Revision tags: llvmorg-3.8.0-rc2 |
|
#
ca919dc3 |
| 31-Jan-2016 |
Craig Topper <craig.topper@gmail.com> |
Shrink character buffer size in raw_ostream::write_hex to 16 characters intead of 20 as that's the largest string a 64-bit hex value can be.
llvm-svn: 259313
|
#
ab3d2ace |
| 31-Jan-2016 |
Craig Topper <craig.topper@gmail.com> |
Use std::end instead of repeating buffer sizes.
llvm-svn: 259312
|
Revision tags: llvmorg-3.8.0-rc1 |
|
#
5fb7a586 |
| 11-Jan-2016 |
Reid Kleckner <rnk@google.com> |
Avoid the deprecated GetVersionEx API
Apparently the preferred version is the incredibly complicated VerifyVersionInfoW function.
Rename the function to avoid potential future name clashes.
llvm-s
Avoid the deprecated GetVersionEx API
Apparently the preferred version is the incredibly complicated VerifyVersionInfoW function.
Rename the function to avoid potential future name clashes.
llvm-svn: 257415
show more ...
|
#
fb2a9c42 |
| 06-Jan-2016 |
Yunzhong Gao <Yunzhong_Gao@playstation.sony.com> |
Fixing PR25717: fatal IO error writing large outputs to console on Windows.
This patch is similar to the Python issue#11395. We need to cap the output size to 32767 on Windows to work around the siz
Fixing PR25717: fatal IO error writing large outputs to console on Windows.
This patch is similar to the Python issue#11395. We need to cap the output size to 32767 on Windows to work around the size limit of WriteConsole(). Reference: https://bugs.python.org/issue11395
Writing a test for this bug turns out to be harder than I thought. I am still working on it (see phabricator review D15705).
Differential Revision: http://reviews.llvm.org/D15553
llvm-svn: 256892
show more ...
|
#
3f210fc0 |
| 16-Dec-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Drop an unnecessary use of writev.
It looks like the code this patch deletes is based on a misunderstanding of what guarantees writev provides. In particular, writev with 1 iovec is not "more atomic
Drop an unnecessary use of writev.
It looks like the code this patch deletes is based on a misunderstanding of what guarantees writev provides. In particular, writev with 1 iovec is not "more atomic" than a write.
Testing on OS X shows that both write and writev from multiple processes can be intermixed.
llvm-svn: 255837
show more ...
|
#
149b859c |
| 03-Dec-2015 |
Matthias Braun <matze@braunis.de> |
Revert "raw_ostream: << operator for callables with raw_stream argument"
This commit provoked "error C2593: 'operator <<' is ambiguous" on MSVC.
This reverts commit r254655.
llvm-svn: 254661
|
#
e957a9bb |
| 03-Dec-2015 |
Matthias Braun <matze@braunis.de> |
raw_ostream: << operator for callables with raw_stream argument
This allows easier construction of print helpers. Example:
Printable PrintLaneMask(unsigned LaneMask) { return Printable([LaneMask]
raw_ostream: << operator for callables with raw_stream argument
This allows easier construction of print helpers. Example:
Printable PrintLaneMask(unsigned LaneMask) { return Printable([LaneMask](raw_ostream &OS) { OS << format("%08X", LaneMask); }); }
// Usage: OS << PrintLaneMask(Mask);
Differential Revision: http://reviews.llvm.org/D14348
llvm-svn: 254655
show more ...
|
Revision tags: llvmorg-3.7.1, llvmorg-3.7.1-rc2, llvmorg-3.7.1-rc1, llvmorg-3.7.0, llvmorg-3.7.0-rc4, llvmorg-3.7.0-rc3, studio-1.4 |
|
#
e2f6fb5d |
| 13-Aug-2015 |
Nick Lewycky <nicholas@mxc.ca> |
Fix GCC warning: extra `;' [-Wpedantic].
llvm-svn: 244924
|
#
3d1173ba |
| 13-Aug-2015 |
Yaron Keren <yaron.keren@gmail.com> |
Modify raw_svector_ostream to use its SmallString without additional buffering. This is faster and avoids the stream and SmallString state synchronization issue. resync() is a no-op and may be safely
Modify raw_svector_ostream to use its SmallString without additional buffering. This is faster and avoids the stream and SmallString state synchronization issue. resync() is a no-op and may be safely deleted. I'll do so in a follow-up commit.
Reviewed by Rafael Espindola.
llvm-svn: 244870
show more ...
|
Revision tags: llvmorg-3.7.0-rc2, llvmorg-3.7.0-rc1, llvmorg-3.6.2, llvmorg-3.6.2-rc1 |
|
#
974ed6d3 |
| 30-May-2015 |
Craig Topper <craig.topper@gmail.com> |
Fix indentation. NFC.
llvm-svn: 238647
|
Revision tags: llvmorg-3.6.1, llvmorg-3.6.1-rc1 |
|
#
4ba9af11 |
| 20-Apr-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't allow pwrite to resize a stream.
The current implementations could exhibit some behavior differences:
raw_fd_ostream: Whatever the underlying fd does with seek+write. In a normal file, the wr
Don't allow pwrite to resize a stream.
The current implementations could exhibit some behavior differences:
raw_fd_ostream: Whatever the underlying fd does with seek+write. In a normal file, the write position would be back to the old offset.
raw_svector_ostream: The write position is always the end of the stream, so after pwrite the write position would be the new end. This matches what OS_X (all BSD?) do with a pwrite in a O_APPEND fd.
Given that we don't need that feature and don't use O_APPEND a lot in LLVM, just disallow it.
I am open to suggestions on renaming pwrite to something else, but this fixes the issue for now.
Thanks to Yaron Keren for reporting it.
llvm-svn: 235303
show more ...
|
#
642a2216 |
| 14-Apr-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use the ability to pwrite to simplify the ELF writer.
Now we don't have to do 2 synchronized passes to compute offsets and then write the file.
This also includes a fix for the corner case of seeki
Use the ability to pwrite to simplify the ELF writer.
Now we don't have to do 2 synchronized passes to compute offsets and then write the file.
This also includes a fix for the corner case of seeking in /dev/null. It is not an error, but on some systems (Linux) the returned offset is always 0. An error is signaled by returning -1. This is checked by the existing tests now that "clang -o /dev/null ..." seeks.
llvm-svn: 234952
show more ...
|
#
37b70159 |
| 14-Apr-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add raw_pwrite_stream type.
This is a raw_ostream that also supports pwrite. I will be used in a sec.
llvm-svn: 234895
|
#
a9b84abb |
| 13-Apr-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix SupportsSeeking detection on windows.
Will be tested by existing tests once used (soon).
llvm-svn: 234737
|
#
79be4cc6 |
| 13-Apr-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add r234615 back, but make sure outs() is binary.
Original message.
Have one raw_fd_ostream constructor forward to the other.
This fixes some odd behaviour differences between the two. In particul
Add r234615 back, but make sure outs() is binary.
Original message.
Have one raw_fd_ostream constructor forward to the other.
This fixes some odd behaviour differences between the two. In particular, the version that takes a FD no longer unconditionally sets stdout to binary.
llvm-svn: 234734
show more ...
|