@@ -412,10 +412,6 @@ class LangOpt<string name, code customCode = [{}], bit silentlyIgnore = 0> {
412412 // The language option to test; ignored when custom code is supplied.
413413 string Name = name;
414414
415- // If set to 1, the attribute is accepted but is silently ignored. This is
416- // useful in multi-compilation situations like SYCL.
417- bit SilentlyIgnore = silentlyIgnore;
418-
419415 // A custom predicate, written as an expression evaluated in a context with
420416 // "LangOpts" bound.
421417 code CustomCode = customCode;
@@ -426,7 +422,6 @@ def CUDA : LangOpt<"CUDA">;
426422def HIP : LangOpt<"HIP">;
427423def SYCLHost : LangOpt<"SYCLIsHost">;
428424def SYCLDevice : LangOpt<"SYCLIsDevice">;
429- def SilentlyIgnoreSYCLHost : LangOpt<"SYCLIsHost", "", 1>;
430425def COnly : LangOpt<"", "!LangOpts.CPlusPlus">;
431426def CPlusPlus : LangOpt<"CPlusPlus">;
432427def OpenCL : LangOpt<"OpenCL">;
@@ -1556,9 +1551,9 @@ def GlobalStorageNonLocalVar : SubsetSubject<Var,
15561551 "global variables">;
15571552
15581553def SYCLExternal : InheritableAttr {
1559- let Spellings = [GNU <"sycl_external">];
1554+ let Spellings = [Clang <"sycl_external">];
15601555 let Subjects = SubjectList<[Function, GlobalStorageNonLocalVar]>;
1561- let LangOpts = [SYCLDevice, SilentlyIgnoreSYCLHost ];
1556+ let LangOpts = [SYCLDevice];
15621557 let Documentation = [SYCLExternalDocs];
15631558}
15641559
0 commit comments