[clang] [HIP] Claim `--offload-compress` for `-M` (PR #133456)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 28 10:14:41 PDT 2025
yxsamliu wrote:
> > > Why does this only cause warnings when it makes dependency files?
> >
> >
> > Because `--offloading-compress` is parsed by offload bundler and offload wrapper actions when creating job actions. There is no action to parse them in the compilation that only generates dependency files.
> > > If we can check whether or not it's HIP, then why isn't any of the HIP argument parsing happening?
> >
> >
> > Sorry I did not quite understand this question. Can you elaborate? Thanks.
>
> I just feel like this should probably go in the HIP toolchain when it translates arguments or something instead of just `clang`.
In the compilation that generates the dependency files for HIP, `--offload-host-only` is used. The argument translation is done by the host toolchain. It may not be convenient to update all the host toolchains about HIP.
https://github.com/llvm/llvm-project/pull/133456
More information about the cfe-commits
mailing list