llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Mariya Podchishchaeva (Fznamznon)

<details>
<summary>Changes</summary>

The test checks x86 target in fsycl-is-device mode. x86 is not a valid 
offloading target and IMO test meant to check fsycl-is-host mode to make sure 
host invocations of __builtin_sycl_unique_stable_name work correctly. This also 
switches the test to use sycl_entry_point attribute instead of sycl_kernel 
because the intention for the future SYCL changes is to use sycl_entry_point 
and eventually remove sycl_kernel attribute when sycl_entry_point supports 
enough SYCL cases.

---
Full diff: https://github.com/llvm/llvm-project/pull/146854.diff


1 Files Affected:

- (modified) clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp (+5-5) 


``````````diff
diff --git a/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp 
b/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp
index 7dd08a0c89255..c844673db0d0e 100644
--- a/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp
+++ b/clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp
@@ -1,19 +1,19 @@
-// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -aux-triple 
x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -fsycl-is-device 
-emit-llvm %s -o - | FileCheck %s '-D$ADDRSPACE=addrspace(1) '
-// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fsycl-is-device 
-disable-llvm-passes -fsycl-is-device -emit-llvm %s -o - | FileCheck %s 
'-D$ADDRSPACE='
+// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -aux-triple 
x86_64-pc-windows-msvc -fsycl-is-device -disable-llvm-passes -emit-llvm %s -o - 
| FileCheck %s '-D$ADDRSPACE=addrspace(1) '
+// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fsycl-is-host 
-disable-llvm-passes -emit-llvm %s -o - | FileCheck %s '-D$ADDRSPACE='
 
 
 template<typename KN, typename Func>
-__attribute__((sycl_kernel)) void kernel(Func F){
+[[clang::sycl_kernel_entry_point(KN)]] void kernel(Func F){
   F();
 }
 
 template<typename KN, typename Func>
-__attribute__((sycl_kernel)) void kernel2(Func F){
+[[clang::sycl_kernel_entry_point(KN)]] void kernel2(Func F){
   F(1);
 }
 
 template<typename KN, typename Func>
-__attribute__((sycl_kernel)) void kernel3(Func F){
+[[clang::sycl_kernel_entry_point(KN)]] void kernel3(Func F){
   F(1.1);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/146854
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to