[PATCH] D97869: [OpenCL][Draft] Add OpenCL builtin test generator

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 4 03:30:42 PST 2021


Anastasia added a comment.

> ``
>
>   float test6092_cos(float arg1) {
>     return cos(arg1);
>   }
>   double test6093_cos(double arg1) {
>     return cos(arg1);
>   }
>   half test6094_cos(half arg1) {
>     return cos(arg1);
>   }
>   float2 test6095_cos(float2 arg1) {
>     return cos(arg1);
>   }
>   double2 test6096_cos(double2 arg1) {
>     return cos(arg1);
>   }
>   ``

I was just thinking if we could combine the calls into one function to minimize the number of lines to parse? Perhaps this will make the Tablegen generator too complex?

Also would it be possible to handle optional functionality - extensions and functions available in certain versions?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97869/new/

https://reviews.llvm.org/D97869



More information about the cfe-commits mailing list