@@ -644,18 +644,19 @@ static target getAccessTarget(const ClassTemplateSpecializationDecl *AccTy) {
644
644
AccTy->getTemplateArgs ()[3 ].getAsIntegral ().getExtValue ());
645
645
}
646
646
647
- // The first template argument to the kernel function is used to identify the
648
- // kernel itself.
647
+ // The first template argument to the kernel caller function is used to identify
648
+ // the kernel itself.
649
649
static QualType calculateKernelNameType (ASTContext &Ctx,
650
650
FunctionDecl *KernelCallerFunc) {
651
651
const TemplateArgumentList *TAL =
652
652
KernelCallerFunc->getTemplateSpecializationArgs ();
653
+ assert (TAL && " No template argument info" );
653
654
return TypeName::getFullyQualifiedType (TAL->get (0 ).getAsType (), Ctx,
654
655
/* WithGlobalNSPrefix=*/ true );
655
656
}
656
657
657
- // Gets a name for the kernel caller func , calculated from the first template
658
- // argument.
658
+ // Gets a name for the OpenCL kernel function , calculated from the first
659
+ // template argument of the kernel caller function .
659
660
static std::pair<std::string, std::string>
660
661
constructKernelName (Sema &S, FunctionDecl *KernelCallerFunc, MangleContext &MC) {
661
662
QualType KernelNameType =
@@ -996,7 +997,7 @@ class SyclKernelDeclCreator
996
997
}
997
998
998
999
void handleSyclStreamType (const CXXBaseSpecifier &, QualType FieldTy) final {
999
- // FIXME SYCL stream should be usable usable as a base type
1000
+ // FIXME SYCL stream should be usable as a base type
1000
1001
// See https://github.com/intel/llvm/issues/1552
1001
1002
}
1002
1003
@@ -1212,7 +1213,7 @@ class SyclKernelBodyCreator
1212
1213
}
1213
1214
1214
1215
void handleSyclAccessorType (const CXXBaseSpecifier &BS, QualType Ty) final {
1215
- // FIXME SYCL accessor should be usable usable as a base type
1216
+ // FIXME SYCL accessor should be usable as a base type
1216
1217
// See https://github.com/intel/llvm/issues/28.
1217
1218
}
1218
1219
@@ -1230,7 +1231,7 @@ class SyclKernelBodyCreator
1230
1231
}
1231
1232
1232
1233
void handleSyclStreamType (const CXXBaseSpecifier &BS, QualType Ty) final {
1233
- // FIXME SYCL stream should be usable usable as a base type
1234
+ // FIXME SYCL stream should be usable as a base type
1234
1235
// See https://github.com/intel/llvm/issues/1552
1235
1236
}
1236
1237
@@ -1365,7 +1366,7 @@ class SyclKernelIntHeaderCreator
1365
1366
}
1366
1367
void handleSyclStreamType (const CXXBaseSpecifier &BC,
1367
1368
QualType FieldTy) final {
1368
- // FIXME SYCL stream should be usable usable as a base type
1369
+ // FIXME SYCL stream should be usable as a base type
1369
1370
// See https://github.com/intel/llvm/issues/1552
1370
1371
}
1371
1372
0 commit comments