[OpenCL] Group builtin functions by prototype
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 5 Nov 2019 10:16:45 +0000 (10:16 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 5 Nov 2019 10:26:47 +0000 (10:26 +0000)
commit0e56b0f94bfc683c5a95e96784cfc9229a730bc8
tree4e1c328ee52f9b26b4fbfddd5d6748a0e6d899bf
parent9a8d477a0e00c15d6d33a52486fa931483b7f2ea
[OpenCL] Group builtin functions by prototype

The TableGen-generated file containing the function definitions can be
reorganized to save some memory in the Clang binary.  Functions having
the same prototype(s) will point to a shared list of prototype(s).

Patch by Pierre Gondois and Sven van Haastregt.

Differential Revision: https://reviews.llvm.org/D63557
clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp