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
jdnk
changed the title
Global variable with Function storage class generated by SPIR-V backend
SPIR-V backend: Function storage class outside of function
Jan 3, 2025
The SPIR-V backend puts a global variable under the Function storage space.
Original source:
clang -S -emit-llvm -O3 repr_outside_fn.c -o repr_outside_fn.ll
generates:llc -mtriple=spirv64 repr_outside_fn.ll -o repr_outside_fn.spt
generates:The instructions
%25
,%26
and%27
have Function storage class despite not being in a function.Used LLVM 19.1.6 and x86_64 (see repr_outside_fn.ll for details).
The text was updated successfully, but these errors were encountered: