File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -980,7 +980,7 @@ static CXXMethodDecl *getMethodByName(const CXXRecordDecl *CRD,
980980}
981981
982982static KernelInvocationKind
983- getKernelInvocationKind (const FunctionDecl *KernelCallerFunc) {
983+ getKernelInvocationKind (FunctionDecl *KernelCallerFunc) {
984984 return llvm::StringSwitch<KernelInvocationKind>(KernelCallerFunc->getName ())
985985 .Case (" kernel_single_task" , InvokeSingleTask)
986986 .Case (" kernel_parallel_for" , InvokeParallelFor)
@@ -2853,10 +2853,6 @@ class SyclKernelBodyCreator : public SyclKernelFieldHandler {
28532853 CollectionInitExprs.push_back (createInitListExpr (KernelObj));
28542854 markParallelWorkItemCalls ();
28552855
2856- if (getKernelInvocationKind (KernelCallerFunc) == InvokeParallelForWorkGroup)
2857- DC.getKernelDecl ()->addAttr (SYCLScopeAttr::CreateImplicit (
2858- S.Context , SYCLScopeAttr::Level::WorkGroup));
2859-
28602856 Stmt *DS = new (S.Context ) DeclStmt (DeclGroupRef (KernelObjClone),
28612857 KernelCallerSrcLoc, KernelCallerSrcLoc);
28622858 BodyStmts.push_back (DS);
You can’t perform that action at this time.
0 commit comments