llvm-project/llvm/tools/llvm-jitlink
Lang Hames 78b083dbb7 [ORC] Add finalization & deallocation actions, SimpleExecutorMemoryManager class
Finalization and deallocation actions are a key part of the upcoming
JITLinkMemoryManager redesign: They generalize the existing finalization and
deallocate concepts (basically "copy-and-mprotect", and "munmap") to include
support for arbitrary registration and deregistration of parts of JIT linked
code. This allows us to register and deregister eh-frames, TLV sections,
language metadata, etc. using regular memory management calls with no additional
IPC/RPC overhead, which should both improve JIT performance and simplify
interactions between ORC and the ORC runtime.

The SimpleExecutorMemoryManager class provides executor-side support for memory
management operations, including finalization and deallocation actions.

This support is being added in advance of the rest of the memory manager
redesign as it will simplify the introduction of an EPC based
RuntimeDyld::MemoryManager (since eh-frame registration/deregistration will be
expressible as actions). The new RuntimeDyld::MemoryManager will in turn allow
us to remove older remote allocators that are blocking the rest of the memory
manager changes.
2021-09-17 09:55:45 +10:00
..
llvm-jitlink-executor [ORC] Add finalization & deallocation actions, SimpleExecutorMemoryManager class 2021-09-17 09:55:45 +10:00
CMakeLists.txt [llvm-jitlink] Link libnetwork on Haiku in llvm-jitlink 2021-05-14 20:49:03 -07:00
llvm-jitlink-elf.cpp [JITLink] Switch from StringRef to ArrayRef<char>, add some generic x86-64 utils 2021-03-30 21:07:24 -07:00
llvm-jitlink-macho.cpp [JITLink] Switch from StringRef to ArrayRef<char>, add some generic x86-64 utils 2021-03-30 21:07:24 -07:00
llvm-jitlink.cpp Re-apply bb27e45643 and 5629afea91 with fixes. 2021-09-12 14:23:22 +10:00
llvm-jitlink.h Re-apply bb27e45643 and 5629afea91 with fixes. 2021-09-12 14:23:22 +10:00