<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/106455>106455</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL] [SPIRV] Don't generate per-variable guards for SPIR-V with HLSL
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:codegen,
HLSL,
SPIR-V
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pow2clk
</td>
</tr>
</table>
<pre>
Thread init guards are generated for local static variables when using the Itanium CXX ABI. This ABI is also used for SPIRV generation, but at least for HLSL targets doesn't need the corresponding `__cxa_guard_acquire/release` calls and doesn't really have a way to handle them in its output targets.
Similar to what this PR does, but for SPIR-V #106096
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxMUs1u4zgMfhr5QiSQ5Z_YBx_SBsEW6KFoi6K3gLZYW7uKlJWoZPr2A7v1TC82CYjfD_lhjGZ0RJ2o7kR1yDDx5EN38Tc12P-y3uvP7nUKhBqMMwxjwqAjYCAYyVFAJg0fPoD1A1qIjGwGuGIw2FuKcJvIQYrGjcATwQOjM-kM9-_vsL972MLrZOJcgYmANnpI8Rvw5enh-W0lMd4JdQ99YkAGSxh5efTP48sjMIaROIL2FJ1QOwZHpBe-wYdA8eKdnhWIWp5Owy88LS5OOPyfTCChjoFmSBK1hAGtjYBO_4ALhNZ-woRXAoQbfgJ7mNBpSzPLGYwDwxF84kviVc8WhDwIuf_5fTFnYzHM87cJGXi2__S8cK0GV_ObNxCqyGUt2zrTXaHbosWMunynymbXqrbKpq7vWymrosnLqtZlWTSyxLKuS01l-1Hv2sx0SqpSNqpRuWzyais_Cr1rdrIf-rLKGy1KSWc0dmvt9bz1YcxMjIm6XNZlVWUWe7JxiYdSg0U3imI_eE0jOaGUUPdCqfkMf5ov7XNbHbLQzbCbPo1RlNKayPEvERu2S_KW-eoAorpbzj7XB_-1_DVmcKGwWYO15vDHrm6GpyUPWQq2m5gvURR7oY5CHUfDU-q3gz8LdZzpv3-bS_D_0sBCHRfTUajjt-9rp34HAAD__6n8AE0">