[clang] [Clang][Driver] Parallelize device cc1 jobs for offload arches (PR #208254)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 8 11:55:54 PDT 2026


================
@@ -5132,6 +5132,22 @@ static void ProcessVSRuntimeLibrary(const ToolChain &TC, const ArgList &Args,
     CmdArgs.push_back("--dependent-lib=softintrin");
 }
 
+static bool CanRunOffloadDeviceCC1JobInParallel(const JobAction &JA) {
+  if (JA.getOffloadingArch().empty())
+    return false;
+
+  if (!JA.isDeviceOffloading(Action::OFK_HIP))
----------------
yxsamliu wrote:

Addressed. This is now based on offload device cc1 jobs, not HIP specifically. Non-offload compilations stay on the existing path.

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


More information about the cfe-commits mailing list