|
76 | 76 | /// Check behaviors for dependency generation
|
77 | 77 | // RUN: %clangxx -fsycl -MD -c %s -### 2>&1 \
|
78 | 78 | // RUN: | FileCheck -check-prefix DEP_GEN %s
|
79 |
| -// DEP_GEN: clang{{.*}} "-fsycl-is-host" |
80 |
| -// DEP_GEN-SAME: "-Eonly" |
| 79 | +// DEP_GEN: clang{{.*}} "-fsycl-is-device" |
81 | 80 | // DEP_GEN-SAME: "-dependency-file"
|
82 | 81 | // DEP_GEN-SAME: "-MT"
|
83 | 82 | // DEP_GEN-SAME: "-internal-isystem" "{{.*}}{{[/\\]+}}include{{[/\\]+}}sycl"
|
|
88 | 87 | /// Dependency generation phases
|
89 | 88 | // RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl -MD -c %s -ccc-print-phases 2>&1 \
|
90 | 89 | // RUN: | FileCheck -check-prefix DEP_GEN_PHASES %s
|
91 |
| -// DEP_GEN_PHASES: 0: input, "[[INPUTFILE:.+\.cpp]]", c++, (host-sycl) |
92 |
| -// DEP_GEN_PHASES: 1: preprocessor, {0}, dependencies |
93 |
| -// DEP_GEN_PHASES: 2: input, "[[INPUTFILE]]", c++, (device-sycl) |
94 |
| -// DEP_GEN_PHASES: 3: preprocessor, {2}, c++-cpp-output, (device-sycl) |
95 |
| -// DEP_GEN_PHASES: 4: compiler, {3}, ir, (device-sycl) |
96 |
| -// DEP_GEN_PHASES: 5: offload, "device-sycl (spir64-unknown-unknown)" {4}, ir |
97 |
| -// DEP_GEN_PHASES: 6: append-footer, {0}, c++, (host-sycl) |
98 |
| -// DEP_GEN_PHASES: 7: preprocessor, {6}, c++-cpp-output, (host-sycl) |
99 |
| -// DEP_GEN_PHASES: 8: offload, "host-sycl (x86_64-unknown-linux-gnu)" {7}, "device-sycl (spir64-unknown-unknown)" {4}, c++-cpp-output |
100 |
| -// DEP_GEN_PHASES: 9: compiler, {8}, ir, (host-sycl) |
101 |
| -// DEP_GEN_PHASES: 10: backend, {9}, assembler, (host-sycl) |
102 |
| -// DEP_GEN_PHASES: 11: assembler, {10}, object, (host-sycl) |
103 |
| -// DEP_GEN_PHASES: 12: clang-offload-bundler, {5, 11}, object, (host-sycl) |
| 90 | +// DEP_GEN_PHASES: 0: input, "[[INPUTFILE:.+\.cpp]]", c++, (device-sycl) |
| 91 | +// DEP_GEN_PHASES: 1: preprocessor, {0}, c++-cpp-output, (device-sycl) |
| 92 | +// DEP_GEN_PHASES: 2: compiler, {1}, ir, (device-sycl) |
| 93 | +// DEP_GEN_PHASES: 3: offload, "device-sycl (spir64-unknown-unknown)" {2}, ir |
| 94 | +// DEP_GEN_PHASES: 4: input, "[[INPUTFILE]]", c++, (host-sycl) |
| 95 | +// DEP_GEN_PHASES: 5: append-footer, {4}, c++, (host-sycl) |
| 96 | +// DEP_GEN_PHASES: 6: preprocessor, {5}, c++-cpp-output, (host-sycl) |
| 97 | +// DEP_GEN_PHASES: 7: offload, "host-sycl (x86_64-unknown-linux-gnu)" {6}, "device-sycl (spir64-unknown-unknown)" {2}, c++-cpp-output |
| 98 | +// DEP_GEN_PHASES: 8: compiler, {7}, ir, (host-sycl) |
| 99 | +// DEP_GEN_PHASES: 9: backend, {8}, assembler, (host-sycl) |
| 100 | +// DEP_GEN_PHASES: 10: assembler, {9}, object, (host-sycl) |
| 101 | +// DEP_GEN_PHASES: 11: clang-offload-bundler, {3, 10}, object, (host-sycl) |
104 | 102 |
|
105 | 103 | /// Allow for -o and preprocessing
|
106 | 104 | // RUN: %clangxx -fsycl -MD -c %s -o dummy -### 2>&1 \
|
|
0 commit comments