|
12 | 12 | /// preprocessor and another one joining the device linking outputs to the host |
13 | 13 | /// action. The same graph should be generated when no -fsycl-targets is used |
14 | 14 | /// The same phase graph will be used with -fsycl-use-bitcode |
15 | | -// RUN: %clang -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -fsycl-targets=spir64-unknown-unknown-sycldevice %s 2>&1 \ |
| 15 | +// RUN: %clang -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64-unknown-unknown-sycldevice %s 2>&1 \ |
16 | 16 | // RUN: | FileCheck -check-prefixes=CHK-PHASES,CHK-PHASES-DEFAULT-MODE %s |
17 | | -// RUN: %clang_cl -ccc-print-phases -fsycl -fsycl-device-code-split=per_source -fsycl-targets=spir64-unknown-unknown-sycldevice %s 2>&1 \ |
| 17 | +// RUN: %clang_cl -ccc-print-phases -fsycl -fno-sycl-devicelib -fsycl-device-code-split=per_source -fsycl-targets=spir64-unknown-unknown-sycldevice %s 2>&1 \ |
18 | 18 | // RUN: | FileCheck -check-prefixes=CHK-PHASES,CHK-PHASES-CL-MODE %s |
19 | | -// RUN: %clang -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split=per_source -fno-sycl-use-bitcode %s 2>&1 \ |
| 19 | +// RUN: %clang -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split=per_source -fno-sycl-use-bitcode %s 2>&1 \ |
20 | 20 | // RUN: | FileCheck -check-prefixes=CHK-PHASES,CHK-PHASES-DEFAULT-MODE %s |
21 | | -// RUN: %clang_cl -ccc-print-phases -fsycl -fsycl-device-code-split=per_source -fno-sycl-use-bitcode %s 2>&1 \ |
| 21 | +// RUN: %clang_cl -ccc-print-phases -fsycl -fno-sycl-devicelib -fsycl-device-code-split=per_source -fno-sycl-use-bitcode %s 2>&1 \ |
22 | 22 | // RUN: | FileCheck -check-prefixes=CHK-PHASES,CHK-PHASES-CL-MODE %s |
23 | | -// RUN: %clang -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split=per_source -fsycl-use-bitcode %s 2>&1 \ |
| 23 | +// RUN: %clang -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split=per_source -fsycl-use-bitcode %s 2>&1 \ |
24 | 24 | // RUN: | FileCheck -check-prefixes=CHK-PHASES,CHK-PHASES-DEFAULT-MODE %s |
25 | | -// RUN: %clang_cl -ccc-print-phases -fsycl -fsycl-device-code-split=per_source -fsycl-use-bitcode %s 2>&1 \ |
| 25 | +// RUN: %clang_cl -ccc-print-phases -fsycl -fno-sycl-devicelib -fsycl-device-code-split=per_source -fsycl-use-bitcode %s 2>&1 \ |
26 | 26 | // RUN: | FileCheck -check-prefixes=CHK-PHASES,CHK-PHASES-CL-MODE %s |
27 | 27 | // CHK-PHASES: 0: input, "[[INPUT:.+\.c]]", c, (host-sycl) |
28 | 28 | // CHK-PHASES: 1: preprocessor, {0}, cpp-output, (host-sycl) |
|
49 | 49 |
|
50 | 50 | /// Check the phases also add a library to make sure it is treated as input by |
51 | 51 | /// the device. |
52 | | -// RUN: %clang -ccc-print-phases -target x86_64-unknown-linux-gnu -lsomelib -fsycl -fsycl-device-code-split -fsycl-targets=spir64-unknown-unknown-sycldevice %s 2>&1 \ |
| 52 | +// RUN: %clang -ccc-print-phases -target x86_64-unknown-linux-gnu -lsomelib -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64-unknown-unknown-sycldevice %s 2>&1 \ |
53 | 53 | // RUN: | FileCheck -check-prefix=CHK-PHASES-LIB %s |
54 | 54 | // CHK-PHASES-LIB: 0: input, "somelib", object, (host-sycl) |
55 | 55 | // CHK-PHASES-LIB: 1: input, "[[INPUT:.+\.c]]", c, (host-sycl) |
|
75 | 75 |
|
76 | 76 | /// Check the phases when using and multiple source files |
77 | 77 | // RUN: echo " " > %t.c |
78 | | -// RUN: %clang -ccc-print-phases -lsomelib -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -fsycl-targets=spir64-unknown-unknown-sycldevice %s %t.c 2>&1 \ |
| 78 | +// RUN: %clang -ccc-print-phases -lsomelib -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64-unknown-unknown-sycldevice %s %t.c 2>&1 \ |
79 | 79 | // RUN: | FileCheck -check-prefix=CHK-PHASES-FILES %s |
80 | 80 |
|
81 | 81 | // CHK-PHASES-FILES: 0: input, "somelib", object, (host-sycl) |
|
112 | 112 |
|
113 | 113 | /// Check separate compilation with offloading - unbundling actions |
114 | 114 | // RUN: touch %t.o |
115 | | -// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -o %t.out -lsomelib -fsycl-targets=spir64-unknown-unknown-sycldevice %t.o 2>&1 \ |
| 115 | +// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -o %t.out -lsomelib -fsycl-targets=spir64-unknown-unknown-sycldevice %t.o 2>&1 \ |
116 | 116 | // RUN: | FileCheck -DINPUT=%t.o -check-prefix=CHK-UBACTIONS %s |
117 | 117 | // RUN: mkdir -p %t_dir |
118 | 118 | // RUN: touch %t_dir/dummy |
119 | | -// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -o %t.out -lsomelib -fsycl-targets=spir64-unknown-unknown-sycldevice %t_dir/dummy 2>&1 \ |
| 119 | +// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -o %t.out -lsomelib -fsycl-targets=spir64-unknown-unknown-sycldevice %t_dir/dummy 2>&1 \ |
120 | 120 | // RUN: | FileCheck -DINPUT=%t_dir/dummy -check-prefix=CHK-UBACTIONS %s |
121 | 121 | // CHK-UBACTIONS: 0: input, "somelib", object, (host-sycl) |
122 | 122 | // CHK-UBACTIONS: 1: input, "[[INPUT]]", object, (host-sycl) |
|
134 | 134 |
|
135 | 135 | /// Check separate compilation with offloading - unbundling with source |
136 | 136 | // RUN: touch %t.o |
137 | | -// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -lsomelib -fsycl -fsycl-device-code-split %t.o -fsycl-targets=spir64-unknown-unknown-sycldevice %s 2>&1 \ |
| 137 | +// RUN: %clang -### -ccc-print-phases -target x86_64-unknown-linux-gnu -lsomelib -fsycl -fno-sycl-devicelib -fsycl-device-code-split %t.o -fsycl-targets=spir64-unknown-unknown-sycldevice %s 2>&1 \ |
138 | 138 | // RUN: | FileCheck -check-prefix=CHK-UBUACTIONS %s |
139 | 139 | // CHK-UBUACTIONS: 0: input, "somelib", object, (host-sycl) |
140 | 140 | // CHK-UBUACTIONS: 1: input, "[[INPUT1:.+\.o]]", object, (host-sycl) |
|
161 | 161 | /// ########################################################################### |
162 | 162 |
|
163 | 163 | /// Ahead of Time compilation for fpga, gen, cpu |
164 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-phases -fsycl -fsycl-device-code-split -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice %s 2>&1 \ |
| 164 | +// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-phases -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice %s 2>&1 \ |
165 | 165 | // RUN: | FileCheck %s -check-prefixes=CHK-PHASES-AOT,CHK-PHASES-FPGA |
166 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-phases -fsycl -fsycl-device-code-split -fsycl-targets=spir64_gen-unknown-unknown-sycldevice %s 2>&1 \ |
| 166 | +// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-phases -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64_gen-unknown-unknown-sycldevice %s 2>&1 \ |
167 | 167 | // RUN: | FileCheck %s -check-prefixes=CHK-PHASES-AOT,CHK-PHASES-GEN |
168 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-phases -fsycl -fsycl-device-code-split -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %s 2>&1 \ |
| 168 | +// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-phases -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %s 2>&1 \ |
169 | 169 | // RUN: | FileCheck %s -check-prefixes=CHK-PHASES-AOT,CHK-PHASES-CPU |
170 | 170 | // CHK-PHASES-AOT: 0: input, "[[INPUT:.+\.c]]", c, (host-sycl) |
171 | 171 | // CHK-PHASES-AOT: 1: preprocessor, {0}, cpp-output, (host-sycl) |
|
196 | 196 | /// ########################################################################### |
197 | 197 |
|
198 | 198 | /// Ahead of Time compilation for fpga, gen, cpu - tool invocation |
199 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice %s -### 2>&1 \ |
| 199 | +// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64_fpga-unknown-unknown-sycldevice %s -### 2>&1 \ |
200 | 200 | // RUN: | FileCheck %s -check-prefixes=CHK-TOOLS-AOT,CHK-TOOLS-FPGA |
201 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -fintelfpga %s -### 2>&1 \ |
| 201 | +// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fintelfpga %s -### 2>&1 \ |
202 | 202 | // RUN: | FileCheck %s -check-prefixes=CHK-TOOLS-AOT,CHK-TOOLS-FPGA |
203 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -fsycl-targets=spir64_gen-unknown-unknown-sycldevice %s -### 2>&1 \ |
| 203 | +// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64_gen-unknown-unknown-sycldevice %s -### 2>&1 \ |
204 | 204 | // RUN: | FileCheck %s -check-prefixes=CHK-TOOLS-AOT,CHK-TOOLS-GEN |
205 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %s -### 2>&1 \ |
| 205 | +// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64_x86_64-unknown-unknown-sycldevice %s -### 2>&1 \ |
206 | 206 | // RUN: | FileCheck %s -check-prefixes=CHK-TOOLS-AOT,CHK-TOOLS-CPU |
207 | 207 | // CHK-TOOLS-AOT: clang{{.*}} "-fsycl-is-device" {{.*}} "-o" "[[OUTPUT1:.+\.bc]]" |
208 | 208 | // CHK-TOOLS-AOT: llvm-link{{.*}} "[[OUTPUT1]]" "-o" "[[OUTPUT2:.+\.bc]]" |
|
226 | 226 | /// ########################################################################### |
227 | 227 |
|
228 | 228 | /// offload with multiple targets, including AOT |
229 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fsycl-device-code-split -fsycl-targets=spir64-unknown-unknown-sycldevice,spir64_fpga-unknown-unknown-sycldevice,spir64_gen-unknown-unknown-sycldevice -### -ccc-print-phases %s 2>&1 \ |
| 229 | +// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl -fno-sycl-devicelib -fsycl-device-code-split -fsycl-targets=spir64-unknown-unknown-sycldevice,spir64_fpga-unknown-unknown-sycldevice,spir64_gen-unknown-unknown-sycldevice -### -ccc-print-phases %s 2>&1 \ |
230 | 230 | // RUN: | FileCheck -check-prefix=CHK-PHASE-MULTI-TARG %s |
231 | 231 | // CHK-PHASE-MULTI-TARG: 0: input, "[[INPUT:.+\.c]]", c, (host-sycl) |
232 | 232 | // CHK-PHASE-MULTI-TARG: 1: preprocessor, {0}, cpp-output, (host-sycl) |
|
0 commit comments