diff options
author | Abhinav Kumar <96587705+kr-2003@users.noreply.github.com> | 2025-09-13 12:31:31 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-13 10:01:31 +0300 |
commit | c642e2aa61c430ae597b0bd08e924339292e30e9 (patch) | |
tree | 5179b193578e1810897374ac25db6655ee879693 /clang/lib/Interpreter/Interpreter.cpp | |
parent | 0c3cf200f5b918fb5c1114e9f1764c2d54d1779b (diff) | |
download | llvm-c642e2aa61c430ae597b0bd08e924339292e30e9.zip llvm-c642e2aa61c430ae597b0bd08e924339292e30e9.tar.gz llvm-c642e2aa61c430ae597b0bd08e924339292e30e9.tar.bz2 |
[clang-repl] Add support for running custom code in Remote JIT executor (#157358)
Introduce a custom lambda mechanism that allows injecting user-defined
code into the Remote JIT’s executor.
---------
Co-authored-by: kr-2003 <kumar.kr.abhinav@gmail.com>
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r-- | clang/lib/Interpreter/Interpreter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp index 84f1c36..07c170a 100644 --- a/clang/lib/Interpreter/Interpreter.cpp +++ b/clang/lib/Interpreter/Interpreter.cpp @@ -355,7 +355,8 @@ Interpreter::outOfProcessJITBuilder(JITConfig Config) { if (!Config.OOPExecutor.empty()) { // Launch an out-of-process executor locally in a child process. auto ResultOrErr = IncrementalExecutor::launchExecutor( - Config.OOPExecutor, Config.UseSharedMemory, Config.SlabAllocateSize); + Config.OOPExecutor, Config.UseSharedMemory, Config.SlabAllocateSize, + Config.CustomizeFork); if (!ResultOrErr) return ResultOrErr.takeError(); childPid = ResultOrErr->second; |