File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1660,6 +1660,11 @@ class SyclKernelBodyCreator : public SyclKernelFieldHandler {
1660
1660
llvm::SmallVector<Stmt *, 16 > BodyStmts;
1661
1661
llvm::SmallVector<InitListExpr *, 16 > CollectionInitExprs;
1662
1662
llvm::SmallVector<Stmt *, 16 > FinalizeStmts;
1663
+ // This collection contains the information required to add/remove information
1664
+ // about arrays as we enter them. The InitializedEntity component is
1665
+ // necessary for initializing child members. uin64_t is the index of the
1666
+ // current element being worked on, which is updated every time we visit
1667
+ // nextElement.
1663
1668
llvm::SmallVector<std::pair<InitializedEntity, uint64_t >, 8 > ArrayInfos;
1664
1669
VarDecl *KernelObjClone;
1665
1670
InitializedEntity VarEntity;
Original file line number Diff line number Diff line change 2
2
3
3
#include < sycl.hpp>
4
4
5
- template <typename name , typename Func>
5
+ template <typename Name , typename Func>
6
6
__attribute__ ((sycl_kernel)) void kernel(const Func &kernelFunc) {
7
7
kernelFunc ();
8
8
}
You can’t perform that action at this time.
0 commit comments