<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/142448>142448</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL][SPIRV] Add the `vk::constant_id` to clang
</td>
</tr>
<tr>
<th>Labels</th>
<td>
HLSL,
backend:SPIR-V
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
s-perron
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
s-perron
</td>
</tr>
</table>
<pre>
This issue will be considered done when the `vk::constant_id` attribute has been added to clang. There must be appropriate testing of the attribute for errors, and the codegen for these functions will generate a variable with a decoration indicating the specialization constant id given in the attribute. The initializer will kept in another target attribute. We do not want to leave the attribute in the llvm-ir because the variable does not necessarily take on that value.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEkk9v2zgQxT8NdRnYoKk_sQ86OAmMXSCHxSZIj8WIHEmsaVIgRwrST19Qdpq2l54IcN68Nz_gYUp28EStqO-FUmkzUYzBC6VE_VjgzGOI7cdv0QXz3r6MNoFNaSZ4s85BR6CDT9ZQJAMmeIK3kTzwSCAauZxFeRTlMWsYPX-1RjQSkDnabmaCERN0RB7QGDLAAbRDP2zhZaRIcJkT5wycphimaJEJmBJbP0Do15RPrz5EyKfGJNQDoDfrXAdDA_l1yiMlgn72mm3w6YowkKeYjREWjBY7l9l4BARDOkTMWrDeWI1rcHZNE2mLzn6_Tj_4wBoY7EJZ__t1KxFYb3ldo3gNP9PEWYs-8EgRGONA_OvaFwITwAeGtxzAARzhQn-w3-KcWy4bG6EjjXO6in5CmUBpNfKkKSWM1r0D45kg5G1kWNDNtC1MW5pDecCC2t1dtd_vm-Ygi7GlXS2rfSUV4gF3vel73VS7ppdd398pg4VtlVS1bKTa3dW7Um5Jd1QaQ3JfVqY_SFFJuqB123zoNsShWLvU7ipVVfvCYUcu3er4z9PzU66iehBKdajP5I0oj8___fv_5vXW0diuxN08JFFJZxOnT2u27NZur071o6jv8_KrqB_haMxfOvpRxWKOrh2Zp5Rl6iTUabA8zt1Wh4tQpxx3ezZTDN9Is1CnFSsJdbqRLa36EQAA__8YmCr9">