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

    <tr>
        <th>Summary</th>
        <td>
            [libc] Group guarded functions in generated headers by their guarding macros.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

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

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

<pre>
    https://github.com/llvm/llvm-project/pull/81010 introduced guarded functions in generated headers, and the macro checks are generated for each function.  Ideally, we should group the functions based on their guarding macros, so that in the generated headers, each guarding macro is only checked once.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUks2O3CAQhJ8GX1qxMLZn7AOHJCtHeQyg24aEgRE_iebtIzNKNpH2kD0hIbqq6K9Uzu4IRJLNn9j80qlabEzSh1Kp0xEf0pZyz2z8yMTGxHa4YqvuTbwxsXn_4_fx4Z7iNzKFie1evWdiWwY-cHChpIjVEMJRVUJC2GswxcWQwQU4KFBShRAsKaSUmfgMKiAUS3BTJkUwlsz3DCrRX6_3mICUsX_UeoCvSMr7x6nwkyDbWD3CkWK9N7VXX60yIcRwXrv0DObC8fRrCXKEYlU5E56jb6Zs9v_OgssQg388MzcPQ32HcsR1XFVHcrjy6zSuy3jprFRXg3TdVzOPA-78Mg6rMiuJ0Ux6ncXeOSm4mLjgK-czHy_9NKwzv2rcFzGgxp1NnG7K-f5k0Md0dC7nSnIZBF86rzT53NAK4Z02TIgTcpINma5HZhP3Lpf8KlBc8a0ObWB-gS9tg_9HD_Tj7aX2XU3-_V1qv8mtTYIvvwIAAP__dbDnxA">