Skip to content

Commit 4335b38

Browse files
committed
Add !max_work_group_size metadata to test
1 parent 8a46437 commit 4335b38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
; CHECK: function declaration may only have a unique !dbg attachment
44
; CHECK-NEXT: ptr @0
55

6-
define amdgpu_kernel void @preload_block_count_x(ptr addrspace(1) %out) !dbg !4 {
6+
define amdgpu_kernel void @preload_block_count_x(ptr addrspace(1) %out) !dbg !4 !max_work_group_size !7 {
77
%imp_arg_ptr = call ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr()
88
%load = load i32, ptr addrspace(4) %imp_arg_ptr, align 4
99
store i32 %load, ptr addrspace(1) %out, align 4
1010
ret void
1111
}
1212

13-
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
1413
declare noundef align 4 ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr() #0
1514

1615
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
@@ -25,3 +24,4 @@ attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memo
2524
!4 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 1, type: !5, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0)
2625
!5 = !DISubroutineType(cc: DW_CC_LLVM_OpenCLKernel, types: !6)
2726
!6 = !{null}
27+
!7 = !{i32 1024, i32 1, i32 1}

0 commit comments

Comments
 (0)