[PATCH] D65456: [OpenCL] Add generic type handling for builtin functions
Sven van Haastregt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 30 09:30:53 PDT 2019
svenvh created this revision.
svenvh added a reviewer: Anastasia.
Herald added subscribers: cfe-commits, kristina, yaxunl.
Herald added a reviewer: rengolin.
Herald added a project: clang.
Generic types are an abstraction of type sets. It mimics the way
functions are defined in the OpenCL specification. For example,
floatN can abstract all the vector sizes of the float type.
This allows to
- stick more closely to the specification, which uses generic types;
- factorize definitions of functions with numerous prototypes in the tablegen file; and
- reduce the memory impact of functions with many overloads.
Patch by Pierre Gondois and Sven van Haastregt.
Continuation of https://reviews.llvm.org/D63434
Repository:
rC Clang
https://reviews.llvm.org/D65456
Files:
clang/lib/Sema/OpenCLBuiltins.td
clang/lib/Sema/SemaLookup.cpp
clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65456.212365.patch
Type: text/x-patch
Size: 44368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190730/98554988/attachment-0001.bin>
More information about the cfe-commits
mailing list