[Orc] Add support for remote JITing to the ORC API.
authorLang Hames <lhames@gmail.com>
Mon, 11 Jan 2016 01:40:11 +0000 (01:40 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 11 Jan 2016 01:40:11 +0000 (01:40 +0000)
commit51c60258a4ad2ad2181734448eeb6dea16d53e0b
tree85ebfccffe2e0519f8a62e8e6767118c579df8f2
parent4008b31dfebaf19cba49c8e344edda1f32fefdcf
[Orc] Add support for remote JITing to the ORC API.

This patch adds utilities to ORC for managing a remote JIT target. It consists
of:

1. A very primitive RPC system for making calls over a byte-stream.  See
RPCChannel.h, RPCUtils.h.

2. An RPC API defined in the above system for managing memory, looking up
symbols, creating stubs, etc. on a remote target. See OrcRemoteTargetRPCAPI.h.

3. An interface for creating high-level JIT components (memory managers,
callback managers, stub managers, etc.) that operate over the RPC API. See
OrcRemoteTargetClient.h.

4. A helper class for building servers that can handle the RPC calls. See
OrcRemoteTargetServer.h.

The system is designed to work neatly with the existing ORC components and
functionality. In particular, the ORC callback API (and consequently the
CompileOnDemandLayer) is supported, enabling lazy compilation of remote code.

Assuming this doesn't trigger any builder failures, a follow-up patch will be
committed which tests these utilities by using them to replace LLI's existing
remote-JITing demo code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257305 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h [new file with mode: 0644]
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h [new file with mode: 0644]
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h [new file with mode: 0644]
include/llvm/ExecutionEngine/Orc/RPCChannel.h [new file with mode: 0644]
include/llvm/ExecutionEngine/Orc/RPCUtils.h [new file with mode: 0644]
lib/ExecutionEngine/Orc/CMakeLists.txt
lib/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.cpp [new file with mode: 0644]
unittests/ExecutionEngine/Orc/CMakeLists.txt
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp [new file with mode: 0644]