[llvm-dev] hc.amdgcn.bc: functions disappear after linking

Matt Arsenault via llvm-dev llvm-dev at lists.llvm.org
Fri May 22 13:18:57 PDT 2020



> On May 22, 2020, at 15:51, Frank Winter via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> After linking in the module 'hc.amdgcn.bc' to the current module the function (see below) cannot be found. Looking at the result of the link it seems nothing actually got linked in.
> 
> define linkonce_odr protected void @hc_barrier(i32 %0) local_unnamed_addr #4 {
> 
> // function body left out
> 
> }
> 
> 
> Is one of the attributes of 'hc_barrier' preventing it from being linked into another module? and if so, how can I still link in this module so that the function is still visible?
> 
> 
> Thanks,
> 
> Frank


I think this question needs more context. How and why are you trying to link this?

-Matt


More information about the llvm-dev mailing list