xref: /llvm-project/llvm/test/CodeGen/SPIRV/event_no_group_cap.ll (revision f20c9c42d2ca13354c8aebc093a61ce692903eed)
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
13define dso_local spir_kernel void @test_fn(i8 addrspace(1)* noundef %src) {
14entry:
15  %src.addr = alloca i8 addrspace(1)*, align 8
16  store i8 addrspace(1)* %src, i8 addrspace(1)** %src.addr, align 8
17  call spir_func void @_Z17wait_group_eventsiPU3AS49ocl_event(i32 noundef 0, %opencl.event_t* addrspace(4)* noundef null)
18  ret void
19}
20
21declare spir_func void @_Z17wait_group_eventsiPU3AS49ocl_event(i32 noundef, %opencl.event_t* addrspace(4)* noundef)
22