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

Frank Winter via llvm-dev llvm-dev at lists.llvm.org
Fri May 22 12:51:38 PDT 2020


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




More information about the llvm-dev mailing list