|
1 |
| -// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown-sycldevice \ |
2 |
| -// RUN: -S -emit-llvm -mllvm -debug-pass=Structure -disable-llvm-passes \ |
3 |
| -// RUN: -o - %s 2>&1 | FileCheck %s |
4 |
| -// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown-sycldevice \ |
5 |
| -// RUN: -S -emit-llvm -mllvm -debug-pass=Structure -o - %s 2>&1 \ |
6 |
| -// RUN: | FileCheck %s |
| 1 | +// Check that SYCLLowerWGLocalMemory pass is added to the SYCL device |
| 2 | +// compilation pipeline with the inliner pass. |
7 | 3 |
|
| 4 | +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -emit-llvm \ |
| 5 | +// RUN: -mllvm -debug-pass=Structure %s -o - 2>&1 \ |
| 6 | +// RUN: | FileCheck %s |
| 7 | +// CHECK: Function Integration/Inlining |
8 | 8 | // CHECK: Replace __sycl_allocateLocalMemory with allocation of memory in local address space
|
| 9 | + |
| 10 | +// Check that AlwaysInliner pass is always run for compilation of SYCL device |
| 11 | +// target code, even if all optimizations are disabled. |
| 12 | + |
| 13 | +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -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-sycldevice -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 |
| 21 | + |
| 22 | +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -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 |
0 commit comments