The translator translates LLVM spir_kernel into an entrypoint wrapper and a function with LinkageAttributes. In entry_point_func.ll test we have:
define spir_kernel void @testfunction() {
ret void
}
and after the translator:
...
OpEntryPoint Kernel %6 "testfunction"
...
OpName %testfunction "testfunction"
OpDecorate %testfunction LinkageAttributes "testfunction" Export
%void = OpTypeVoid
%3 = OpTypeFunction %void
%testfunction = OpFunction %void None %3
%5 = OpLabel
OpReturn
OpFunctionEnd
%6 = OpFunction %void None %3
%7 = OpLabel
%8 = OpFunctionCall %void %testfunction
OpReturn
OpFunctionEnd
We probably need to do the same.
The translator translates LLVM spir_kernel into an entrypoint wrapper and a function with LinkageAttributes. In entry_point_func.ll test we have:
and after the translator:
We probably need to do the same.