[clang] [clang-sycl-linker] AOT-compile split modules concurrently (PR #224548)
Alexey Bader via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 18 14:50:31 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:
Why did you replace the default with `0`?
https://github.com/llvm/llvm-project/pull/224548
More information about the cfe-commits
mailing list