File tree 2 files changed +19
-1
lines changed
test/tools/sycl-post-link/device-code-split
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,8 @@ bool isGenericBuiltin(StringRef FName) {
113
113
}
114
114
115
115
bool isKernel (const Function &F) {
116
- return F.getCallingConv () == CallingConv::SPIR_KERNEL;
116
+ return F.getCallingConv () == CallingConv::SPIR_KERNEL ||
117
+ F.getCallingConv () == CallingConv::AMDGPU_KERNEL;
117
118
}
118
119
119
120
bool isEntryPoint (const Function &F, bool EmitOnlyKernelsAsEntryPoints) {
Original file line number Diff line number Diff line change
1
+ ; -- Per-kernel split
2
+ ; RUN: sycl-post-link -split=kernel -emit-only-kernels-as-entry-points -S < %s -o %tC.table
3
+ ; RUN: FileCheck %s -input-file=%tC_0.ll --check-prefixes CHECK-A0
4
+ ; RUN: FileCheck %s -input-file=%tC_1.ll --check-prefixes CHECK-A1
5
+
6
+ define dso_local amdgpu_kernel void @Kernel1 () {
7
+ ret void
8
+ }
9
+
10
+ define dso_local amdgpu_kernel void @Kernel2 () {
11
+ ret void
12
+ }
13
+
14
+ ; CHECK-A0: define dso_local amdgpu_kernel void @Kernel2()
15
+ ; CHECK-A0-NOT: define dso_local amdgpu_kernel void @Kernel1()
16
+ ; CHECK-A1-NOT: define dso_local amdgpu_kernel void @Kernel2()
17
+ ; CHECK-A1: define dso_local amdgpu_kernel void @Kernel1()
You can’t perform that action at this time.
0 commit comments