[clang] [llvm] [Clang] Support `--offload-compress` for offload binaries (PR #227765)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 2 20:57:33 PDT 2026


================
@@ -9697,6 +9699,8 @@ void OffloadPackager::ConstructJob(Compilation &C, const JobAction &JA,
     CmdArgs.push_back(Args.MakeArgString("--image=" + llvm::join(Parts, ",")));
   }
 
+  addOffloadCompressArgs(Args, CmdArgs);
----------------
yxsamliu wrote:

The option says 'HIP only,' but this packager handles other offload modes too. Should we limit the flag to HIP or update the option help and tests?

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


More information about the cfe-commits mailing list