[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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 44368 bytes
Desc: not available
More information about the cfe-commits