Debian Codegraph @

llvm/test/CodeGen/SPIRV/event_no_group_cap.ll

raw
1 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
2
3 ; __kernel void test_fn( const __global char *src)
4 ; {
5 ; wait_group_events(0, NULL);
6 ; }
7
8 ; CHECK-NOT: OpCapability Groups
9 ; CHECK: OpGroupWaitEvents
10
11 %opencl.event_t = type opaque
12
13 define dso_local spir_kernel void @test_fn(ptr addrspace(1) noundef %src) {
14 entry:
15 %src.addr = alloca ptr addrspace(1), align 8
16 store ptr addrspace(1) %src, ptr %src.addr, align 8
17 call spir_func void @_Z17wait_group_eventsiPU3AS49ocl_event(i32 noundef 0, ptr addrspace(4) noundef null)
18 ret void
19 }
20
21 declare spir_func void @_Z17wait_group_eventsiPU3AS49ocl_event(i32 noundef, ptr addrspace(4) noundef)