[PATCH] D79312: [ORC] Preliminary support for removable code.

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 00:29:34 PDT 2020


lhames created this revision.
lhames added reviewers: lhames, dblaikie.
Herald added subscribers: ributzka, hiraditya, mgorny.
Herald added a project: LLVM.

This patch adds support for removal of JITDylibs with notification to registered
clients to enable resources (including allocated memory) to be freed.

It is currently unsafe if any symbols in the module are currently being
materialized.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79312

Files:
  llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h
  llvm/examples/OrcV2Examples/CMakeLists.txt
  llvm/examples/OrcV2Examples/ExampleModules.h
  llvm/examples/OrcV2Examples/LLJITRemoveCode/CMakeLists.txt
  llvm/examples/OrcV2Examples/LLJITRemoveCode/LLJITRemoveCode.cpp
  llvm/include/llvm/ExecutionEngine/Orc/Core.h
  llvm/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
  llvm/include/llvm/ExecutionEngine/Orc/Layer.h
  llvm/include/llvm/ExecutionEngine/Orc/LazyReexports.h
  llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h
  llvm/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h
  llvm/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
  llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
  llvm/lib/ExecutionEngine/Orc/Core.cpp
  llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  llvm/lib/ExecutionEngine/Orc/IRCompileLayer.cpp
  llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
  llvm/lib/ExecutionEngine/Orc/Layer.cpp
  llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
  llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
  llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
  llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
  llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h
  llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79312.261746.patch
Type: text/x-patch
Size: 50272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200504/c2b736a1/attachment.bin>


More information about the llvm-commits mailing list