<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/142669>142669</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL][SPIRV] Clang should run spirv-val if available
</td>
</tr>
<tr>
<th>Labels</th>
<td>
HLSL,
clang:HLSL:SPIRV
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
llvm-beanz
</td>
</tr>
</table>
<pre>
The Clang driver adds a step to run the DXIL validator if `dxv` is available, we should add a similar capability for running the SPIRV validator if `spirv-val` is on the path.
This will help us catch a great many issues that we're currently not finding until we try to actually load and execute a compiled shader.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkkk9v2zwMhz-NfCEaKPKf1gcf0gbBW6CHF2sx7EpbjKWBsQyJdpt9-kFu1h12EiCBD0k9P0zJjxNRp-pHVR8LXMSF2DGvl7uecPpV9MFeuzdH8MQ4jWCjXykCWpsAIQnNIAHiMoE4guOP5xdYkb1FCRH8GVSj7ceqGg0-Aa7oGXsmZZ7gnSC5sLDNsMzyF88YYcAZe89ernAOMaMnP40b_vX_52_f_-Gn2cf1bkW-dQmfs8wobqf0QenDm_MJ3j0zOOIZlgQDyuAAYYyEAhecruBTWiiBOBR4J2XuI8GwxEiT8BWmIHD2k82jLJN4zvNLvObtcZAFma_AAS3gZIE-aFiEAGEIl9kzWUgOLcVdYbvStmWLBXX7--qhfSirui1cV9VW31f9Xje2qc-mNHs0tdFVU1FJPZ4L3xltat3o0uiq2re7RvemtrqsWhy0tg-q0nRBz7tsbxfiWGwrdfvKNE1bMPbEaRNtzH8vry_KGGWelDFDNqvKw3ZZHrZfzo_1sfgThWVMqtLsk6S_ePHCW3K2wvqo6sfP2vp4S8tNcI7Hl6Vs7SsIxRK5cyJzUuVBmZMyp9GLW_rdEC7KnHKv23E3x_CTBlHm9KlKmdNttbUzvwMAAP__rxLprg">