annotate clang/test/CodeGenCUDA/kernel-stub-name.cu @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 79ff65ed7e25
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: echo "GPU binary would be here" > %t
anatofuz
parents:
diff changeset
2
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
3 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-linux-gnu -emit-llvm %s \
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
4 // RUN: -fcuda-include-gpubinary %t -o - -x hip\
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
5 // RUN: | FileCheck -check-prefixes=CHECK,GNU %s
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
6
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
7 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-linux-gnu -emit-llvm %s \
150
anatofuz
parents:
diff changeset
8 // RUN: -fcuda-include-gpubinary %t -o - -x hip\
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
9 // RUN: | FileCheck -check-prefix=NEG %s
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
10
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
11 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-pc-windows-msvc -emit-llvm %s \
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
12 // RUN: -aux-triple amdgcn-amd-amdhsa -fcuda-include-gpubinary \
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
13 // RUN: %t -o - -x hip\
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
14 // RUN: | FileCheck -check-prefixes=CHECK,MSVC %s
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
15
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
16 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-pc-windows-msvc -emit-llvm %s \
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
17 // RUN: -aux-triple amdgcn-amd-amdhsa -fcuda-include-gpubinary \
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
18 // RUN: %t -o - -x hip\
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
19 // RUN: | FileCheck -check-prefix=NEG %s
150
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 #include "Inputs/cuda.h"
anatofuz
parents:
diff changeset
22
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
23 // Check kernel handles are emitted for non-MSVC target but not for MSVC target.
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
24
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
25 // GNU: @[[HCKERN:ckernel]] = constant void ()* @[[CSTUB:__device_stub__ckernel]], align 8
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
26 // GNU: @[[HNSKERN:_ZN2ns8nskernelEv]] = constant void ()* @[[NSSTUB:_ZN2ns23__device_stub__nskernelEv]], align 8
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
27 // GNU: @[[HTKERN:_Z10kernelfuncIiEvv]] = linkonce_odr constant void ()* @[[TSTUB:_Z25__device_stub__kernelfuncIiEvv]], comdat, align 8
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
28 // GNU: @[[HDKERN:_Z11kernel_declv]] = external constant void ()*, align 8
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
29
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
30 // MSVC: @[[HCKERN:ckernel]] = dso_local constant void ()* @[[CSTUB:__device_stub__ckernel]], align 8
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
31 // MSVC: @[[HNSKERN:"\?nskernel@ns@@YAXXZ.*"]] = dso_local constant void ()* @[[NSSTUB:"\?__device_stub__nskernel@ns@@YAXXZ"]], align 8
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
32 // MSVC: @[[HTKERN:"\?\?\$kernelfunc@H@@YAXXZ.*"]] = linkonce_odr dso_local constant void ()* @[[TSTUB:"\?\?\$__device_stub__kernelfunc@H@@YAXXZ.*"]], comdat, align 8
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
33 // MSVC: @[[HDKERN:"\?kernel_decl@@YAXXZ.*"]] = external dso_local constant void ()*, align 8
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
34
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
35 extern "C" __global__ void ckernel() {}
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
36
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
37 namespace ns {
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
38 __global__ void nskernel() {}
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
39 } // namespace ns
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
40
150
anatofuz
parents:
diff changeset
41 template<class T>
anatofuz
parents:
diff changeset
42 __global__ void kernelfunc() {}
anatofuz
parents:
diff changeset
43
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
44 __global__ void kernel_decl();
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
45
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
46 extern "C" void (*kernel_ptr)();
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
47 extern "C" void *void_ptr;
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
48
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
49 extern "C" void launch(void *kern);
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
50
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
51 // Device side kernel names
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
52
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
53 // CHECK: @[[CKERN:[0-9]*]] = {{.*}} c"ckernel\00"
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
54 // CHECK: @[[NSKERN:[0-9]*]] = {{.*}} c"_ZN2ns8nskernelEv\00"
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
55 // CHECK: @[[TKERN:[0-9]*]] = {{.*}} c"_Z10kernelfuncIiEvv\00"
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
56
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
57 // Non-template kernel stub functions
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
58
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
59 // CHECK: define{{.*}}@[[CSTUB]]
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
60 // CHECK: call{{.*}}@hipLaunchByPtr{{.*}}@[[HCKERN]]
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
61
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
62 // CHECK: define{{.*}}@[[NSSTUB]]
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
63 // CHECK: call{{.*}}@hipLaunchByPtr{{.*}}@[[HNSKERN]]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
64
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
65 // Check kernel stub is called for triple chevron.
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
66
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
67 // CHECK-LABEL: define{{.*}}@fun1()
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
68 // CHECK: call void @[[CSTUB]]()
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
69 // CHECK: call void @[[NSSTUB]]()
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
70 // CHECK: call void @[[TSTUB]]()
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
71 // GNU: call void @[[DSTUB:_Z26__device_stub__kernel_declv]]()
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
72 // MSVC: call void @[[DSTUB:"\?__device_stub__kernel_decl@@YAXXZ"]]()
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
73
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
74 extern "C" void fun1(void) {
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
75 ckernel<<<1, 1>>>();
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
76 ns::nskernel<<<1, 1>>>();
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
77 kernelfunc<int><<<1, 1>>>();
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
78 kernel_decl<<<1, 1>>>();
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
79 }
150
anatofuz
parents:
diff changeset
80
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
81 // Template kernel stub functions
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
82
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
83 // CHECK: define{{.*}}@[[TSTUB]]
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
84 // CHECK: call{{.*}}@hipLaunchByPtr{{.*}}@[[HTKERN]]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
85
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
86 // Check declaration of stub function for external kernel.
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
87
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
88 // CHECK: declare{{.*}}@[[DSTUB]]
150
anatofuz
parents:
diff changeset
89
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
90 // Check kernel handle is used for passing the kernel as a function pointer.
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
91
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
92 // CHECK-LABEL: define{{.*}}@fun2()
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
93 // CHECK: call void @launch({{.*}}[[HCKERN]]
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
94 // CHECK: call void @launch({{.*}}[[HNSKERN]]
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
95 // CHECK: call void @launch({{.*}}[[HTKERN]]
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
96 // CHECK: call void @launch({{.*}}[[HDKERN]]
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
97 extern "C" void fun2() {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
98 launch((void *)ckernel);
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
99 launch((void *)ns::nskernel);
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
100 launch((void *)kernelfunc<int>);
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
101 launch((void *)kernel_decl);
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
102 }
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
103
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
104 // Check kernel handle is used for assigning a kernel to a function pointer.
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
105
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
106 // CHECK-LABEL: define{{.*}}@fun3()
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
107 // CHECK: store void ()* bitcast (void ()** @[[HCKERN]] to void ()*), void ()** @kernel_ptr, align 8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
108 // CHECK: store void ()* bitcast (void ()** @[[HCKERN]] to void ()*), void ()** @kernel_ptr, align 8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
109 // CHECK: store i8* bitcast (void ()** @[[HCKERN]] to i8*), i8** @void_ptr, align 8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
110 // CHECK: store i8* bitcast (void ()** @[[HCKERN]] to i8*), i8** @void_ptr, align 8
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
111 extern "C" void fun3() {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
112 kernel_ptr = ckernel;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
113 kernel_ptr = &ckernel;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
114 void_ptr = (void *)ckernel;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
115 void_ptr = (void *)&ckernel;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
116 }
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
117
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
118 // Check kernel stub is loaded from kernel handle when function pointer is
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
119 // used with triple chevron.
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
120
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
121 // CHECK-LABEL: define{{.*}}@fun4()
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
122 // CHECK: store void ()* bitcast (void ()** @[[HCKERN]] to void ()*), void ()** @kernel_ptr
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
123 // CHECK: call noundef i32 @{{.*hipConfigureCall}}
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
124 // CHECK: %[[HANDLE:.*]] = load void ()*, void ()** @kernel_ptr, align 8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
125 // CHECK: %[[CAST:.*]] = bitcast void ()* %[[HANDLE]] to void ()**
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
126 // CHECK: %[[STUB:.*]] = load void ()*, void ()** %[[CAST]], align 8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
127 // CHECK: call void %[[STUB]]()
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
128 extern "C" void fun4() {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
129 kernel_ptr = ckernel;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
130 kernel_ptr<<<1,1>>>();
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
131 }
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
132
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
133 // Check kernel handle is passed to a function.
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
134
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
135 // CHECK-LABEL: define{{.*}}@fun5()
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
136 // CHECK: store void ()* bitcast (void ()** @[[HCKERN]] to void ()*), void ()** @kernel_ptr
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
137 // CHECK: %[[HANDLE:.*]] = load void ()*, void ()** @kernel_ptr, align 8
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
138 // CHECK: %[[CAST:.*]] = bitcast void ()* %[[HANDLE]] to i8*
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
139 // CHECK: call void @launch(i8* noundef %[[CAST]])
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
140 extern "C" void fun5() {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
141 kernel_ptr = ckernel;
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
142 launch((void *)kernel_ptr);
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
143 }
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
144
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
145 // Check kernel handle is registered.
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
146
150
anatofuz
parents:
diff changeset
147 // CHECK-LABEL: define{{.*}}@__hip_register_globals
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
148 // CHECK: call{{.*}}@__hipRegisterFunction{{.*}}@[[HCKERN]]{{.*}}@[[CKERN]]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
149 // CHECK: call{{.*}}@__hipRegisterFunction{{.*}}@[[HNSKERN]]{{.*}}@[[NSKERN]]
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
150 // CHECK: call{{.*}}@__hipRegisterFunction{{.*}}@[[HTKERN]]{{.*}}@[[TKERN]]
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
151 // NEG-NOT: call{{.*}}@__hipRegisterFunction{{.*}}__device_stub
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
152 // NEG-NOT: call{{.*}}@__hipRegisterFunction{{.*}}kernel_decl