[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 1 05:59:43 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">;
----------------
AaronBallman wrote:
IMO, where we eventually want to end up is with `IsDevice` and `IsHost` which composes with all the offloading languages (I cannot imagine a situation where you're compiling for the device in one offloading language while compiling for the host in another offloading language in the same compilation pass). e.g., `getLangOpts().SYCL && getLangOpts().IsDevice` tells you that you're doing a device compilation for SYCL.
https://github.com/llvm/llvm-project/pull/111389
More information about the cfe-commits
mailing list