1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/Instrumentation
Petr Hosek 62cf2a8725 [InstrProfiling] Use !associated metadata for counters, data and values
C identifier name input sections such as __llvm_prf_* are GC roots so
they cannot be discarded. In LLD, the SHF_LINK_ORDER flag overrides the
C identifier name semantics.

The !associated metadata may be attached to a global object declaration
with a single argument that references another global object, and it
gets lowered to SHF_LINK_ORDER flag. When a function symbol is discarded
by the linker, setting up !associated metadata allows linker to discard
counters, data and values associated with that function symbol.

Note that !associated metadata is only supported by ELF, it does not have
any effect on non-ELF targets.

Differential Revision: https://reviews.llvm.org/D76802
2021-02-01 15:01:43 -08:00
..
AddressSanitizer [NFC] Disallow unused prefixes under llvm/test 2021-01-21 20:31:52 -08:00
BoundsChecking OpaquePtr: Bulk update tests to use typed byval 2020-11-20 14:00:46 -05:00
DataFlowSanitizer [dfsan] Track field/index-level shadow values in variables 2020-12-09 19:38:35 +00:00
HeapProfiler [MemProf] Fix a potential "permission denied" test failure on some systems. 2020-12-07 14:04:23 +01:00
HWAddressSanitizer [NFC] Disallow unused prefixes under llvm/test 2021-01-21 20:31:52 -08:00
InstrOrderFile Add a module pass for order file instrumentation 2019-02-28 20:13:38 +00:00
InstrProfiling [InstrProfiling] Use !associated metadata for counters, data and values 2021-02-01 15:01:43 -08:00
MemorySanitizer [NFC] Disallow unused prefixes under llvm/test 2021-01-21 20:31:52 -08:00
PoisonChecking [PoisonCheker] Support for out of bounds operands on shifts + insert/extractelement 2019-07-09 19:26:12 +00:00
SanitizerCoverage [SanitizerCoverage] Use zeroext for cmp parameters on all targets 2020-08-12 18:38:12 +02:00
ThreadSanitizer [test][TSan] Fix tests under NPM 2020-09-18 11:37:55 -07:00
cgprofile.ll [CGProfile] don't emit cgprofile entry if called function is dllimport 2020-09-23 16:56:54 -07:00