|
1 |
| -//RUN: %clang -fsycl -fsycl-targets=native_cpu -ccc-print-phases %s 2>&1 | FileCheck %s --check-prefix=CHECK_ACTIONS |
2 |
| -//RUN: %clang -fsycl -fsycl-targets=native_cpu -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK_BINDINGS |
3 |
| -//RUN: %clang -fsycl -fsycl-targets=native_cpu -### %s 2>&1 | FileCheck %s --check-prefix=CHECK_INVO |
4 |
| -//RUN: %clang -fsycl -fsycl-targets=native_cpu -target aarch64-unknown-linux-gnu -ccc-print-phases %s 2>&1 | FileCheck %s --check-prefix=CHECK_ACTIONS-AARCH64 |
| 1 | +//RUN: %clang -fsycl -fsycl-targets=native_cpu -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc -ccc-print-phases %s 2>&1 | FileCheck %s --check-prefix=CHECK_ACTIONS |
| 2 | +//RUN: %clang -fsycl -fsycl-targets=native_cpu -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK_BINDINGS |
| 3 | +//RUN: %clang -fsycl -fsycl-targets=native_cpu -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc -### %s 2>&1 | FileCheck %s --check-prefix=CHECK_INVO |
| 4 | +//RUN: %clang -fsycl -fsycl-targets=native_cpu -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc -target aarch64-unknown-linux-gnu -ccc-print-phases %s 2>&1 | FileCheck %s --check-prefix=CHECK_ACTIONS-AARCH64 |
5 | 5 |
|
6 | 6 |
|
7 | 7 | //CHECK_ACTIONS: +- 0: input, "{{.*}}sycl-native-cpu-fsycl.cpp", c++, (host-sycl)
|
|
15 | 15 | //CHECK_ACTIONS: +- 8: backend, {7}, assembler, (host-sycl)
|
16 | 16 | //CHECK_ACTIONS: +- 9: assembler, {8}, object, (host-sycl)
|
17 | 17 | //CHECK_ACTIONS:+- 10: linker, {9}, image, (host-sycl)
|
| 18 | +//CHECK_ACTIONS: +- 11: linker, {5}, ir, (device-sycl) |
| 19 | +//CHECK_ACTIONS: |- 12: input, "{{.*}}libspirv{{.*}}", ir, (device-sycl) |
| 20 | +//CHECK_ACTIONS: +- 13: linker, {11, 12}, ir, (device-sycl) |
18 | 21 | //this is where we compile the device code to a shared lib, and we link the host shared lib and the device shared lib
|
19 |
| -//CHECK_ACTIONS:| +- 11: linker, {5}, ir, (device-sycl) |
20 |
| -//CHECK_ACTIONS:| +- 12: backend, {11}, assembler, (device-sycl) |
21 |
| -//CHECK_ACTIONS:|- 13: assembler, {12}, object, (device-sycl) |
| 22 | +//CHECK_ACTIONS:| +- 14: backend, {13}, assembler, (device-sycl) |
| 23 | +//CHECK_ACTIONS:|- 15: assembler, {14}, object, (device-sycl) |
22 | 24 | //call sycl-post-link and clang-offload-wrapper
|
23 |
| -//CHECK_ACTIONS:| +- 14: sycl-post-link, {11}, tempfiletable, (device-sycl) |
24 |
| -//CHECK_ACTIONS:|- 15: clang-offload-wrapper, {14}, object, (device-sycl) |
25 |
| -//CHECK_ACTIONS:16: offload, "host-sycl ({{.*}})" {10}, "device-sycl ({{.*}})" {13}, "device-sycl ({{.*}})" {15}, image |
| 25 | +//CHECK_ACTIONS:| +- 16: sycl-post-link, {13}, tempfiletable, (device-sycl) |
| 26 | +//CHECK_ACTIONS:|- 17: clang-offload-wrapper, {16}, object, (device-sycl) |
| 27 | +//CHECK_ACTIONS:18: offload, "host-sycl ({{.*}})" {10}, "device-sycl ({{.*}})" {15}, "device-sycl ({{.*}})" {17}, image |
26 | 28 |
|
27 | 29 |
|
28 | 30 | //CHECK_BINDINGS:# "{{.*}}" - "clang", inputs: ["{{.*}}sycl-native-cpu-fsycl.cpp"], output: "[[KERNELIR:.*]].bc"
|
29 | 31 | //CHECK_BINDINGS:# "{{.*}}" - "SYCL::Linker", inputs: ["[[KERNELIR]].bc"], output: "[[KERNELLINK:.*]].bc"
|
30 |
| -//CHECK_BINDINGS:# "{{.*}}" - "clang", inputs: ["[[KERNELLINK]].bc"], output: "[[KERNELOBJ:.*]].o" |
31 |
| -//CHECK_BINDINGS:# "{{.*}}" - "SYCL post link", inputs: ["[[KERNELLINK]].bc"], output: "[[TABLEFILE:.*]].table" |
| 32 | +//CHECK_BINDINGS:# "{{.*}}" - "SYCL::Linker", inputs: ["[[KERNELLINK]].bc", "{{.*}}.bc"], output: "[[KERNELLINKWLIB:.*]].bc" |
| 33 | +//CHECK_BINDINGS:# "{{.*}}" - "clang", inputs: ["[[KERNELLINKWLIB]].bc"], output: "[[KERNELOBJ:.*]].o" |
| 34 | +//CHECK_BINDINGS:# "{{.*}}" - "SYCL post link", inputs: ["[[KERNELLINKWLIB]].bc"], output: "[[TABLEFILE:.*]].table" |
32 | 35 | //CHECK_BINDINGS:# "{{.*}}" - "offload wrapper", inputs: ["[[TABLEFILE]].table"], output: "[[WRAPPEROBJ:.*]].o"
|
33 | 36 | //CHECK_BINDINGS:# "{{.*}}" - "Append Footer to source", inputs: ["{{.*}}sycl-native-cpu-fsycl.cpp"], output: "[[SRCWFOOTER:.*]].cpp"
|
34 | 37 | //CHECK_BINDINGS:# "{{.*}}" - "clang", inputs: ["[[SRCWFOOTER]].cpp", "[[KERNELIR]].bc"], output: "[[HOSTOBJ:.*]].o"
|
|
38 | 41 | //CHECK_INVO:{{.*}}clang{{.*}}"-x" "ir"
|
39 | 42 | //CHECK_INVO:{{.*}}clang{{.*}}"-fsycl-is-host"{{.*}}
|
40 | 43 |
|
41 |
| -// checkes that the device and host triple is correct in the generated actions when it is set explicitly |
42 |
| -//CHECK_ACTIONS-AARCH64: +- 0: input, "{{.*}}sycl-native-cpu-fsycl.cpp", c++, (host-sycl) |
43 |
| -//CHECK_ACTIONS-AARCH64: +- 1: append-footer, {0}, c++, (host-sycl) |
44 |
| -//CHECK_ACTIONS-AARCH64: +- 2: preprocessor, {1}, c++-cpp-output, (host-sycl) |
45 |
| -//CHECK_ACTIONS-AARCH64: | +- 3: input, "{{.*}}sycl-native-cpu-fsycl.cpp", c++, (device-sycl) |
46 |
| -//CHECK_ACTIONS-AARCH64: | +- 4: preprocessor, {3}, c++-cpp-output, (device-sycl) |
47 |
| -//CHECK_ACTIONS-AARCH64: |- 5: compiler, {4}, ir, (device-sycl) |
| 44 | +// checks that the device and host triple is correct in the generated actions when it is set explicitly |
48 | 45 | //CHECK_ACTIONS-AARCH64: +- 6: offload, "host-sycl (aarch64-unknown-linux-gnu)" {2}, "device-sycl (aarch64-unknown-linux-gnu)" {5}, c++-cpp-output
|
49 |
| -//CHECK_ACTIONS-AARCH64: +- 7: compiler, {6}, ir, (host-sycl) |
50 |
| -//CHECK_ACTIONS-AARCH64: +- 8: backend, {7}, assembler, (host-sycl) |
51 |
| -//CHECK_ACTIONS-AARCH64: +- 9: assembler, {8}, object, (host-sycl) |
52 |
| -//CHECK_ACTIONS-AARCH64:+- 10: linker, {9}, image, (host-sycl) |
53 |
| -//CHECK_ACTIONS-AARCH64:| +- 11: linker, {5}, ir, (device-sycl) |
54 |
| -//CHECK_ACTIONS-AARCH64:| +- 12: backend, {11}, assembler, (device-sycl) |
55 |
| -//CHECK_ACTIONS-AARCH64:|- 13: assembler, {12}, object, (device-sycl) |
56 |
| -//CHECK_ACTIONS-AARCH64:| +- 14: sycl-post-link, {11}, tempfiletable, (device-sycl) |
57 |
| -//CHECK_ACTIONS-AARCH64:|- 15: clang-offload-wrapper, {14}, object, (device-sycl) |
58 |
| -//CHECK_ACTIONS-AARCH64:16: offload, "host-sycl (aarch64-unknown-linux-gnu)" {10}, "device-sycl (aarch64-unknown-linux-gnu)" {13}, "device-sycl (aarch64-unknown-linux-gnu)" {15}, image |
| 46 | +//CHECK_ACTIONS-AARCH64:{{[0-9]*}}: offload, "host-sycl (aarch64-unknown-linux-gnu)" {{{[0-9]*}}}, "device-sycl (aarch64-unknown-linux-gnu)" {{{[0-9]*}}}, "device-sycl (aarch64-unknown-linux-gnu)" {{{[0-9]*}}}, image |
0 commit comments