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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Validate system value semantic based on the entry profile instead of shader profile
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          python3kgae
      </td>
    </tr>
</table>

<pre>
    When report diag::err_hlsl_attr_unsupported_in_stage, the validation for system value semantic is checking shader profile.
But it is OK for a shader to have both pixel entry and compute entry at the same time.
Need to validate system value semantic based on the profile of the entry function.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUU1v3CAQ_TX2BdWyYfGuDz4kjapKjdpDpfa4AjM2NBgsGFbdf19wYlU99BBppGG-3rw3SK_u408NjgTYfECijFgq9pANQrhqG-1VIIZrcjFtpQPU1bhrRLFART8S1EBuwhol0HhHZh9IvEeEtWQTkAircGgmYiKZNEwvxi0kaqEgkC342Vhoqvapah8eExKDpe_blx1HHH3oiRY3INKjJpv5DZaAw3Anwiky-XVLCEcGd0ZRrEDQrAf2VwBVYN6Ywn84ShFzX5ZRMN7YET_v4Sv-nNxUhDY1jF3fs_O5bwdWq5GpgQ2iRoMWxoo_fn7-_lzxJ_LjHRtfVxx7jcsDQpX9_96rTsGOGnGL5aPop2yLQZ1kk2-RA2tvh_uQR37BhDk0MSaI-cHPl0tb61F2oj_JgbcUuODsRDmn7UVN08xUdxKqtkKCjUVMRemuh9IsqTYjbSltB9p1fdsx1gw9Hxjng7xwmfOyOrVZn7FNodD4sNRh3NnItMRctCZi_FsUMZrFwX62gi8Sah_G7Z6dYy-LgHonP-7M_wC1h-rB">