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