[PATCH] D71016: [SYCL] Implement OpenCL kernel function generation
Mariya Podchishchaeva via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 13 06:34:58 PST 2019
Fznamznon marked an inline comment as done.
Fznamznon added inline comments.
================
Comment at: clang/lib/Sema/SemaSYCL.cpp:417
+ Util::DeclContextDesc{clang::Decl::Kind::ClassTemplateSpecialization,
+ "accessor"}};
+ return matchQualifiedTypeName(Ty, Scopes);
----------------
keryell wrote:
> After more thought, perhaps the solution proposed by Victor Lomüller during the last SYCL upstreaming meeting about marking accessor classes with some attribute instead of detecting concrete type names is a better generic approach.
> I am more convinced now by his argument allowing more experimenting with alternative runtimes, since it looks like it is the only place we detect type names. For example the kernels are marked with an attribute in the runtime instead of concretely detecting the `parallel_for()` functions and so on.
@Naghasan , what do you think about upstreaming the solution which you proposed?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71016/new/
https://reviews.llvm.org/D71016
More information about the cfe-commits
mailing list