-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels