summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc/OrcError.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2017-09-05 03:34:09 +0000
committerLang Hames <lhames@gmail.com>2017-09-05 03:34:09 +0000
commit617fc356378fd266643b73b2dc77812fedadc790 (patch)
tree117654cf5259a454b091561b236963eeae05b00c /llvm/lib/ExecutionEngine/Orc/OrcError.cpp
parentf9c9455d3f83ca0a50f0726bf26676e96273e9ee (diff)
downloadbcm5719-llvm-617fc356378fd266643b73b2dc77812fedadc790.tar.gz
bcm5719-llvm-617fc356378fd266643b73b2dc77812fedadc790.zip
[ORC] Add a pair of ORC layers that forward object-layer operations via RPC.
This patch introduces RemoteObjectClientLayer and RemoteObjectServerLayer, which can be used to forward ORC object-layer operations from a JIT stack in the client to a JIT stack (consisting only of object-layers) in the server. This is a new way to support remote-JITing in LLVM. The previous approach (supported by OrcRemoteTargetClient and OrcRemoteTargetServer) used a remote-mapping memory manager that sat "beneath" the JIT stack and sent fully-relocated binary blobs to the server. The main advantage of the new approach is that relocatable objects can be cached on the server and re-used (if the code that they represent hasn't changed), whereas fully-relocated blobs can not (since the addresses they have been permanently bound to will change from run to run). llvm-svn: 312511
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/OrcError.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/OrcError.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/OrcError.cpp b/llvm/lib/ExecutionEngine/Orc/OrcError.cpp
index df2d320e0f7..c218cb9a523 100644
--- a/llvm/lib/ExecutionEngine/Orc/OrcError.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/OrcError.cpp
@@ -54,6 +54,8 @@ public:
case OrcErrorCode::UnknownErrorCodeFromRemote:
return "Unknown error returned from remote RPC function "
"(Use StringError to get error message)";
+ case OrcErrorCode::UnknownResourceHandle:
+ return "Unknown resource handle";
}
llvm_unreachable("Unhandled error code");
}
OpenPOWER on IntegriCloud