[PATCH] D101630: [HIP] Fix device-only compilation

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 4 10:49:53 PDT 2021


yaxunl added a comment.

In D101630#2799472 <https://reviews.llvm.org/D101630#2799472>, @tra wrote:

> In D101630#2799425 <https://reviews.llvm.org/D101630#2799425>, @yaxunl wrote:
>
>> But how do we control emitting LLVM IR with or without bundle? `-emit-llvm -emit-gpu-object` or `-emit-llvm -emit-gpu-bundle`? `-emit-*` is usually for specifying a specific file type.
>
> Hmm. I forgot that HIP can bundle things other than objects. `-emit-llvm -emit-gpu-bundle` looks reasonable, but `-emit-llvm -emit-gpu-object` is indeed odd.
> OK. Making it some sort of do/do-not bundle flag makes sense. How about just `--[no-]gpu-bundle-output`?

--[no]gpu-bundle-output sounds good.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101630/new/

https://reviews.llvm.org/D101630



More information about the cfe-commits mailing list