[PATCH] D94027: [OpenCL] Add clang extension for variadic function
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 4 12:26:24 PST 2021
Anastasia created this revision.
Anastasia added a reviewer: mantognini.
Herald added subscribers: ebevhan, kerbowa, yaxunl, nhaehnle, jvesely, jholewinski.
Anastasia requested review of this revision.
This feature is primarily important in C++ mode because it opens up more opportunities to describe metaprogramming algorithms with function types.
This is clang and not a vendor extension and therefore it is only intended for internal or experimental use. The full feature will require changes in vendor toolchains that can be provided in the future via either vendor extensions or Khronos extensions.
This patch is implemented on top of related extension: https://reviews.llvm.org/D94021
https://reviews.llvm.org/D94027
Files:
clang/docs/LanguageExtensions.rst
clang/include/clang/Basic/OpenCLExtensions.def
clang/lib/Basic/Targets/AMDGPU.h
clang/lib/Basic/Targets/NVPTX.h
clang/lib/Sema/SemaType.cpp
clang/test/Misc/amdgcn.languageOptsOpenCL.cl
clang/test/Misc/nvptx.languageOptsOpenCL.cl
clang/test/Misc/r600.languageOptsOpenCL.cl
clang/test/SemaOpenCL/func.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94027.314433.patch
Type: text/x-patch
Size: 6927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210104/4526f95b/attachment.bin>
More information about the cfe-commits
mailing list