<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/67689>67689</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Add mechanism for validating language options for HLSL
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            HLSL
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          llvm-beanz
      </td>
    </tr>
</table>

<pre>
    Clang has a huge list of language options, some of which will be valid for HLSL others won't. Some may only be valid for specific backend targets. We should add a hook somewhere to allow us to validate the language options and provide diagnostics that are actionable to the user rather than compiling and generating bad code that either fails at runtime or in the ISA validators.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkkk-PnDwMxj9NuFiLIMOf4cBh3301aqW9zaFnkxiSbkhQHGY0_fRV6I6qak-QxP75sf0gs1080Sja_0T7f4F7MiGOzt3Wl4nQ_yqmoB_jm0O_gEEGBLMvBM5ygjBDvt9xIQhbssGzkG_AYaX8djdWGbhb52AiuKGzGuYQ4dv79R1CMhQZ7sEL2acSrjlpxQcE7x7_xvNGys5WwYTqg7yGhHGhxCX8IGATdqcBtc7SQvg4yt8NRYIUAJ0Ld9g5_x9ETATJ0BfhgF7DFsPNagJtcfGBk1UMyWACjASociBO7gBnxs4UIWLuJId5UGHdrLN-OWgLeYqY8nFCDSpo-kMje6TMaB0DJoi7TzbPLIL1B_n79fUpN0QuCz2e9HAasKCx7oZ2qGXdDoUZG90Mfd03XasIB5K1xurc9O25HrCuFRV2lJU8VYM8100jT0OpZNdXfVV30zT3cq5FU9GK1pV55WWIS2GZdxq7vjsPhcOJHB_mkDLvTUiZbfJ0yL6waKpsBv4LSDY5Gl-1hpWUQW95Pfb42VCex5fpP31R7NGNJqWNxelVyIuQl8Ums0-lCquQl1zk8_OyxfCTVBLyckhmIS-H6t8BAAD__9BX-A4">