<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/92147>92147</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DirectX] Implement the llvm.dx.updateCounter intrinsic and lower it to the dxil op
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bogner
</td>
</tr>
</table>
<pre>
We need the intrinsic lowering for the [bufferUpdateCounter](https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst#bufferupdatecounter) DXIL op, which is emitted to implement [RWStructuredBuffer](https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-rwstructuredbuffer)'s increment and decrement counter methods.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8ks1unDAUhZ_GbKxBcMEhLFg0GSFF6qpRlWz9cwFXxkb-KenbV2boNIuqK0C-vucczsdD0LNFHAh7Iuxa8BQX5wfhZou-EE79Gt6QWkRF44JU2-i1DVpS43b02s50cv44IuxJpGlC_31TPOKzSzaiJ-xK4HGJcQuk-UJgJDDOOi5JlNKtBMZVS--CmyKB8ao9yvj-unCF_tmtmzboCYzCOJFHubYERuVkyMPvL19LHyKB5qabDl156kJP8wR1G4Fnui9aLlQHiquOMYdxVK-bwRVtzNa_vb1Gn2RMHtXTse5fzg1yb8u75TMC2kvKjnZtldvPtway1SNQoxYTDIExrOzixA-U8eL3cNe72SfQE-gC1Vb6my1uFVX45-sMRleMi1OhLNTQqL7peYFD3dWsqx6aui6WQU7dIyjRsU4JzgFY34r2QbBONY9SdLzQA1TQVqxu665iVV8qhm0tGsFYhVJOSNoKV65NaczPtXR-LnQICYce6rYrDBdowgEMgMWdHocEIPPjh3znItIcSFsZHWL4uyXqaA7SzqIJu9KXewsZomNUfZTpM0OfqMu_5CCP6pg7zHfUhzbUbUXyZvgPaHn1-bhs3uUWCIyH91zZke13AAAA__-15wiH">