<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/83075>83075</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] implement __builtin_clzg
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
c23
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nickdesaulniers
</td>
</tr>
</table>
<pre>
similar to #82058 and mentioned in #79630. To implement parts of C23 stdbit.h, it would be nice if we exposed a similar builtin to GCC.
This is a type agnostic builtin that lowers to an intrinsic I suspect we already have in LLVM.
cc @overmighty
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUkctu2zoQhp-G2gwiMEPq4oUWOTZ8UCDdBd0GFDmRpqVIgaTsuk9fyEmRdsMLBt98Q_4mZ54C0SCa_0RzqsxW5piGwPaHo2w2H5hSrsbobkPmhb1JUCIIVD3KpgcTHCwUCsdADjjsle7QKlnDSwReVk97GVaTSob4BkdUkIsbudSzwCNwgWvcvIORILAl4De4EtDPNWZyYOCPddzYFw67_f_jsRbyJOTT-_oycwbOYKDcVgIzhZgL209kNgV8vFLKO24CcCiJQ2YLXyBveSVbdqvxiYy7wWwutD_m-fnb139M1oLQMl4oLTzN5QaVG5Q7qIOpaHjsZH_o265R1Txopajv-rdGP2ol7Wi0a_u-b_q21V2ru4oHlKglYouoUKnaIdrWNcrq0blHLYWWtBj2tfeXpY5pqjjnjYZeya6pvBnJ53tsiNabMAlEgcf9hmo_N6cqDTv7MG5TFlp6ziV_ditc_D33d7o5_RXX6-vH371a_2uqtuSHuZQ1C_Uk8CzwPHGZt7G2cRF43lt-bA9rit_JFoHn-7RZ4Pk-8O8AAAD__7Hnxho">