Revision tags: llvmorg-6.0.1-rc1 |
|
#
1bd40005 |
| 11-Apr-2018 |
Weiming Zhao <wmzhao.code@gmail.com> |
Add missing vtable anchors
Summary: This patch adds anchor() for MemoryBuffer, raw_fd_ostream, RTDyldMemoryManager, SectionMemoryManager, etc.
Reviewers: jlebar, eli.friedman, dblaikie
Reviewed By
Add missing vtable anchors
Summary: This patch adds anchor() for MemoryBuffer, raw_fd_ostream, RTDyldMemoryManager, SectionMemoryManager, etc.
Reviewers: jlebar, eli.friedman, dblaikie
Reviewed By: dblaikie
Subscribers: mehdi_amini, mgorny, dblaikie, weimingz, llvm-commits
Differential Revision: https://reviews.llvm.org/D45244
llvm-svn: 329861
show more ...
|
#
9f03e9de |
| 02-Apr-2018 |
Nico Weber <nicolasweber@gmx.de> |
Remove HAVE_WRITEV that's unused after r255837.
llvm-svn: 328977
|
Revision tags: llvmorg-5.0.2, llvmorg-5.0.2-rc2, llvmorg-5.0.2-rc1, llvmorg-6.0.0, llvmorg-6.0.0-rc3, llvmorg-6.0.0-rc2, llvmorg-6.0.0-rc1, llvmorg-5.0.1, llvmorg-5.0.1-rc3, llvmorg-5.0.1-rc2 |
|
#
412b29e4 |
| 31-Oct-2017 |
Rui Ueyama <ruiu@google.com> |
[Support] Make the default chunk size of raw_fd_ostream to 1 GiB.
Previously, we call write(2) for each 32767 byte chunk. That is not efficient because Linux can handle much larger write requests. T
[Support] Make the default chunk size of raw_fd_ostream to 1 GiB.
Previously, we call write(2) for each 32767 byte chunk. That is not efficient because Linux can handle much larger write requests. This patch changes the chunk size on Linux to 1 GiB.
This patch also changes the default chunks size to SSIZE_MAX. I think that doesn't in practice change this function's behavior on any operating system because SSIZE_MAX on 64-bit machine is unrealistically large, and writing 2 GiB (SSIZE_MAX on 32-bit) on a 32-bit machine by a single call of write(2) is also unrealistic, as the userspace is usually limited to 2 GiB. That said, it is in general a good thing to do because a write larger than SSIZE_MAX is implementation-defined in POSIX.
Differential Revision: https://reviews.llvm.org/D39444
llvm-svn: 317015
show more ...
|
Revision tags: llvmorg-5.0.1-rc1 |
|
#
9ce2d03e |
| 24-Oct-2017 |
Bob Haarman <llvm@inglorion.net> |
[raw_fd_ostream] report actual error in error messages
Summary: Previously, we would emit error messages like "IO failure on output stream". This change causes use to include information about what
[raw_fd_ostream] report actual error in error messages
Summary: Previously, we would emit error messages like "IO failure on output stream". This change causes use to include information about what actually went wrong, e.g. "No space left on device".
Reviewers: sunfish, rnk
Reviewed By: rnk
Subscribers: mehdi_amini, llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D39203
llvm-svn: 316404
show more ...
|
#
3dcd1221 |
| 13-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: support dumping UUIDs of Mach-O binaries.
This is a feature supported by Darwin dwarfdump. UUIDs are used to associate executables with their .dSYM bundles.
llvm-svn: 313165
|
Revision tags: llvmorg-5.0.0, llvmorg-5.0.0-rc5, llvmorg-5.0.0-rc4, llvmorg-5.0.0-rc3, llvmorg-5.0.0-rc2 |
|
#
02aeadcf |
| 04-Aug-2017 |
Reid Kleckner <rnk@google.com> |
[Support] Update comments about stdout, raw_fd_ostream, and outs()
The full story is in the comments:
// Do not attempt to close stdout or stderr. We used to try to maintain the // property tha
[Support] Update comments about stdout, raw_fd_ostream, and outs()
The full story is in the comments:
// Do not attempt to close stdout or stderr. We used to try to maintain the // property that tools that support writing file to stdout should not also // write informational output to stdout, but in practice we were never able to // maintain this invariant. Many features have been added to LLVM and clang // (-fdump-record-layouts, optimization remarks, etc) that print to stdout, so // users must simply be aware that mixed output and remarks is a possibility.
NFC, I am just updating comments to reflect reality.
llvm-svn: 310016
show more ...
|
Revision tags: llvmorg-5.0.0-rc1 |
|
#
5e9d6d0c |
| 13-Jul-2017 |
Frederich Munch <colsebas@hotmail.com> |
Support: Add llvm::center_justify.
Summary: Completes the set.
Reviewers: ruiu
Reviewed By: ruiu
Subscribers: ruiu, llvm-commits
Differential Revision: https://reviews.llvm.org/D35278
llvm-svn:
Support: Add llvm::center_justify.
Summary: Completes the set.
Reviewers: ruiu
Reviewed By: ruiu
Subscribers: ruiu, llvm-commits
Differential Revision: https://reviews.llvm.org/D35278
llvm-svn: 307922
show more ...
|
#
8199dada |
| 20-Jun-2017 |
Saleem Abdulrasool <compnerd@compnerd.org> |
Support: chunk writing on Linux
This is a workaround for large file writes. It has been witnessed that write(2) failing with EINVAL (22) due to a large value (>2G). Thanks to James Knight for the
Support: chunk writing on Linux
This is a workaround for large file writes. It has been witnessed that write(2) failing with EINVAL (22) due to a large value (>2G). Thanks to James Knight for the help with coming up with a sane test case.
llvm-svn: 305846
show more ...
|
Revision tags: llvmorg-4.0.1, llvmorg-4.0.1-rc3, llvmorg-4.0.1-rc2, llvmorg-4.0.1-rc1 |
|
#
80745c52 |
| 31-Mar-2017 |
Yaron Keren <yaron.keren@gmail.com> |
Update comment for r299098 per feedback from James Henderson.
llvm-svn: 299207
|
#
9d27c47b |
| 30-Mar-2017 |
Yaron Keren <yaron.keren@gmail.com> |
Following r297661, disable dup workaround to disable duplicate STDOUT fd closing and instead directly prevent closing of STD* file descriptors.
We do not want to close STDOUT as there may have been
Following r297661, disable dup workaround to disable duplicate STDOUT fd closing and instead directly prevent closing of STD* file descriptors.
We do not want to close STDOUT as there may have been several uses of it such as the case: llc %s -o=- -pass-remarks-output=- -filetype=asm which cause multiple closes of STDOUT_FILENO and/or use-after-close of it. Using dup() in getFD doesn't work as we end up with original STDOUT_FILENO open anyhow.
reviewed by Rafael Espindola
Differential Revision: https://reviews.llvm.org/D31505
llvm-svn: 299098
show more ...
|
#
d31f04b3 |
| 13-Mar-2017 |
Rafael Espindola <rafael.espindola@gmail.com> |
Bring back r297624.
The issues was just a missing REQUIRES in the test.
llvm-svn: 297661
|
#
3978b877 |
| 13-Mar-2017 |
Rafael Espindola <rafael.espindola@gmail.com> |
Revert "Fix crash when multiple raw_fd_ostreams to stdout are created."
This reverts commit r297624. It was failing on the bots.
llvm-svn: 297657
|
#
82d55239 |
| 13-Mar-2017 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix crash when multiple raw_fd_ostreams to stdout are created.
If raw_fd_ostream is constructed with the path of "-", it claims ownership of the stdout file descriptor. This means that it closes std
Fix crash when multiple raw_fd_ostreams to stdout are created.
If raw_fd_ostream is constructed with the path of "-", it claims ownership of the stdout file descriptor. This means that it closes stdout when it is destroyed. If there are multiple users of raw_fd_ostream wrapped around stdout, then a crash can occur because of operations on a closed stream.
An example of this would be running something like "clang -S -o - -MD -MF - test.cpp". Alternatively, using outs() (which creates a local version of raw_fd_stream to stdout) anywhere combined with such a stream usage would cause the crash.
The fix duplicates the stdout file descriptor when used within raw_fd_ostream, so that only that particular descriptor is closed when the stream is destroyed.
Patch by James Henderson!
llvm-svn: 297624
show more ...
|
Revision tags: llvmorg-4.0.0, llvmorg-4.0.0-rc4, llvmorg-4.0.0-rc3, llvmorg-4.0.0-rc2, llvmorg-4.0.0-rc1 |
|
#
8db7e5e4 |
| 09-Dec-2016 |
Peter Collingbourne <peter@pcc.me.uk> |
Re-commit r289184, "Support: Use a 64-bit seek in raw_fd_ostream::seek()." with a configure-time check for lseek64.
llvm-svn: 289187
|
#
f74fcdd3 |
| 09-Dec-2016 |
Peter Collingbourne <peter@pcc.me.uk> |
Revert r289184, we need more configury for Darwin and *BSD.
llvm-svn: 289185
|
#
08ba5092 |
| 09-Dec-2016 |
Peter Collingbourne <peter@pcc.me.uk> |
Support: Use a 64-bit seek in raw_fd_ostream::seek().
llvm-svn: 289184
|
Revision tags: llvmorg-3.9.1, llvmorg-3.9.1-rc3, llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1 |
|
#
11db2642 |
| 11-Nov-2016 |
Zachary Turner <zturner@google.com> |
[Support] Introduce llvm::formatv() function.
This introduces a new type-safe general purpose formatting library. It provides compile-time type safety, does not require a format specifier (since th
[Support] Introduce llvm::formatv() function.
This introduces a new type-safe general purpose formatting library. It provides compile-time type safety, does not require a format specifier (since the type is deduced), and provides mechanisms for extending the format capability to user defined types, and overriding the formatting behavior for existing types.
This patch additionally adds documentation for the API to the LLVM programmer's manual.
Mailing List Thread: http://lists.llvm.org/pipermail/llvm-dev/2016-October/105836.html
Differential Revision: https://reviews.llvm.org/D25587
llvm-svn: 286682
show more ...
|
#
805d43a0 |
| 10-Nov-2016 |
Zachary Turner <zturner@google.com> |
Fix type ambiguity with std::max
llvm-svn: 286498
|
#
4a86af07 |
| 10-Nov-2016 |
Zachary Turner <zturner@google.com> |
[Support] Improve flexibility of binary blob formatter.
This makes it possible to indent a binary blob by a certain number of bytes, and also makes some things more idiomatic. Finally, it integrates
[Support] Improve flexibility of binary blob formatter.
This makes it possible to indent a binary blob by a certain number of bytes, and also makes some things more idiomatic. Finally, it integrates this binary blob formatter into ScopedPrinter which used to have its own implementation of this algorithm.
Differential Revision: https://reviews.llvm.org/D26477
llvm-svn: 286495
show more ...
|
#
bde0a163 |
| 09-Nov-2016 |
Greg Clayton <gclayton@apple.com> |
Added the ability to dump hex bytes easily into a raw_ostream.
Unit tests were added to verify this functionality keeps working correctly.
Example output for raw hex bytes: llvm::ArrayRef<uint8_t>
Added the ability to dump hex bytes easily into a raw_ostream.
Unit tests were added to verify this functionality keeps working correctly.
Example output for raw hex bytes: llvm::ArrayRef<uint8_t> Bytes = ...; llvm::outs() << format_hex_bytes(Bytes); 554889e5 4881ec70 04000048 8d051002 00004c8d 05fd0100 004c8b0d d0020000
Example output for raw hex bytes with offsets: llvm::outs() << format_hex_bytes(Bytes, 0x100000d10); 0x0000000100000d10: 554889e5 4881ec70 04000048 8d051002 0x0000000100000d20: 00004c8d 05fd0100 004c8b0d d0020000
Example output for raw hex bytes with ASCII with offsets: llvm::outs() << format_hex_bytes_with_ascii(Bytes, 0x100000d10); 0x0000000100000d10: 554889e5 4881ec70 04000048 8d051002 |UH.?H.?p...H....| 0x0000000100000d20: 00004c8d 05fd0100 004c8b0d d0020000 |..L..?...L..?...|
The default groups bytes into 4 byte groups, but this can be changed to 1 byte: llvm::outs() << format_hex_bytes(Bytes, 0x100000d10, 16 /*NumPerLine*/, 1 /*ByteGroupSize*/); 0x0000000100000d10: 55 48 89 e5 48 81 ec 70 04 00 00 48 8d 05 10 02 0x0000000100000d20: 00 00 4c 8d 05 fd 01 00 00 4c 8b 0d d0 02 00 00
llvm::outs() << format_hex_bytes(Bytes, 0x100000d10, 16 /*NumPerLine*/, 2 /*ByteGroupSize*/); 0x0000000100000d10: 5548 89e5 4881 ec70 0400 0048 8d05 1002 0x0000000100000d20: 0000 4c8d 05fd 0100 004c 8b0d d002 0000
llvm::outs() << format_hex_bytes(Bytes, 0x100000d10, 8 /*NumPerLine*/, 1 /*ByteGroupSize*/); 0x0000000100000d10: 55 48 89 e5 48 81 ec 70 0x0000000100000d18: 04 00 00 48 8d 05 10 02 0x0000000100000d20: 00 00 4c 8d 05 fd 01 00 0x0000000100000d28: 00 4c 8b 0d d0 02 00 00
https://reviews.llvm.org/D26405
llvm-svn: 286316
show more ...
|
#
5b2243e8 |
| 29-Oct-2016 |
Zachary Turner <zturner@google.com> |
Resubmit "Add support for advanced number formatting."
This resubmits r284436 and r284437, which were reverted in r284462 as they were breaking the AArch64 buildbot.
The breakage on AArch64 turned
Resubmit "Add support for advanced number formatting."
This resubmits r284436 and r284437, which were reverted in r284462 as they were breaking the AArch64 buildbot.
The breakage on AArch64 turned out to be a miscompile which is still not fixed, but is actively tracked at llvm.org/pr30748.
This resubmission re-writes the code in a way so as to make the miscompile not happen.
llvm-svn: 285483
show more ...
|
#
9ce5074d |
| 18-Oct-2016 |
Renato Golin <renato.golin@linaro.org> |
Revert "Resubmit "Add support for advanced number formatting.""
This reverts commits 284436 and 284437 because they still break AArch64 bots:
Value of: format_number(-10, IntegerStyle::Integer, 1)
Revert "Resubmit "Add support for advanced number formatting.""
This reverts commits 284436 and 284437 because they still break AArch64 bots:
Value of: format_number(-10, IntegerStyle::Integer, 1) Actual: "-0" Expected: "-10"
llvm-svn: 284462
show more ...
|
#
0d31d9c0 |
| 17-Oct-2016 |
Zachary Turner <zturner@google.com> |
Rename HexStyle -> HexFormatStyle, and remove a constexpr.
This should fix the remaining broken builds.
llvm-svn: 284437
|
#
7cd0745c |
| 17-Oct-2016 |
Zachary Turner <zturner@google.com> |
Resubmit "Add support for advanced number formatting."
This resubmits commits 284425 and r284428, which were reverted in r284429 due to some infinite recursion caused by an incorrect selection of fu
Resubmit "Add support for advanced number formatting."
This resubmits commits 284425 and r284428, which were reverted in r284429 due to some infinite recursion caused by an incorrect selection of function overloads. Reproduced the failure on Linux using GCC 4.8.4, and confirmed that with the new patch the tests path on GCC as well as MSVC. So hopefully this fixes everything.
llvm-svn: 284436
show more ...
|
#
9d58e362 |
| 17-Oct-2016 |
Zachary Turner <zturner@google.com> |
Revert formatting changes.
This reverts r288425 and r284428 as they are causing test crashes on some systems.
llvm-svn: 284429
|