[clang] [llvm] [Clang-Repl] Add support for out-of-process execution. (PR #110418)

Lang Hames via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 6 22:51:07 PST 2024


================
@@ -702,10 +723,8 @@ llvm::Error Interpreter::LoadDynamicLibrary(const char *name) {
   if (!EE)
     return EE.takeError();
 
-  auto &DL = EE->getDataLayout();
-
-  if (auto DLSG = llvm::orc::DynamicLibrarySearchGenerator::Load(
-          name, DL.getGlobalPrefix()))
+  if (auto DLSG = llvm::orc::EPCDynamicLibrarySearchGenerator::Load(
----------------
lhames wrote:

`EPC` is `ExecutorProcessControl` -- using these variants means that the system works regardless of the underlying implementation (`SelfExecutorProcessControl` vs `SimpleRemoteEPC`), whereas using `DynamicLibrarySearchGenerator` _only_ works in the current process.

Eventually I want to get rid of the Non-EPC variants. I might even invert the naming scheme and start calling the old ones "LegacyInProcess<XXX>". :)

https://github.com/llvm/llvm-project/pull/110418


More information about the cfe-commits mailing list