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 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
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+ }
You can’t perform that action at this time.
0 commit comments