@@ -81,10 +81,6 @@ class Util {
81
81
// / half class.
82
82
static bool isSyclHalfType (const QualType &Ty);
83
83
84
- // / Checks whether given clang type is a full specialization of the SYCL
85
- // / property_list class.
86
- static bool isPropertyListType (const QualType &Ty);
87
-
88
84
// / Checks whether given clang type is a full specialization of the SYCL
89
85
// / accessor_property_list class.
90
86
static bool isAccessorPropertyListType (const QualType &Ty);
@@ -1198,8 +1194,6 @@ class SyclKernelFieldChecker : public SyclKernelFieldHandler {
1198
1194
return ;
1199
1195
}
1200
1196
QualType PropListTy = PropList.getAsType ();
1201
- if (Util::isPropertyListType (PropListTy))
1202
- return ;
1203
1197
if (!Util::isAccessorPropertyListType (PropListTy)) {
1204
1198
SemaRef.Diag (Loc,
1205
1199
diag::err_sycl_invalid_accessor_property_template_param);
@@ -1421,9 +1415,6 @@ class SyclKernelDeclCreator : public SyclKernelFieldHandler {
1421
1415
return ;
1422
1416
const auto PropList = cast<TemplateArgument>(AccTy->getTemplateArgs ()[5 ]);
1423
1417
QualType PropListTy = PropList.getAsType ();
1424
- // property_list contains runtime properties, it shouldn't be handled here.
1425
- if (Util::isPropertyListType (PropListTy))
1426
- return ;
1427
1418
const auto *AccPropListDecl =
1428
1419
cast<ClassTemplateSpecializationDecl>(PropListTy->getAsRecordDecl ());
1429
1420
const auto TemplArg = AccPropListDecl->getTemplateArgs ()[0 ];
@@ -3455,10 +3446,6 @@ bool Util::isSyclSpecConstantType(const QualType &Ty) {
3455
3446
return matchQualifiedTypeName (Ty, Scopes);
3456
3447
}
3457
3448
3458
- bool Util::isPropertyListType (const QualType &Ty) {
3459
- return isSyclType (Ty, " property_list" );
3460
- }
3461
-
3462
3449
bool Util::isSyclBufferLocationType (const QualType &Ty) {
3463
3450
const StringRef &PropertyName = " buffer_location" ;
3464
3451
const StringRef &InstanceName = " instance" ;
0 commit comments