llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT
Lang Hames 9e68b734d6 [ORC] Refactor OrcRemoteTarget code to expose its RPC API, reduce
code duplication in the client, and improve error propagation.

This patch moves the OrcRemoteTarget rpc::Function declarations from
OrcRemoteTargetRPCAPI into their own namespaces under llvm::orc::remote so that
they can be used in new contexts (in particular, a remote-object-file adapter
layer that I will commit shortly).

Code duplication in OrcRemoteTargetClient (especially in loops processing the
code, rw-data and ro-data allocations) is removed by moving the loop bodies
into their own functions.

Error propagation is (slightly) improved by adding an ErrorReporter functor to
the OrcRemoteTargetClient -- Errors that can't be returned (because they occur
in destructors, or behind stable APIs that don't provide error returns) can be
sent to the ErrorReporter instead. Some methods in the Client API are also
changed to make better use of the Expected class: returning Expected<T>s rather
than returning Errors and taking T&s to store the results.

llvm-svn: 312500
2017-09-04 20:54:46 +00:00
..
Chapter1 [ORC][Kaleidoscope] Update Chapter 1 of BuildingAJIT to incorporate recent ORC 2017-08-15 19:20:10 +00:00
Chapter2 [ORC] Errorize the ORC APIs. 2017-07-07 02:59:13 +00:00
Chapter3 [ORC] Errorize the ORC APIs. 2017-07-07 02:59:13 +00:00
Chapter4 [ORC] Add an Error return to the JITCompileCallbackManager::grow method. 2017-09-03 00:50:42 +00:00
Chapter5 [ORC] Refactor OrcRemoteTarget code to expose its RPC API, reduce 2017-09-04 20:54:46 +00:00
CMakeLists.txt [Kaleidoscope][BuildingAJIT] Don't build Chapter 5 on Windows for now. 2016-05-30 01:18:32 +00:00