You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing with spirv2clc in my LLVM-based toolflow, which relies on the SPIRV to LLVM translator to generate SPIR-V. For example, a simple kernel that returns nothing looks as follows in LLVM IR:
The generated SPIR-V code here is peculiar, it looks like the spir_kernel attribute is handled by the translator by generating a wrapper entry-point calling the inner kernel. spirv2clc doesn't handle that very well, producing the following invalid OpenCL code:
I was playing with spirv2clc in my LLVM-based toolflow, which relies on the SPIRV to LLVM translator to generate SPIR-V. For example, a simple kernel that returns nothing looks as follows in LLVM IR:
... which produces the following SPIR-V IR:
The generated SPIR-V code here is peculiar, it looks like the
spir_kernel
attribute is handled by the translator by generating a wrapper entry-point calling the inner kernel. spirv2clc doesn't handle that very well, producing the following invalid OpenCL code:The text was updated successfully, but these errors were encountered: