1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/examples/OrcV2Examples
Lang Hames 7103f74446 [ORC] Break up OrcJIT library, add Orc-RPC based remote TargetProcessControl
implementation.

This patch aims to improve support for out-of-process JITing using OrcV2. It
introduces two new class templates, OrcRPCTargetProcessControlBase and
OrcRPCTPCServer, which together implement the TargetProcessControl API by
forwarding operations to an execution process via an Orc-RPC Endpoint. These
utilities are used to implement out-of-process JITing from llvm-jitlink to
a new llvm-jitlink-executor tool.

This patch also breaks the OrcJIT library into three parts:
  -- OrcTargetProcess: Contains code needed by the JIT execution process.
  -- OrcShared: Contains code needed by the JIT execution and compiler
     processes
  -- OrcJIT: Everything else.

This break-up allows JIT executor processes to link against OrcTargetProcess
and OrcShared only, without having to link in all of OrcJIT. Clients executing
JIT'd code in-process should start linking against OrcTargetProcess as well as
OrcJIT.

In the near future these changes will enable:
  -- Removal of the OrcRemoteTargetClient/OrcRemoteTargetServer class templates
     which provided similar functionality in OrcV1.
  -- Restoration of Chapter 5 of the Building-A-JIT tutorial series, which will
     serve as a simple usage example for these APIs.
  -- Implementation of lazy, cross-target compilation in lli's -jit-kind=orc-lazy
     mode.
2020-11-13 17:05:13 +11:00
..
LLJITDumpObjects
LLJITWithCustomObjectLinkingLayer
LLJITWithGDBRegistrationListener [examples] Call setProcessAllSections to ensure debug sections aren't droppped. 2020-05-01 11:06:41 -07:00
LLJITWithInitializers [ORC] Add basic ResourceTracker support to the OrcV2 C Bindings. 2020-10-19 01:59:04 -07:00
LLJITWithLazyReexports [examples] Fix an incomplete comment. 2020-05-01 11:06:41 -07:00
LLJITWithObjectCache
LLJITWithObjectLinkingLayerPlugin [ORC] Add support for resource tracking/removal (removable code). 2020-10-18 21:02:54 -07:00
LLJITWithOptimizingIRTransform [ORC][examples] Add missing library dependencies. 2020-09-22 16:18:00 -07:00
LLJITWithTargetProcessControl [ORC] Break up OrcJIT library, add Orc-RPC based remote TargetProcessControl 2020-11-13 17:05:13 +11:00
LLJITWithThinLTOSummaries [examples] Fix dependencies for OrcV2Examples/LLJITWithThinLTOSummaries. 2020-08-25 11:51:20 -07:00
OrcV2CBindingsAddObjectFile [ORC] Break up C-API header Orc.h, and add JITEventListener support. 2020-10-19 01:59:04 -07:00
OrcV2CBindingsBasicUsage [ORC] Break up C-API header Orc.h, and add JITEventListener support. 2020-10-19 01:59:04 -07:00
OrcV2CBindingsReflectProcessSymbols [ORC] Break up C-API header Orc.h, and add JITEventListener support. 2020-10-19 01:59:04 -07:00
OrcV2CBindingsRemovableCode [ORC] Break up C-API header Orc.h, and add JITEventListener support. 2020-10-19 01:59:04 -07:00
CMakeLists.txt [ORC] Add an OrcV2 ResourceTracker / Removable-code example. 2020-10-19 01:59:04 -07:00
ExampleModules.h Fix implicit dependency on CommandLine.h 2020-07-23 12:15:17 +01:00