llvm-project/llvm/lib/ExecutionEngine/Orc
Lang Hames 4dc110a4b8 [ORC] Attempt to auto-claim responsibility for weak defs in ObjectLinkingLayer.
Compilers may insert new definitions during compilation, E.g. EH personality
function pointers, or named constant pool entries. This commit causes
ObjectLinkingLayer to attempt to claim responsibility for all weak definitions
in objects as they're linked. This is always safe (first claimant for each
symbol is granted responsibility, subsequent claims are rejected without error)
and prevents compiler-injected symbols from being dead-stripped (which they
will be if they remain unclaimed by anyone).

This change was motivated by errors seen by an out-of-tree client while testing
eh-frame support in JITLink ELF/x86-64: IR containing exceptions didn't define
DW.ref.__gxx_personality_v0 (since it's added by CodeGen), and this caused
DW.ref.__gxx_personality_v0 to be dead-stripped leading to linker failures.

No test case yet: We won't have a way to test in-tree until we enable JITLink
for lli on Linux.
2021-01-27 00:09:40 +11:00
..
Shared [ORC] Move OrcError.h to include/llvm/ExecutionEngine/Orc/Shared. 2021-01-19 16:18:00 +11:00
TargetProcess [llvmbuildectomy] removed vestigial LLVMBuild.txt files 2020-12-05 22:00:22 +01:00
CMakeLists.txt Revert "[build] normalize components dependencies" 2020-11-18 19:23:11 +01:00
CompileOnDemandLayer.cpp [ORC] Add support for resource tracking/removal (removable code). 2020-10-18 21:02:54 -07:00
CompileUtils.cpp
Core.cpp [ORC] Move OrcError.h to include/llvm/ExecutionEngine/Orc/Shared. 2021-01-19 16:18:00 +11:00
DebugUtils.cpp [ORC] Introduce JITSymbolFlags::HasMaterializeSideEffectsOnly flag. 2020-03-27 11:02:54 -07:00
ExecutionUtils.cpp [ORC] Break up OrcJIT library, add Orc-RPC based remote TargetProcessControl 2020-11-13 17:05:13 +11:00
IRCompileLayer.cpp [ORC] Add support for resource tracking/removal (removable code). 2020-10-18 21:02:54 -07:00
IRTransformLayer.cpp Re-apply "[ORC] Make MaterializationResponsibility immovable..." with fixes. 2020-09-11 14:09:05 -07:00
IndirectionUtils.cpp Remove superfluous whitespace around if(). NFC. 2020-10-25 14:38:16 +00:00
JITTargetMachineBuilder.cpp [ORC] Add debugging output for LLJIT construction. 2020-05-28 20:31:50 -07:00
LLJIT.cpp [ORC] Fix debug logging message. 2021-01-26 23:52:44 +11:00
Layer.cpp [ORC] Add support for resource tracking/removal (removable code). 2020-10-18 21:02:54 -07:00
LazyReexports.cpp [ORC] Add support for resource tracking/removal (removable code). 2020-10-18 21:02:54 -07:00
MachOPlatform.cpp [ORC] Add support for resource tracking/removal (removable code). 2020-10-18 21:02:54 -07:00
Mangling.cpp [Object] Change uint32_t getSymbolFlags() to Expected<uint32_t> getSymbolFlags(). 2020-04-18 21:27:57 +08:00
ObjectLinkingLayer.cpp [ORC] Attempt to auto-claim responsibility for weak defs in ObjectLinkingLayer. 2021-01-27 00:09:40 +11:00
ObjectTransformLayer.cpp Re-apply "[ORC] Make MaterializationResponsibility immovable..." with fixes. 2020-09-11 14:09:05 -07:00
OrcABISupport.cpp [ORC] Remove a spurious reinterpret_cast. 2020-07-13 12:39:24 -07:00
OrcV2CBindings.cpp [ORC] Fix a missing include. 2020-10-19 12:13:55 -07:00
RTDyldObjectLinkingLayer.cpp [MCA, ExecutionEngine, Object] Use llvm::is_contained (NFC) 2020-12-18 09:09:04 -08:00
SpeculateAnalyses.cpp [llvm] Use llvm::sort (NFC) 2021-01-17 10:39:45 -08:00
Speculation.cpp Re-apply "[ORC] Make MaterializationResponsibility immovable..." with fixes. 2020-09-11 14:09:05 -07:00
TPCDynamicLibrarySearchGenerator.cpp [ORC] Move LookupRequest from OrcShared to Orc. 2021-01-19 20:23:47 +11:00
TPCEHFrameRegistrar.cpp [ORC] Break up OrcJIT library, add Orc-RPC based remote TargetProcessControl 2020-11-13 17:05:13 +11:00
TPCIndirectionUtils.cpp Re-apply 8904ee8ac7 with missing header included this time. 2020-12-14 13:39:33 +11:00
TargetProcessControl.cpp [ORC] Move LookupRequest from OrcShared to Orc. 2021-01-19 20:23:47 +11:00
ThreadSafeModule.cpp [ORC] cloneToNewContext() can work with a const-ref to ThreadSafeModule 2020-08-13 21:01:21 +02:00