Skip to content

Commit d3f1f58

Browse files
committed
[Docs] Add/update release notes for D71913 (LTO WPD changes)
This adds documentation for the options added / changed by D71913, which enabled aggressive WPD under LTO. The lld release notes already mentioned it, but I expanded the note. Differential Revision: https://reviews.llvm.org/D86958
1 parent 22dab21 commit d3f1f58

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ Modified Compiler Flags
306306
- -mcpu is now supported for RISC-V, and recognises the generic-rv32,
307307
rocket-rv32, sifive-e31, generic-rv64, rocket-rv64, and sifive-u54 target
308308
CPUs.
309-
309+
- ``-fwhole-program-vtables`` (along with ``-flto*``) now prepares all classes for possible whole program visibility if specified during the LTO link.
310+
(`D71913 <https://reviews.llvm.org/D71913>`_)
310311

311312
New Pragmas in Clang
312313
--------------------

lld/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ELF Improvements
2626

2727
* ``--lto-emit-asm`` is added to emit assembly output for debugging purposes.
2828
(`D77231 <https://reviews.llvm.org/D77231>`_)
29-
* ``--lto-whole-program-visibility`` is added to support LTO whole-program devirtualization.
29+
* ``--lto-whole-program-visibility`` is added to specify that classes have hidden LTO visibility in LTO and ThinLTO links of source files compiled with ``-fwhole-program-vtables``. See `LTOVisibility <https://clang.llvm.org/docs/LTOVisibility.html>`_ for details.
3030
(`D71913 <https://reviews.llvm.org/D71913>`_)
3131
* ``--print-archive-stats=`` is added to print the number of members and the number of fetched members for each archive.
3232
The feature is similar to GNU gold's ``--print-symbol-counts=``.

llvm/docs/ReleaseNotes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,12 @@ Changes to the Debug Info
333333
passed to the callee. The feature improves the debugging user experience when
334334
debugging optimized code.
335335

336+
Changes to the Gold Plugin
337+
--------------------------
338+
339+
* ``--plugin-opt=whole-program-visibility`` is added to specify that classes have hidden LTO visibility in LTO and ThinLTO links of source files compiled with ``-fwhole-program-vtables``. See `LTOVisibility <https://clang.llvm.org/docs/LTOVisibility.html>`_ for details.
340+
(`D71913 <https://reviews.llvm.org/D71913>`_)
341+
336342
Changes to the LLVM tools
337343
---------------------------------
338344

0 commit comments

Comments
 (0)