[PATCH] D60764: Add clang cc1 option to generate OpenCL builtin functions

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 16 07:29:04 PDT 2019


Anastasia added inline comments.


================
Comment at: clang/include/clang/Driver/CC1Options.td:755
   HelpText<"Include the default header file for OpenCL">;
+def fgenerate_opencl_builtin: Flag<["-"], "fgenerate-opencl-builtin">,
+  HelpText<"Generate OpenCL builtin functions using Tablegen">;
----------------
I feel may be it should be `-fadd-opencl-builtins` just to hide implementation details from the clang users.

Also the description should be something like:

"Add OpenCL builtin function definitions automatically..."


Repository:
  rC Clang

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

https://reviews.llvm.org/D60764





More information about the cfe-commits mailing list