[OpenCL] Refactor shuffle builtin decls
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 21 Apr 2021 10:58:29 +0000 (11:58 +0100)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 21 Apr 2021 10:59:24 +0000 (11:59 +0100)
commitfdcb9c272899fc270bd9bd067dc20363f54ff190
tree807408cdd3ade481b9ec92eb598a162ae974880b
parent174e796c7d41e720e2a78e3de451b893d9e3a43f
[OpenCL] Refactor shuffle builtin decls

The shuffle and shuffle2 builtins relied on processing two TypeLists
for different arguments in sync.  This will no longer work when a type
(e.g. double) in one of the TypeLists is optional.

Rewrite the declarations using explicit types instead of GenericTypes.
clang/lib/Sema/OpenCLBuiltins.td