[PATCH] D46489: [HIP] Let assembler output bitcode for amdgcn

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 15 12:17:59 PDT 2018


rjmccall added a comment.

In https://reviews.llvm.org/D46489#1099979, @yaxunl wrote:

> In https://reviews.llvm.org/D46489#1088940, @rjmccall wrote:
>
> > I think the right solution here is to make a CompileJobAction with type TY_LLVM_BC in the first place.  You should get the advice of a driver expert, though.
>
>
> There is already JobAction for TY_LLVM_BC. I just want to skip the backend and assemble phase when offloading HIP. I will try achieving that through HIP action builder.


Right, that's what I mean.  This is something we already support for LTO and other purposes.  You can just check what happens in the driver if you pass `-c -emit-llvm`.


https://reviews.llvm.org/D46489





More information about the cfe-commits mailing list