[llvm] [SPIRV] Split async copy tests and fix invalid tests (PR #178718)

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 2 01:45:38 PST 2026


================
@@ -19,9 +19,9 @@ define weak_odr dso_local spir_kernel void @foo(i64 %_arg_i, ptr addrspace(1) %_
 entry:
   %r1 = icmp ne i64 %_arg_i, 0
   store i1 %r1, ptr @G_r1
-  %e1 = tail call spir_func target("spirv.Event") @__spirv_GroupAsyncCopy(i32 2, ptr addrspace(3) %_arg_local, ptr addrspace(1) %_arg_ptr, i64 1, i64 1, target("spirv.Event") zeroinitializer)
+  %e1 = tail call spir_func target("spirv.Event") @__spirv_GroupAsyncCopy(i32 2, ptr addrspace(3) %_arg_local, ptr addrspace(1) %_arg_ptr, i32 1, i32 1, target("spirv.Event") zeroinitializer)
   store target("spirv.Event") %e1, ptr @G_e1
   ret void
 }
 
-declare dso_local spir_func target("spirv.Event") @__spirv_GroupAsyncCopy(i32, ptr addrspace(3), ptr addrspace(1), i64, i64, target("spirv.Event"))
+declare dso_local spir_func target("spirv.Event") @__spirv_GroupAsyncCopy(i32, ptr addrspace(3), ptr addrspace(1), i32, i32, target("spirv.Event"))
----------------
jmmartinez wrote:

I wasn't able to find what generates this function, but on the translator it appears with this demangled signature:

```cpp
__spirv_GroupAsyncCopy(int, char __vector[2] AS1*, char __vector[2] const AS3*, unsigned int, unsigned int, __spirv_Event*)
```

Then, this change seems correct to me.

https://github.com/llvm/llvm-project/pull/178718


More information about the llvm-commits mailing list