[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 4 23:04:23 PDT 2025


================
@@ -115,31 +116,60 @@ class Interpreter {
   /// An optional compiler instance for CUDA offloading
   std::unique_ptr<CompilerInstance> DeviceCI;
 
+public:
+  struct OutOfProcessJITConfig {
+    /// Indicates whether out-of-process JIT execution is enabled.
+    bool IsOutOfProcess;
+    /// Path to the out-of-process JIT executor.
+    std::string OOPExecutor;
+    std::string OOPExecutorConnect;
+    /// Indicates whether to use shared memory for communication.
+    bool UseSharedMemory;
+    /// String representing the slab allocation size for memory management.
+    std::string SlabAllocateSizeString;
----------------
vgvassilev wrote:

The code for conversion will be exactly the same. It's location will be different. I do not see a reason for the user API to take strings when it can take the right types constructed programmatically. 

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


More information about the cfe-commits mailing list