1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/tools/llvm-jitlink
Lang Hames 221e615a9c [ORC] Update Symbol Lookup / DefinitionGenerator system.
This patch moves definition generation out from the session lock, instead
running it under a per-dylib generator lock. It also makes the
DefinitionGenerator::tryToGenerate method optionally asynchronous: Generators
are handed an opaque LookupState object which can be captured to stop/restart
the lookup process.

The new scheme provides the following benefits and guarantees:

(1) Queries that do not need to attempt definition generation (because all
    requested symbols matched against existing definitions in the JITDylib)
    can proceed without being blocked by any running definition generators.

(2) Definition generators can capture the LookupState to continue their work
    asynchronously. This allows generators to run for an arbitrary amount of
    time without blocking a thread. Definition generators that do not need to
    run asynchronously can return without capturing the LookupState to eliminate
    unnecessary recursion and improve lookup performance.

(3) Definition generators still do not need to worry about concurrency or
    re-entrance: Since they are still run under a (per-dylib) lock, generators
    will never be re-entered concurrently, or given overlapping symbol sets to
    generate.

Finally, the new system distinguishes between symbols that are candidates for
generation (generation candidates) and symbols that failed to match for a query
(due to symbol visibility). This fixes a bug where an unresolved symbol could
trigger generation of a duplicate definition for an existing hidden symbol.
2020-10-19 01:59:03 -07:00
..
CMakeLists.txt [JITLink] Improve llvm-jitlink regression testing support for ELF. 2020-05-28 20:31:50 -07:00
llvm-jitlink-elf.cpp [llvm-jitlink] Add suppport for testing GOT entries and stubs for ELF. 2020-07-17 17:55:30 -07:00
llvm-jitlink-macho.cpp [llvm-jitlink] Add suppport for testing GOT entries and stubs for ELF. 2020-07-17 17:55:30 -07:00
llvm-jitlink.cpp [ORC] Update Symbol Lookup / DefinitionGenerator system. 2020-10-19 01:59:03 -07:00
llvm-jitlink.h [ORC] Add support for resource tracking/removal (removable code). 2020-10-18 21:02:54 -07:00
LLVMBuild.txt