1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/lib
Petr Hosek 1aff1e2660 [InstrProfiling] Use weak alias for bias variable
We need the compiler generated variable to override the weak symbol of
the same name inside the profile runtime, but using LinkOnceODRLinkage
results in weak symbol being emitted in which case the symbol selected
by the linker is going to depend on the order of inputs which can be
fragile.

This change replaces the use of weak definition inside the runtime with
a weak alias. We place the compiler generated symbol inside a COMDAT
group so dead definition can be garbage collected by the linker.

We also disable the use of runtime counter relocation on Darwin since
Mach-O doesn't support weak external references, but Darwin already uses
a different continous mode that relies on overmapping so runtime counter
relocation isn't needed there.

Differential Revision: https://reviews.llvm.org/D105176
2021-07-19 12:23:51 -07:00
..
Analysis [LoopUtils] Fix incorrect RT check bounds of loop-invariant mem accesses 2021-07-19 19:38:24 +08:00
AsmParser [IR] Add elementtype attribute 2021-07-15 18:04:26 +02:00
BinaryFormat [elfabi] Prepare elfabi/ifs merging. 2021-07-19 11:22:43 -07:00
Bitcode [BPF] Use elementtype attribute for preserve.array/struct.index intrinsics 2021-07-17 11:09:18 +02:00
Bitstream
CodeGen Revert "[llvm][sve] Lowering for VLS truncating stores" because it 2021-07-19 11:03:33 -07:00
DebugInfo [DebugInfo] Remove unnecessary <string> include dependency from DebugInfo headers. NFC. 2021-07-17 16:56:06 +01:00
Demangle Demangle: correct swift_async demangling for Microsoft scheme 2021-07-14 11:43:44 -07:00
DWARFLinker
ExecutionEngine [ORC] Explicitly convert to ArrayRefs to silence errors. 2021-07-19 20:48:30 +10:00
Extensions
FileCheck
Frontend
Fuzzer
FuzzMutate
InterfaceStub [ifs][elfabi] Merge llvm-ifs/elfabi tools 2021-07-19 11:23:19 -07:00
IR [IR] Don't accept null type in ConstantExpr::getGetElementPtr() 2021-07-17 15:59:31 +02:00
IRReader
LineEditor
Linker [CSSPGO] Do not import pseudo probe desc in thinLTO 2021-07-13 18:26:36 -07:00
LTO
MC [WebAssembly] Support R_WASM_MEMORY_ADDR_TLS_SLEB64 for wasm64 2021-07-19 10:22:43 -07:00
MCA
Object [WebAssembly] Support R_WASM_MEMORY_ADDR_TLS_SLEB64 for wasm64 2021-07-19 10:22:43 -07:00
ObjectYAML
Option
Passes [LICM] Create LoopNest Invariant Code Motion (LNICM) pass 2021-07-20 00:31:18 +09:00
ProfileData
Remarks
Support Revert "Build libSupport with -Werror=global-constructors (NFC)" 2021-07-16 22:47:04 +00:00
TableGen
Target [SystemZ] Handle NoRegister in SystemZTargetLowering::emitMemMemWrapper(). 2021-07-19 20:04:44 +02:00
Testing
TextAPI
ToolDrivers
Transforms [InstrProfiling] Use weak alias for bias variable 2021-07-19 12:23:51 -07:00
WindowsManifest
XRay
CMakeLists.txt