|
1 | 1 | // Check that SYCLLowerWGLocalMemory pass is added to the SYCL device
|
2 |
| -// compilation pipeline with the inliner pass. |
| 2 | +// compilation pipeline with the inliner pass (new Pass Manager). |
3 | 3 |
|
4 | 4 | // RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -emit-llvm \
|
5 |
| -// RUN: -mllvm -debug-pass=Structure %s -o - 2>&1 \ |
6 |
| -// RUN: | FileCheck %s |
7 |
| -// CHECK: Function Integration/Inlining |
8 |
| -// CHECK: Replace __sycl_allocateLocalMemory with allocation of memory in local address space |
| 5 | +// RUN: -fno-legacy-pass-manager -mdebug-pass Structure %s -o /dev/null 2>&1 \ |
| 6 | +// RUN: | FileCheck %s -check-prefixes=CHECK-INL,CHECK |
| 7 | + |
| 8 | +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -emit-llvm -O0 \ |
| 9 | +// RUN: -fno-legacy-pass-manager -mdebug-pass Structure %s -o /dev/null 2>&1 \ |
| 10 | +// RUN: | FileCheck %s --check-prefixes=CHECK-ALWINL,CHECK |
9 | 11 |
|
10 | 12 | // Check that AlwaysInliner pass is always run for compilation of SYCL device
|
11 | 13 | // target code, even if all optimizations are disabled.
|
12 | 14 |
|
13 |
| -// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -emit-llvm \ |
14 |
| -// RUN: -mllvm -debug-pass=Structure %s -o - -disable-llvm-passes 2>&1 \ |
15 |
| -// RUN: | FileCheck %s --check-prefix=CHECK-NOPASSES |
16 |
| -// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -emit-llvm \ |
17 |
| -// RUN: -mllvm -debug-pass=Structure %s -o - -fno-sycl-early-optimizations 2>&1 \ |
18 |
| -// RUN: | FileCheck %s --check-prefix=CHECK-NOPASSES |
19 |
| -// CHECK-NOPASSES: Inliner for always_inline functions |
20 |
| -// CHECK-NOPASSES: Replace __sycl_allocateLocalMemory with allocation of memory in local address space |
| 15 | +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -emit-llvm -disable-llvm-passes \ |
| 16 | +// RUN: -fno-legacy-pass-manager -mdebug-pass Structure %s -o /dev/null 2>&1 \ |
| 17 | +// RUN: | FileCheck %s --check-prefixes=CHECK-ALWINL,CHECK |
| 18 | +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -emit-llvm -fno-sycl-early-optimizations \ |
| 19 | +// RUN: -fno-legacy-pass-manager -mdebug-pass Structure %s -o /dev/null 2>&1 \ |
| 20 | +// RUN: | FileCheck %s --check-prefixes=CHECK-ALWINL,CHECK |
21 | 21 |
|
22 |
| -// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -emit-llvm \ |
23 |
| -// RUN: -mllvm -debug-pass=Structure %s -o - -O0 2>&1 \ |
24 |
| -// RUN: | FileCheck %s --check-prefix=CHECK-O0opt |
25 |
| -// CHECK-O0opt: Inliner for always_inline functions |
26 |
| -// CHECK-O0opt: Replace __sycl_allocateLocalMemory with allocation of memory in local address space |
| 22 | +// CHECK-INL: Running pass: ModuleInlinerWrapperPass on [module] |
| 23 | +// CHECK-ALWINL: Running pass: AlwaysInlinerPass on [module] |
| 24 | +// CHECK: Running pass: SYCLLowerWGLocalMemoryPass on [module] |
0 commit comments