This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Let assembler output bitcode for amdgcn
AbandonedPublic

Authored by yaxunl on May 4 2018, 9:01 PM.

Details

Summary

amdgcn does not support linking of object files, therefore let
assembler output bitcode for HIP for amdgcn.

Diff Detail

Event Timeline

yaxunl created this revision.May 4 2018, 9:01 PM

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.

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.

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.

yaxunl abandoned this revision.May 16 2018, 12:39 PM

I have updated D46476 to skip backend and assembler phases for amdgcn, therefore this patch is no longer needed.