[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 07:45:10 PDT 2024


================
@@ -407,7 +407,8 @@ def MicrosoftExt : LangOpt<"MicrosoftExt">;
 def Borland : LangOpt<"Borland">;
 def CUDA : LangOpt<"CUDA">;
 def HIP : LangOpt<"HIP">;
-def SYCL : LangOpt<"SYCLIsDevice">;
+def SYCLHost : LangOpt<"SYCLIsHost">;
----------------
tahonermann wrote:

With regard to the `Is`, I was just preserving the style that was already there. The corresponding command line options are named `-fsycl-is-device` and `-fsycl-is-host`, so perhaps it is worth maintaining that symmetry. I'm ambivalent.

https://github.com/llvm/llvm-project/pull/111389


More information about the cfe-commits mailing list