[clang] [HIP] Parallelize device cc1 jobs for offload arches (PR #208254)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 8 09:35:17 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))
----------------
arsenm wrote:
Should not depend on the language. IMO we should remove all of the language discriminators and just have host vs. device
https://github.com/llvm/llvm-project/pull/208254
More information about the cfe-commits
mailing list