@@ -306,14 +306,15 @@ static int64_t getIntExprValue(const Expr *E, ASTContext &Ctx) {
306
306
return E->getIntegerConstantExpr (Ctx)->getSExtValue ();
307
307
}
308
308
309
- // Collect function attributes related to SYCL
309
+ // Collect function attributes related to SYCL.
310
310
static void collectSYCLAttributes (Sema &S, FunctionDecl *FD,
311
311
llvm::SmallVector<Attr *, 4 > &Attrs,
312
312
bool DirectlyCalled = true ) {
313
313
if (!FD->hasAttrs ())
314
314
return ;
315
315
316
316
llvm::copy_if (FD->getAttrs (), std::back_inserter (Attrs), [](Attr *A) {
317
+ // FIXME: Make this list self-adapt as new SYCL attributes are added.
317
318
return isa<IntelReqdSubGroupSizeAttr, ReqdWorkGroupSizeAttr,
318
319
SYCLIntelKernelArgsRestrictAttr, SYCLIntelNumSimdWorkItemsAttr,
319
320
SYCLIntelSchedulerTargetFmaxMhzAttr,
@@ -3150,7 +3151,7 @@ void Sema::CheckSYCLKernelCall(FunctionDecl *KernelFunc, SourceRange CallLoc,
3150
3151
// For a wrapped parallel_for, copy attributes from original
3151
3152
// kernel to wrapped kernel.
3152
3153
void Sema::copySYCLKernelAttrs (const CXXRecordDecl *KernelObj) {
3153
- // Get the operator() function of the wrapper
3154
+ // Get the operator() function of the wrapper.
3154
3155
CXXMethodDecl *OpParens = getOperatorParens (KernelObj);
3155
3156
assert (OpParens && " invalid kernel object" );
3156
3157
0 commit comments