1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test
Fangrui Song bc783ac6a6 [InstrProfiling] Delete linkage/visibility toggling for Windows
The linkage/visibility of `__profn_*` variables are derived
from the profiled functions.

    extern_weak => linkonce
    available_externally => linkonce_odr
    internal => private
    extern => private
    _ => unchanged

The linkage/visibility of `__profc_*`/`__profd_*` variables are derived from
`__profn_*` with linkage/visibility wrestling for Windows.

The changes can be folded to the following without changing semantics.

```
if (TT.isOSBinFormatCOFF() && !NeedComdat) {
  Linkage = GlobalValue::InternalLinkage;
  Visibility = GlobalValue::DefaultVisibility;
}
```

That said, I think we can just delete the code block.

An extern/internal function will now use private `__profc_*`/`__profd_*`
variables, instead of internal ones. This saves some symbol table entries.

A non-comdat {linkonce,weak}_odr function will now use hidden external
`__profc_*`/`__profd_*` variables instead of internal ones.  There is potential
object file size increase because such symbols need `/INCLUDE:` directives.
However such non-comdat functions are rare (note that non-comdat weak
definitions don't prevent duplicate definition error).

The behavior changes match ELF.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D103355
2021-06-02 16:49:54 -07:00
..
Analysis Add getDemandedBits for uses. 2021-06-02 10:07:40 -04:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen [PowerPC] [GlobalISel] Implementation of formal arguments lowering in the IRTranslator for the PPC backend 2021-06-02 16:46:39 -06:00
DebugInfo Resubmit D85085 after fixing the tests that were failing. 2021-06-01 21:59:47 -07:00
Demangle [Demangle][Rust] Parse binders 2021-06-02 10:36:45 +02:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [InstrProfiling] Delete linkage/visibility toggling for Windows 2021-06-02 16:49:54 -07:00
Integer
JitListener
Linker
LTO
MachineVerifier
MC [MC] Change "unexpected tokens" to "expected newline" and remove unneeded "in .xxx directive" 2021-06-02 16:08:05 -07:00
Object
ObjectYAML
Other [test] Properly match parameter/argument ABI attributes 2021-05-31 09:12:18 -07:00
SafepointIRVerifier
Support
SymbolRewriter
TableGen
ThinLTO/X86
tools [llvm-dwp] Add support for rnglists and loclists 2021-06-02 12:31:35 -07:00
Transforms [coro] Preserve scope line for compiler generated functions 2021-06-02 15:57:12 -07:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh