[clang] [clang-sycl-linker] AOT-compile split modules concurrently (PR #224548)
Alexey Bader via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 20 19:07:55 PDT 2026
================
@@ -924,6 +925,54 @@ static bool canSkipModuleSplit(IRSplitMode Mode, const Module &M,
});
}
+/// AOT-compiles every already-produced image in \p SplitModules concurrently
+/// and swaps each module's path to point at the compiled object.
+static Error aotCompileSplitModules(SmallVectorImpl<SplitModule> &SplitModules,
+ const ArgList &Args, StringRef OutputFile) {
+ // Each worker thread writes only its own index, so this is race-free.
+ SmallVector<std::string, 0> AOTFiles(SplitModules.size());
----------------
bader wrote:
@wenju-he, please, file a separate issue to discuss this choice with @YuriPlyakhin. I think using default value is more reasonable.
https://github.com/llvm/llvm-project/pull/224548
More information about the cfe-commits
mailing list