Frank Winter via llvm-dev
2020-May-22 19:51 UTC
[llvm-dev] hc.amdgcn.bc: functions disappear after linking
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
Matt Arsenault via llvm-dev
2020-May-22 20:18 UTC
[llvm-dev] hc.amdgcn.bc: functions disappear after linking
> 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, > > FrankI think this question needs more context. How and why are you trying to link this? -Matt