From: Sven van Haastregt Date: Fri, 6 Aug 2021 09:21:26 +0000 (+0100) Subject: [OpenCL][Docs] Adding builtins requires adding to both now X-Git-Tag: upstream/15.0.7~34492 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22fdf617b6103df30ffae6cf469b78036e4ba615;p=platform%2Fupstream%2Fllvm.git [OpenCL][Docs] Adding builtins requires adding to both now As we are trying to reach parity between opencl-c.h and -fdeclare-opencl-builtins, ensure the documentation mentions that new builtins should be added to both. Reviewed by: Anastasia Stulova --- diff --git a/clang/docs/OpenCLSupport.rst b/clang/docs/OpenCLSupport.rst index 047c73f..2067596 100644 --- a/clang/docs/OpenCLSupport.rst +++ b/clang/docs/OpenCLSupport.rst @@ -252,7 +252,7 @@ with :ref:`-cl-ext ` command-line flags. **Library functionality** If an extension adds functionality that does not modify standard language -parsing it should not require modifying anything other than header files or +parsing it should not require modifying anything other than header files and ``OpenCLBuiltins.td`` detailed in :ref:`OpenCL builtins `. Most commonly such extensions add functionality via libraries (by adding non-native types or functions) parsed regularly. Similar to other languages this