Skip to content

Commit 71bdb3f

Browse files
committed
adjust test
1 parent 73266d4 commit 71bdb3f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

clang/test/CodeGenSYCL/kernel-early-optimization-pipeline.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// CHECK: InferFunctionAttrsPass
1313
// CHECK: AlwaysInlinerPass
1414
// CHECK: ModuleInlinerWrapperPass
15+
// CHECK: SYCLOptimizeBarriersPass
1516
// CHECK: ConstantMergePass
16-
// SYCLOptimizeBarriersPass
1717
// CHECK: SYCLMutatePrintfAddrspacePass
1818
// CHECK: SYCLPropagateAspectsUsagePass
1919
// CHECK: SYCLAddOptLevelAttributePass
@@ -28,3 +28,12 @@
2828

2929
// RUN: %clang_cc1 -O0 -fsycl-is-device -triple spir64-unknown-unknown %s -mdebug-pass Structure -emit-llvm -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O0
3030
// CHECK-O0-NOT: SYCLOptimizeBarriersPass
31+
32+
template <typename name, typename Func>
33+
void kernel(const Func &f) __attribute__((sycl_kernel)) {
34+
f();
35+
}
36+
37+
void bar() {
38+
kernel<class MyKernel>([=]() {});
39+
}

0 commit comments

Comments
 (0)