llvm-capstone/compiler-rt/test
Fangrui Song 87c43f3aa9 [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
..
asan [compiler-rt][asan] Enable unwind-tables for Arm Linux 2021-06-02 12:59:46 +00:00
BlocksRuntime Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
builtins [Compiler-rt] Distinguish between testing just built runtime libraries and the libraries shipped with the compiler. 2021-05-14 18:07:34 -07:00
cfi [compiler-rt] -fsanitize=cfi is not supported on Darwin 2021-03-17 13:28:42 -07:00
crt [CMake] Rename RUNTIMES_BUILD to LLVM_RUNTIMES_BUILD 2021-03-03 10:58:51 -08:00
dfsan [dfsan] Add a flag about whether to propagate offset labels at gep 2021-05-28 00:06:19 +00:00
fuzzer Revert "Refactor mutation strategies into a standalone library" 2021-05-26 15:16:43 -07:00
gwp_asan [GWP-ASan] Migrate lit tests from old Scudo -> Standalone. 2021-05-14 10:41:48 -07:00
hwasan [HWASan] Add aliasing flag and enable HWASan to use it. 2021-05-14 09:47:20 -07:00
interception [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
lsan [compiler-rt][lsan] Increase libdl_deadlock test timeout 2021-06-02 13:37:41 +00:00
memprof [memprof][test] Make test_terse.cpp robust (sched_getcpu may happens to change) 2021-03-26 00:45:58 -07:00
msan sanitizer_common: deduplicate CheckFailed 2021-05-12 08:50:53 +02:00
orc [ORC-RT] Re-apply "Initial ORC Runtime directories and build..." with fixes. 2021-04-24 16:00:20 -07:00
profile [InstrProfiling] Delete linkage/visibility toggling for Windows 2021-06-02 16:49:54 -07:00
safestack compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
sanitizer_common [sanitizer] Android ELF TLS is supported from Q (API 29) 2021-05-27 14:53:49 -07:00
scudo Revert "[Scudo] Make -fsanitize=scudo use standalone. Migrate tests." 2021-05-26 10:50:26 -07:00
shadowcallstack compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
tsan [TSAN][CMake] Add support to run lit on individual tests 2021-05-25 12:33:02 -07:00
ubsan Fix some typos in d7ec48d71b 2021-05-04 10:44:01 -04:00
ubsan_minimal [test] Fix unused FileCheck prefixes in compiler-rt 2021-02-01 22:32:13 -08:00
xray Fix xray fdr mode to allow multiple flushes 2021-02-10 12:57:24 +11:00
.clang-format [sanitizer] Set IndentPPDirectives: AfterHash in .clang-format 2021-05-03 13:49:41 -07:00
.clang-tidy [NFC][compiler-rt] Refine .clang-tidy checks 2020-09-05 15:42:15 -07:00
CMakeLists.txt [Compiler-rt] Distinguish between testing just built runtime libraries and the libraries shipped with the compiler. 2021-05-14 18:07:34 -07:00
lit.common.cfg.py [sanitizer] Android ELF TLS is supported from Q (API 29) 2021-05-27 14:53:49 -07:00
lit.common.configured.in [Compiler-rt] Distinguish between testing just built runtime libraries and the libraries shipped with the compiler. 2021-05-14 18:07:34 -07:00