@@ -265,7 +265,7 @@ def gen_suld_tests(target, global_surf):
265
265
}
266
266
; CHECK-LABEL: .entry ${test_name}_global
267
267
; CHECK: ${instruction} ${reg_ret}, [${global_surf}, ${reg_access}]
268
- define void @${test_name}_global(${retty}* %ret, ${access}) {
268
+ define ptx_kernel void @${test_name}_global(${retty}* %ret, ${access}) {
269
269
%gs = tail call i64 @llvm.nvvm.texsurf.handle.internal.p1i64(i64 addrspace(1)* @${global_surf})
270
270
%val = tail call ${retty} @${intrinsic}(i64 %gs, ${access})
271
271
store ${retty} %val, ${retty}* %ret
@@ -357,7 +357,7 @@ def gen_sust_tests(target, global_surf):
357
357
}
358
358
; CHECK-LABEL: .entry ${test_name}_global
359
359
; CHECK: ${instruction} [${global_surf}, ${reg_access}], ${reg_value}
360
- define void @${test_name}_global(${value}, ${access}) {
360
+ define ptx_kernel void @${test_name}_global(${value}, ${access}) {
361
361
%gs = tail call i64 @llvm.nvvm.texsurf.handle.internal.p1i64(i64 addrspace(1)* @${global_surf})
362
362
tail call void @${intrinsic}(i64 %gs, ${access}, ${value})
363
363
ret void
@@ -606,7 +606,7 @@ def gen_tex_tests(target, global_tex, global_sampler):
606
606
}
607
607
; CHECK-LABEL: .entry ${test_name}_global
608
608
; CHECK: ${instruction} ${ptx_ret}, [${global_tex}, ${ptx_global_sampler} ${ptx_access}]
609
- define void @${test_name}_global(${retty}* %ret, ${access}) {
609
+ define ptx_kernel void @${test_name}_global(${retty}* %ret, ${access}) {
610
610
%gt = tail call i64 @llvm.nvvm.texsurf.handle.internal.p1i64(i64 addrspace(1)* @${global_tex})
611
611
${get_sampler_handle}
612
612
%val = tail call ${retty} @${intrinsic}(i64 %gt, ${sampler} ${access})
@@ -790,7 +790,7 @@ def gen_tld4_tests(target, global_tex, global_sampler):
790
790
}
791
791
; CHECK-LABEL: .entry ${test_name}_global
792
792
; CHECK: ${instruction} ${ptx_ret}, [${global_tex}, ${ptx_global_sampler} ${ptx_access}]
793
- define void @${test_name}_global(${retty}* %ret, ${access}) {
793
+ define ptx_kernel void @${test_name}_global(${retty}* %ret, ${access}) {
794
794
%gt = tail call i64 @llvm.nvvm.texsurf.handle.internal.p1i64(i64 addrspace(1)* @${global_tex})
795
795
${get_sampler_handle}
796
796
%val = tail call ${retty} @${intrinsic}(i64 %gt, ${sampler} ${access})
@@ -1079,4 +1079,4 @@ def verify_llvm_tablegen(path_td, gen_intr):
1079
1079
else :
1080
1080
items = gen_tests (args .target , args .tests .split ("," ))
1081
1081
if args .gen_list :
1082
- write_gen_list (args .gen_list , args .gen_list_append , items )
1082
+ write_gen_list (args .gen_list , args .gen_list_append , items )
0 commit comments