1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/lib/Transforms
Fangrui Song b3b970744d [ThinLTO] Add Visibility bits to GlobalValueSummary::GVFlags
Imported functions and variable get the visibility from the module supplying the
definition.  However, non-imported definitions do not get the visibility from
(ELF) the most constraining visibility among all modules (Mach-O) the visibility
of the prevailing definition.

This patch

* adds visibility bits to GlobalValueSummary::GVFlags
* computes the result visibility and propagates it to all definitions

Protected/hidden can imply dso_local which can enable some optimizations (this
is stronger than GVFlags::DSOLocal because the implied dso_local can be
leveraged for ELF -shared while default visibility dso_local has to be cleared
for ELF -shared).

Note: we don't have summaries for declarations, so for ELF if a declaration has
the most constraining visibility, the result visibility may not be that one.

Differential Revision: https://reviews.llvm.org/D92900
2021-01-27 10:43:51 -08:00
..
AggressiveInstCombine [Transforms] Use llvm::append_range (NFC) 2021-01-20 21:35:54 -08:00
CFGuard llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Coroutines Salvage debug info for function arguments in coro-split funclets. 2021-01-26 15:01:26 -08:00
Hello
HelloNew llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InstCombine [InstCombine] Preserve FMF for powi simplifications. 2021-01-26 13:26:06 -08:00
Instrumentation Support for instrumenting only selected files or functions 2021-01-26 17:13:34 -08:00
IPO [ThinLTO] Add Visibility bits to GlobalValueSummary::GVFlags 2021-01-27 10:43:51 -08:00
ObjCARC Revert "[ObjC][ARC] Annotate calls with attributes instead of emitting retainRV" 2021-01-25 13:53:38 -08:00
Scalar [LoopUnswitch] Avoid partially unswitching too aggressively. 2021-01-26 15:18:41 +00:00
Utils [LoopUtils] Pass SCEVExpander instead SE to addRuntimeChecks. 2021-01-27 17:36:19 +00:00
Vectorize [LoopUtils] Pass SCEVExpander instead SE to addRuntimeChecks. 2021-01-27 17:36:19 +00:00
CMakeLists.txt