[clang] [Driver][HIP] Bundle AMDGPU -S output under the new offload driver (PR #188262)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 26 07:29:48 PDT 2026
================
@@ -4439,6 +4439,35 @@ void Driver::handleArguments(Compilation &C, DerivedArgList &Args,
}
}
+/// HIP non-RDC \c -S for AMDGCN: emit host and device assembly separately and
+/// bundle with \c clang-offload-bundler (new offload driver), instead of
+/// \c llvm-offload-binary / \c clang-linker-wrapper fatbin embedding.
+static bool shouldBundleHIPAsmWithNewDriver(const Compilation &C,
+ const llvm::opt::DerivedArgList &Args,
+ const Driver &D) {
+ if (!C.isOffloadingHostKind(Action::OFK_HIP))
----------------
yxsamliu wrote:
done
https://github.com/llvm/llvm-project/pull/188262
More information about the cfe-commits
mailing list