File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 12
12
// CHECK: InferFunctionAttrsPass
13
13
// CHECK: AlwaysInlinerPass
14
14
// CHECK: ModuleInlinerWrapperPass
15
+ // CHECK: SYCLOptimizeBarriersPass
15
16
// CHECK: ConstantMergePass
16
- // SYCLOptimizeBarriersPass
17
17
// CHECK: SYCLMutatePrintfAddrspacePass
18
18
// CHECK: SYCLPropagateAspectsUsagePass
19
19
// CHECK: SYCLAddOptLevelAttributePass
28
28
29
29
// 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
30
30
// 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
+ }
You can’t perform that action at this time.
0 commit comments