[PATCH] D114483: Add support for sycl_special_class attribute

Zahira Ammarguellat via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 23 15:06:49 PST 2021


zahiraam created this revision.
zahiraam added reviewers: bader, Naghasan, keryell, Fznamznon, aaron.ballman, erichkeane.
Herald added subscribers: jdoerfert, Anastasia, ebevhan, yaxunl.
zahiraam requested review of this revision.
Herald added a project: clang.

Special classes such as accessor, sampler, and stream need additional implementation when they are passed from host to device.
This patch is adding a new attribute “sycl_special_class” used to mark SYCL classes/struct that need the additional compiler handling.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114483

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/Misc/pragma-attribute-supported-attributes-list.test
  clang/test/SemaSYCL/special-class-attribute-on-non-sycl.cpp
  clang/test/SemaSYCL/special-class-attribute.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114483.389330.patch
Type: text/x-patch
Size: 6205 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211123/88eb74ae/attachment.bin>


More information about the cfe-commits mailing list