Skip to content

Commit b20e9f4

Browse files
committed
TODO: revert this change after CodeGen part is updated
The CodeGen patch is outdated and it doesn't work with SYCL 2020 syntax used in this test.
1 parent 7788782 commit b20e9f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/test/CodeGenSYCL/convergent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ void foo() {
88
int a = 1;
99
}
1010

11-
template <typename Name, typename Func>
12-
__attribute__((sycl_kernel)) void kernel_single_task(const Func &kernelFunc) {
11+
template <typename KernelName, typename KernelType>
12+
[[clang::sycl_kernel]] void kernel_single_task(KernelType kernelFunc) {
1313
kernelFunc();
1414
}
1515

clang/test/CodeGenSYCL/debug-info-kernel-variables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define KERNEL __attribute__((sycl_kernel))
1515

1616
template <typename KernelName, typename KernelType>
17-
KERNEL void parallel_for(const KernelType &KernelFunc) {
17+
KERNEL void parallel_for(KernelType KernelFunc) {
1818
KernelFunc();
1919
}
2020

0 commit comments

Comments
 (0)