1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/include/llvm/ExecutionEngine
Lang Hames e6614e766c [ORC] Generalize the ORC RPC utils to support RPC function return values and
asynchronous call/handle. Also updates the ORC remote JIT API to use the new
scheme.

The previous version of the RPC tools only supported void functions, and
required the user to manually call a paired function to return results. This
patch replaces the Procedure typedef (which only supported void functions) with
the Function typedef which supports return values, e.g.:

  Function<FooId, int32_t(std::string)> Foo;

The RPC primitives and channel operations are also expanded. RPC channels must
support four new operations: startSendMessage, endSendMessage,
startRecieveMessage and endRecieveMessage, to handle channel locking. In
addition, serialization support for tuples to RPCChannels is added to enable
multiple return values.

The RPC primitives are expanded from callAppend, call, expect and handle, to:

appendCallAsync - Make an asynchronous call to the given function.

callAsync - The same as appendCallAsync, but calls send on the channel when
            done.

callSTHandling - Blocking call for single-threaded code. Wraps a call to
                 callAsync then waits on the result, using a user-supplied
                 handler to handle any callbacks from the remote.

callST - The same as callSTHandling, except that it doesn't handle
         callbacks - it expects the result to be the first return.

expect and handle - as before.

handleResponse - Handle a response from the remote.

waitForResult - Wait for the response with the given sequence number to arrive.

llvm-svn: 266581
2016-04-18 01:06:49 +00:00
..
Orc [ORC] Generalize the ORC RPC utils to support RPC function return values and 2016-04-18 01:06:49 +00:00
ExecutionEngine.h Revert inadvertently modified comment in r266131 2016-04-13 17:06:49 +00:00
GenericValue.h Add missing #include to fix build 2016-04-16 17:39:40 +00:00
Interpreter.h Remove useless hack that avoids calling LLVMLinkInInterpreter() 2015-12-07 22:27:19 +00:00
JITEventListener.h [JITEventListener] Fix some -Wundef warnings 2016-03-14 20:49:06 +00:00
JITSymbolFlags.h [Orc] Refactor ObjectLinkingLayer::addObjectSet to defer loading objects until 2016-01-19 21:06:38 +00:00
MCJIT.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
ObjectCache.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
ObjectMemoryBuffer.h [Orc] New JIT APIs. 2015-01-23 21:25:00 +00:00
OProfileWrapper.h
OrcMCJITReplacement.h [Orc] New JIT APIs. 2015-01-23 21:25:00 +00:00
RTDyldMemoryManager.h [Orc] Add support for EH-frame registration to the Orc Remote Target utility 2016-01-14 22:02:03 +00:00
RuntimeDyld.h [RuntimeDyld] Add a notifyObjectLoaded method to RuntimeDyld::MemoryManager. 2016-01-10 23:59:41 +00:00
RuntimeDyldChecker.h One more batch of self-containing headers. 2016-01-27 19:29:56 +00:00
SectionMemoryManager.h [SectionMemoryManager] Make better use of virtual memory 2015-12-16 11:13:23 +00:00