================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to