[PATCH] D104040: [OpenCL] Add TableGen emitter for OpenCL builtin header
Sven van Haastregt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 17 07:11:48 PDT 2021
svenvh added a comment.
In D104040#2824281 <https://reviews.llvm.org/D104040#2824281>, @Anastasia wrote:
> Do you think we could add any test for this yet? Or do we have to wait until we have other pieces in place for diffing to `opencl-c.h`? We could add a test for parsing the header but it is probably going to be very slow test?
The question is what we actually want to test at this point? I am wondering if it would make more sense to work towards equivalence of `opencl-c.h` and the generated header file. We can prove equivalence offline, as a one-off without needing to commit changes to the AST printer. If they are equivalent, we can commit the generated header file in place of `opencl-c.h`. After that, adding a test for diffing both should be fairly trivial.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104040/new/
https://reviews.llvm.org/D104040
More information about the cfe-commits
mailing list