|
2 | 2 | ;
|
3 | 3 | ; Global scope
|
4 | 4 | ; RUN: sycl-post-link -symbols -emit-exported-symbols -S %s -o %t.global.files.table
|
5 |
| -; RUN: FileCheck %s -input-file=%t.global.files_0.prop --check-prefixes CHECK-GLOBAL-PROP |
| 5 | +; RUN: FileCheck %s -input-file=%t.global.files_0.prop --implicit-check-not="NotExported" --check-prefix=CHECK-GLOBAL-PROP |
6 | 6 | ;
|
7 | 7 | ; Per-module split
|
8 | 8 | ; RUN: sycl-post-link -symbols -split=source -emit-exported-symbols -S %s -o %t.per_module.files.table
|
9 |
| -; RUN: FileCheck %s -input-file=%t.per_module.files_0.prop --check-prefixes CHECK-PERMODULE-0-PROP |
10 |
| -; RUN: FileCheck %s -input-file=%t.per_module.files_1.prop --check-prefixes CHECK-PERMODULE-1-PROP |
11 |
| -; RUN: FileCheck %s -input-file=%t.per_module.files_2.prop --check-prefixes CHECK-KERNELONLY-PROP |
| 9 | +; RUN: FileCheck %s -input-file=%t.per_module.files_0.prop -implicit-check-not="NotExported" --check-prefix=CHECK-PERMODULE-0-PROP |
| 10 | +; RUN: FileCheck %s -input-file=%t.per_module.files_1.prop -implicit-check-not="NotExported" --check-prefix=CHECK-PERMODULE-1-PROP |
| 11 | +; RUN: FileCheck %s -input-file=%t.per_module.files_2.prop -implicit-check-not="NotExported" --check-prefix=CHECK-KERNELONLY-PROP |
12 | 12 | ;
|
13 | 13 | ; Per-kernel split
|
14 | 14 | ; RUN: sycl-post-link -symbols -split=kernel -emit-exported-symbols -S %s -o %t.per_kernel.files.table
|
15 |
| -; RUN: FileCheck %s -input-file=%t.per_kernel.files_0.prop --check-prefixes CHECK-PERKERNEL-0-PROP |
16 |
| -; RUN: FileCheck %s -input-file=%t.per_kernel.files_1.prop --check-prefixes CHECK-PERKERNEL-1-PROP |
17 |
| -; RUN: FileCheck %s -input-file=%t.per_kernel.files_2.prop --check-prefixes CHECK-PERKERNEL-2-PROP |
18 |
| -; RUN: FileCheck %s -input-file=%t.per_kernel.files_3.prop --check-prefixes CHECK-KERNELONLY-PROP |
19 |
| -; RUN: FileCheck %s -input-file=%t.per_kernel.files_4.prop --check-prefixes CHECK-KERNELONLY-PROP |
| 15 | +; RUN: FileCheck %s -input-file=%t.per_kernel.files_0.prop --implicit-check-not="NotExported" --check-prefix=CHECK-PERKERNEL-0-PROP |
| 16 | +; RUN: FileCheck %s -input-file=%t.per_kernel.files_1.prop --implicit-check-not="NotExported" --check-prefix=CHECK-PERKERNEL-1-PROP |
| 17 | +; RUN: FileCheck %s -input-file=%t.per_kernel.files_2.prop --implicit-check-not="NotExported" --check-prefix=CHECK-PERKERNEL-2-PROP |
| 18 | +; RUN: FileCheck %s -input-file=%t.per_kernel.files_3.prop --implicit-check-not="NotExported" --check-prefix=CHECK-KERNELONLY-PROP |
| 19 | +; RUN: FileCheck %s -input-file=%t.per_kernel.files_4.prop --implicit-check-not="NotExported" --check-prefix=CHECK-KERNELONLY-PROP |
20 | 20 |
|
21 | 21 | target triple = "spir64-unknown-unknown"
|
22 | 22 |
|
23 |
| -define dso_local spir_kernel void @SpirKernel1(float %arg1) #0 { |
| 23 | +define dso_local spir_kernel void @NotExportedSpirKernel1(float %arg1) #0 { |
24 | 24 | entry:
|
25 | 25 | ret void
|
26 | 26 | }
|
27 | 27 |
|
28 |
| -define dso_local spir_kernel void @SpirKernel2(float %arg1) #2 { |
| 28 | +define dso_local spir_kernel void @NotExportedSpirKernel2(float %arg1) #2 { |
29 | 29 | entry:
|
30 | 30 | ret void
|
31 | 31 | }
|
@@ -59,50 +59,36 @@ attributes #2 = { "sycl-module-id"="c.cpp" }
|
59 | 59 | ; CHECK-GLOBAL-PROP-NEXT: ExportedSpirFunc1
|
60 | 60 | ; CHECK-GLOBAL-PROP-NEXT: ExportedSpirFunc2
|
61 | 61 | ; CHECK-GLOBAL-PROP-NEXT: ExportedSpirFunc3
|
62 |
| -; CHECK-GLOBAL-PROP-NOT: SpirKernel1 |
63 |
| -; CHECK-GLOBAL-PROP-NOT: NotExportedSpirFunc1 |
64 | 62 |
|
65 | 63 | ; Per-module split
|
66 | 64 | ; CHECK-PERMODULE-0-PROP: [SYCL/exported symbols]
|
67 | 65 | ; CHECK-PERMODULE-0-PROP-NEXT: ExportedSpirFunc1
|
68 | 66 | ; CHECK-PERMODULE-0-PROP-NEXT: ExportedSpirFunc3
|
69 | 67 | ; CHECK-PERMODULE-0-PROP-NOT: ExportedSpirFunc2
|
70 |
| -; CHECK-PERMODULE-0-PROP-NOT: SpirKernel1 |
71 |
| -; CHECK-PERMODULE-0-PROP-NOT: NotExportedSpirFunc1 |
72 | 68 |
|
73 | 69 | ; CHECK-PERMODULE-1-PROP: [SYCL/exported symbols]
|
74 | 70 | ; CHECK-PERMODULE-1-PROP-NEXT: ExportedSpirFunc2
|
75 | 71 | ; CHECK-PERMODULE-1-PROP-NOT: ExportedSpirFunc1
|
76 | 72 | ; CHECK-PERMODULE-1-PROP-NOT: ExportedSpirFunc3
|
77 |
| -; CHECK-PERMODULE-1-PROP-NOT: SpirKernel1 |
78 |
| -; CHECK-PERMODULE-1-PROP-NOT: NotExportedSpirFunc1 |
79 | 73 |
|
80 | 74 | ; Per-kernel split
|
81 | 75 | ; CHECK-PERKERNEL-0-PROP: [SYCL/exported symbols]
|
82 | 76 | ; CHECK-PERKERNEL-0-PROP-NEXT: ExportedSpirFunc1
|
83 | 77 | ; CHECK-PERKERNEL-0-PROP-NOT: ExportedSpirFunc2
|
84 | 78 | ; CHECK-PERKERNEL-0-PROP-NOT: ExportedSpirFunc3
|
85 |
| -; CHECK-PERKERNEL-0-PROP-NOT: SpirKernel1 |
86 |
| -; CHECK-PERKERNEL-0-PROP-NOT: NotExportedSpirFunc1 |
87 | 79 |
|
88 | 80 | ; CHECK-PERKERNEL-1-PROP: [SYCL/exported symbols]
|
89 | 81 | ; CHECK-PERKERNEL-1-PROP-NEXT: ExportedSpirFunc2
|
90 | 82 | ; CHECK-PERKERNEL-1-PROP-NOT: ExportedSpirFunc1
|
91 | 83 | ; CHECK-PERKERNEL-1-PROP-NOT: ExportedSpirFunc3
|
92 |
| -; CHECK-PERKERNEL-1-PROP-NOT: SpirKernel1 |
93 |
| -; CHECK-PERKERNEL-1-PROP-NOT: NotExportedSpirFunc1 |
94 | 84 |
|
95 | 85 | ; CHECK-PERKERNEL-2-PROP: [SYCL/exported symbols]
|
96 | 86 | ; CHECK-PERKERNEL-2-PROP-NEXT: ExportedSpirFunc3
|
97 | 87 | ; CHECK-PERKERNEL-2-PROP-NOT: ExportedSpirFunc1
|
98 | 88 | ; CHECK-PERKERNEL-2-PROP-NOT: ExportedSpirFunc2
|
99 |
| -; CHECK-PERKERNEL-2-PROP-NOT: SpirKernel1 |
100 |
| -; CHECK-PERKERNEL-2-PROP-NOT: NotExportedSpirFunc1 |
101 | 89 |
|
102 | 90 | ; Kernel-only generated modules should have no exported Symbols
|
103 | 91 | ; CHECK-KERNELONLY-PROP-NOT: [SYCL/exported symbols]
|
104 | 92 | ; CHECK-KERNELONLY-PROP-NOT: ExportedSpirFunc3
|
105 | 93 | ; CHECK-KERNELONLY-PROP-NOT: ExportedSpirFunc1
|
106 | 94 | ; CHECK-KERNELONLY-PROP-NOT: ExportedSpirFunc2
|
107 |
| -; CHECK-KERNELONLY-PROP-NOT: SpirKernel1 |
108 |
| -; CHECK-KERNELONLY-PROP-NOT: NotExportedSpirFunc1 |
0 commit comments