We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nocapture
1 parent c1ed45f commit 8aec433Copy full SHA for 8aec433
clang/test/CodeGenSYCL/functionptr-addrspace.cpp
@@ -7,7 +7,7 @@ __attribute__((sycl_kernel)) void kernel_single_task(const Func &kernelFunc) {
7
kernelFunc();
8
}
9
10
-// CHECK: define dso_local spir_func{{.*}}invoke_function{{.*}}(i32 ()* %fptr, i32 addrspace(4)* %ptr)
+// CHECK: define dso_local spir_func{{.*}}invoke_function{{.*}}(i32 ()* nocapture %fptr, i32 addrspace(4)* nocapture %ptr)
11
void invoke_function(int (*fptr)(), int *ptr) {}
12
13
int f() { return 0; }
0 commit comments