aboutsummaryrefslogtreecommitdiff
path: root/.arcconfig
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2019-12-26 08:32:42 -0800
committerTeresa Johnson <tejohnson@google.com>2020-01-23 11:36:01 -0800
commit458676db6e41e3942a3b9498f6ba90e956897c2a (patch)
tree5a603b441c498dc3f6e3fda4f316c8a858581010 /.arcconfig
parent6770de9b8d931001e33d2f02ab56a37c35b078e5 (diff)
downloadllvm-458676db6e41e3942a3b9498f6ba90e956897c2a.zip
llvm-458676db6e41e3942a3b9498f6ba90e956897c2a.tar.gz
llvm-458676db6e41e3942a3b9498f6ba90e956897c2a.tar.bz2
[WPD/VFE] Always emit vcall_visibility metadata for -fwhole-program-vtables
Summary: First patch to support Safe Whole Program Devirtualization Enablement, see RFC here: http://lists.llvm.org/pipermail/llvm-dev/2019-December/137543.html Always emit !vcall_visibility metadata under -fwhole-program-vtables, and not just for -fvirtual-function-elimination. The vcall visibility metadata will (in a subsequent patch) be used to communicate to WPD which vtables are safe to devirtualize, and we will optionally convert the metadata to hidden visibility at link time. Subsequent follow on patches will help enable this by adding vcall_visibility metadata to the ThinLTO summaries, and always emit type test intrinsics under -fwhole-program-vtables (and not just for vtables with hidden visibility). In order to do this safely with VFE, since for VFE all vtable loads must be type checked loads which will no longer be the case, this patch adds a new "Virtual Function Elim" module flag to communicate to GlobalDCE whether to perform VFE using the vcall_visibility metadata. One additional advantage of using the vcall_visibility metadata to drive more WPD at LTO link time is that we can use the same mechanism to enable more aggressive VFE at LTO link time as well. The link time option proposed in the RFC will convert vcall_visibility metadata to hidden (aka linkage unit visibility), which combined with -fvirtual-function-elimination will allow it to be done more aggressively at LTO link time under the same conditions. Reviewers: pcc, ostannard, evgeny777, steven_wu Subscribers: mehdi_amini, Prazek, hiraditya, dexonsmith, davidxl, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D71907
Diffstat (limited to '.arcconfig')
0 files changed, 0 insertions, 0 deletions