Skip to content

Commit 9a30876

Browse files
authored
Update group-local-memory-inlining.cpp
1 parent 40b659d commit 9a30876

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
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.
32

43
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -emit-llvm \
54
// RUN: -mllvm -debug-pass=Structure %s -o - 2>&1 \
65
// RUN: | FileCheck %s --check-prefix=CHECK-EARLYOPT
76
// CHECK-EARLYOPT: Function Integration/Inlining
87
// CHECK-EARLYOPT: Replace __sycl_allocateLocalMemory with allocation of memory in local address space
98

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-
229
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -emit-llvm \
2310
// RUN: -mllvm -debug-pass=Structure %s -o - -O0 2>&1 \
2411
// RUN: | FileCheck %s --check-prefix=CHECK-O0opt
2512
// CHECK-O0opt: Inliner for always_inline functions
2613
// 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

Comments
 (0)