@@ -925,13 +925,13 @@ class MarkWIScopeFnVisitor : public RecursiveASTVisitor<MarkWIScopeFnVisitor> {
925925 return true ;
926926 QualType Ty = Ctx.getRecordType (Call->getRecordDecl ());
927927 if (!Util::isSyclType (Ty, " group" , true /* Tmpl*/ ))
928- // not a member of cl:: sycl::group - continue search
928+ // not a member of sycl::group - continue search
929929 return true ;
930930 auto Name = Callee->getName ();
931931 if (((Name != " parallel_for_work_item" ) && (Name != " wait_for" )) ||
932932 Callee->hasAttr <SYCLScopeAttr>())
933933 return true ;
934- // it is a call to cl:: sycl::group::parallel_for_work_item/wait_for -
934+ // it is a call to sycl::group::parallel_for_work_item/wait_for -
935935 // mark the callee
936936 Callee->addAttr (
937937 SYCLScopeAttr::CreateImplicit (Ctx, SYCLScopeAttr::Level::WorkItem));
@@ -4215,7 +4215,7 @@ static const char *paramKind2Str(KernelParamKind K) {
42154215// VB,
42164216// std::array<T1, N>& VC, int param, T2 ... varargs) {
42174217// ...
4218- // deviceQueue.submit([&](cl:: sycl::handler& cgh) {
4218+ // deviceQueue.submit([&](sycl::handler& cgh) {
42194219// ...
42204220// cgh.parallel_for<class SimpleVadd<T1, N, T2...>>(...)
42214221// ...
@@ -4650,8 +4650,8 @@ void SYCLIntegrationHeader::emit(raw_ostream &O) {
46504650 FwdDeclEmitter.Visit (K.NameType );
46514651 O << " \n " ;
46524652
4653- O << " __SYCL_INLINE_NAMESPACE(cl) {\n " ;
46544653 O << " namespace sycl {\n " ;
4654+ O << " __SYCL_INLINE_VER_NAMESPACE(_V1) {\n " ;
46554655 O << " namespace detail {\n " ;
46564656
46574657 // Generate declaration of variable of type __sycl_device_global_registration
@@ -4795,8 +4795,8 @@ void SYCLIntegrationHeader::emit(raw_ostream &O) {
47954795 }
47964796 O << " \n " ;
47974797 O << " } // namespace detail\n " ;
4798+ O << " } // __SYCL_INLINE_VER_NAMESPACE(_V1)\n " ;
47984799 O << " } // namespace sycl\n " ;
4799- O << " } // __SYCL_INLINE_NAMESPACE(cl)\n " ;
48004800 O << " \n " ;
48014801}
48024802
@@ -5076,8 +5076,8 @@ bool SYCLIntegrationFooter::emit(raw_ostream &OS) {
50765076 DeviceGlobOS << " \" );\n " ;
50775077 } else {
50785078 EmittedFirstSpecConstant = true ;
5079- OS << " __SYCL_INLINE_NAMESPACE(cl) {\n " ;
50805079 OS << " namespace sycl {\n " ;
5080+ OS << " __SYCL_INLINE_VER_NAMESPACE(_V1) {\n " ;
50815081 OS << " namespace detail {\n " ;
50825082 OS << " template<>\n " ;
50835083 OS << " inline const char *get_spec_constant_symbolic_ID_impl<" ;
@@ -5095,8 +5095,8 @@ bool SYCLIntegrationFooter::emit(raw_ostream &OS) {
50955095 OS << " \" ;\n " ;
50965096 OS << " }\n " ;
50975097 OS << " } // namespace detail\n " ;
5098+ OS << " } // __SYCL_INLINE_VER_NAMESPACE(_V1)\n " ;
50985099 OS << " } // namespace sycl\n " ;
5099- OS << " } // __SYCL_INLINE_NAMESPACE(cl)\n " ;
51005100 }
51015101 }
51025102
@@ -5132,8 +5132,8 @@ bool Util::isSyclSpecialType(const QualType Ty) {
51325132
51335133bool Util::isSyclSpecConstantType (QualType Ty) {
51345134 std::array<DeclContextDesc, 6 > Scopes = {
5135- Util::MakeDeclContextDesc (Decl::Kind::Namespace, " cl" ),
51365135 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " sycl" ),
5136+ Util::MakeDeclContextDesc (Decl::Kind::Namespace, " _V1" ),
51375137 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " ext" ),
51385138 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " oneapi" ),
51395139 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " experimental" ),
@@ -5144,25 +5144,25 @@ bool Util::isSyclSpecConstantType(QualType Ty) {
51445144
51455145bool Util::isSyclSpecIdType (QualType Ty) {
51465146 std::array<DeclContextDesc, 3 > Scopes = {
5147- Util::MakeDeclContextDesc (clang::Decl::Kind::Namespace, " cl" ),
51485147 Util::MakeDeclContextDesc (clang::Decl::Kind::Namespace, " sycl" ),
5148+ Util::MakeDeclContextDesc (Decl::Kind::Namespace, " _V1" ),
51495149 Util::MakeDeclContextDesc (Decl::Kind::ClassTemplateSpecialization,
51505150 " specialization_id" )};
51515151 return matchQualifiedTypeName (Ty, Scopes);
51525152}
51535153
51545154bool Util::isSyclKernelHandlerType (QualType Ty) {
51555155 std::array<DeclContextDesc, 3 > Scopes = {
5156- Util::MakeDeclContextDesc (Decl::Kind::Namespace, " cl" ),
51575156 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " sycl" ),
5157+ Util::MakeDeclContextDesc (Decl::Kind::Namespace, " _V1" ),
51585158 Util::MakeDeclContextDesc (Decl::Kind::CXXRecord, " kernel_handler" )};
51595159 return matchQualifiedTypeName (Ty, Scopes);
51605160}
51615161
51625162bool Util::isSyclAccessorNoAliasPropertyType (QualType Ty) {
51635163 std::array<DeclContextDesc, 7 > Scopes = {
5164- Util::MakeDeclContextDesc (Decl::Kind::Namespace, " cl" ),
51655164 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " sycl" ),
5165+ Util::MakeDeclContextDesc (Decl::Kind::Namespace, " _V1" ),
51665166 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " ext" ),
51675167 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " oneapi" ),
51685168 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " property" ),
@@ -5174,8 +5174,8 @@ bool Util::isSyclAccessorNoAliasPropertyType(QualType Ty) {
51745174
51755175bool Util::isSyclBufferLocationType (QualType Ty) {
51765176 std::array<DeclContextDesc, 7 > Scopes = {
5177- Util::MakeDeclContextDesc (Decl::Kind::Namespace, " cl" ),
51785177 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " sycl" ),
5178+ Util::MakeDeclContextDesc (Decl::Kind::Namespace, " _V1" ),
51795179 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " ext" ),
51805180 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " intel" ),
51815181 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " property" ),
@@ -5189,16 +5189,16 @@ bool Util::isSyclType(QualType Ty, StringRef Name, bool Tmpl) {
51895189 Decl::Kind ClassDeclKind =
51905190 Tmpl ? Decl::Kind::ClassTemplateSpecialization : Decl::Kind::CXXRecord;
51915191 std::array<DeclContextDesc, 3 > Scopes = {
5192- Util::MakeDeclContextDesc (Decl::Kind::Namespace, " cl" ),
51935192 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " sycl" ),
5193+ Util::MakeDeclContextDesc (Decl::Kind::Namespace, " _V1" ),
51945194 Util::MakeDeclContextDesc (ClassDeclKind, Name)};
51955195 return matchQualifiedTypeName (Ty, Scopes);
51965196}
51975197
51985198bool Util::isAccessorPropertyListType (QualType Ty) {
51995199 std::array<DeclContextDesc, 5 > Scopes = {
5200- Util::MakeDeclContextDesc (Decl::Kind::Namespace, " cl" ),
52015200 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " sycl" ),
5201+ Util::MakeDeclContextDesc (Decl::Kind::Namespace, " _V1" ),
52025202 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " ext" ),
52035203 Util::MakeDeclContextDesc (Decl::Kind::Namespace, " oneapi" ),
52045204 Util::MakeDeclContextDesc (Decl::Kind::ClassTemplateSpecialization,
0 commit comments