[OpenCL] Add builtin header test
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 10 Jun 2021 09:05:53 +0000 (10:05 +0100)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 10 Jun 2021 09:05:53 +0000 (10:05 +0100)
commitc5ffc6f8bd6ae0e187de8b6a0e4300161952ba66
treef9b0b0df4ba8dfab7024318782fe8665fa4b2294
parent31859f896cf90d64904134ce7b31230f374c3fcc
[OpenCL] Add builtin header test

Add a test to verify OpenCL builtin declarations using
OpenCLBuiltins.td.

This test consists of parsing a 60k line generated input file.  The
entire test takes about 60s with a debug build on a decent machine.
Admittedly this is not the fastest test, but doesn't seem excessive
compared to other tests in clang/test/Headers (with one of the tests
taking 85s for example).

RFC: https://lists.llvm.org/pipermail/cfe-dev/2021-April/067973.html

Differential Revision: https://reviews.llvm.org/D97869
clang/test/Headers/lit.local.cfg [new file with mode: 0644]
clang/test/Headers/opencl-builtins.cl [new file with mode: 0644]