Adding out-of-process execution support to lli.

At this time only Unix-based systems are supported.  Windows has stubs and should re-route to the simulated mode.

Thanks to Sriram Murali for contributions to this patch.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Kaylor
2013-10-02 17:12:36 +00:00
parent af7ae9d689
commit 0ab5c6c16b
22 changed files with 994 additions and 23 deletions

View File

@ -0,0 +1,32 @@
//= RemoteTargetExternal.inc - LLVM out-of-process JIT execution for Windows =//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Definition of the Windows-specific parts of the RemoteTargetExternal class
// which is meant to execute JITed code in a separate process from where it was
// built. To support this functionality on Windows, implement these functions.
//
//===----------------------------------------------------------------------===//
namespace llvm {
void RemoteTargetExternal::create() {
}
int RemoteTargetExternal::WriteBytes(const void *Data, size_t Size) {
return 0;
}
int RemoteTargetExternal::ReadBytes(void *Data, size_t Size) {
return 0;
}
void RemoteTargetExternal::Wait() {
}
} // namespace llvm