amdgcn does not support linking of object files, therefore let
assembler output bitcode for HIP for amdgcn.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
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.
Comment Actions
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.
Comment Actions
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.
Comment Actions
I have updated D46476 to skip backend and assembler phases for amdgcn, therefore this patch is no longer needed.