<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/110517>110517</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL] `main` is just a function
</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>
HLSL gives no special meaning to the function named `main`. It does give special handling to _entry points_, and the _active entry point_ when building a freestanding shader. Those cases are handled by the HLSLShader attribute, which can be implicitly applied to `main` if no other entry is specified, rather than the function name.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkUk-Pmz4Q_TTmMlpkHEjIgcPv11XUSnvb3qMBD3hWxkZ4yCr99JXZtNuqJ4Q87837M5gST4GoU83_qnkucBMX18772_zUE4YfRR_tvfv68voCE98oQYiQFhoYPcyEgcMEEkEcwbiFQTgGCDiTBXXUM3JQR13CNwEbKe0Uv-EOg_UP_JWCrHdYIgdJV2W-AAa7s15xkIz6Y-AK744C9Bt7m_EI40qUBMP-mxxaWkv47mIiGDBRAlzpYx9Z6O87cfb0uo8Ciqzcb0J58bvjwcGAAXoCnhfPA4u_Ay6LZ7JZ7ac14DEnEsXR-pDI6cPhyGQz34r7ozgM_8ZUFrY72PPhjAV11cmcTro9VlXhuraqhrolfayNrdvGnmttTlRZY9oGSfcFd0abWp8Pumr04aBLbU076r4Z7XHsh9Ooak0zsi9zm2Vcp4JT2qirKt1Up8JjTz7txRuTw1DG5BP41f42JVVrz0nSJ4Ow-P1YdkDz_FcUCd62JLmOh8ViW33nRJakDv8pc1HmMrG4rS-HOCtzybSPz9OyxjcaRJnLrjIpc3kIvXXmZwAAAP__eTXh-g">