<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59311>59311</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Improve documentation for OpenCL extensions and Tablegen header
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:documentation,
            OpenCL
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          AnastasiaStulova
      </td>
    </tr>
</table>

<pre>
    It seems that finding what OpenCL extensions are supported by clang is not trivial to the user and more extensions are being added.

It would make sense to create a list or a table with all supported extensions in either Users Manual or OpenCL Support page. This would then need to be maintained as development goes along.

Another area for the docs to improve is internals of Tablegen-based header. The following list of topic could be covered with examples or based on example from existing commits:
- How to add a new builtin function with overloads
- How to add a new function with a new type as parameter or return
- How to add functions from extensions/optional features
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0U92uozYQfhq4GZ0ITMjPBRfpHkU9Uqte7PYBBjyAW-NBniE55-0rQ9LuqXZvHNnB35-_QRE3BKImq3_J6tccFx05NpeAoigOv-ri-YZ5y_ajeVMQoklAR1ToXbAuDHBPmz9mCl9-A3pXCuI4CGAkkGWeOSpZaD-g8xgGcAKBFTS6m0MPyqAjwSIUAYOFiSP9H6WlRIPWkt1lxWtWXLb1TeHOi7cw4d8EQkEo4XWRUAkQvBMFjoCg2HqCu9MR0PvvZH3H5AKQ05Ei_CkUBX7HsKBP9x_evm63YMaBdvBtdPKg15ECBCKb2FuCCV1QdIEsoIClG3meJwoKA5MAeg7DJyOXwCsxRkLoOa6RWO4kAbppjnyjFJwLSjGgF-AeviVPA4WXFoUsjISWYtJF0LP3fE-hbRH0oDy7DrpVbkvQ8Y0i2S0Resdp9iTJ6obF4XkIfeQJ6N2JJriOp8mpZNVD-Av8yvckEq0FhEB3aBfn1QXol9Cp47BxJD7PaOWn9z5_v53px0wpwhkjTqQUk8RIusTwA5wngjxFP582M1ee0z_ooSfUJZLktqnsuTpjTk15OBaFKU71IR-bsj71x-Mez-fTvqhbqo51car6vqzqqsLa5K4xhTFlWsy-qA87e2jLsz0XVXncn_p2n-0LmtD5nfe3acdxyJ3IQk19rsoy99iSl3XcjFlHIqsulrslFQSTysyYzHzJjNl6l7b1ax6bBPfSLoNk-yK9q_xHoE49NW-PpnxCW_v0g-kM9t8GPbqTL9E3o-q8vq-5ZuY6OB2XdtfxlJlrYnv8vMyR_6JOM3NdvaWIV3v_BAAA__9MdX3v">