<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/110723>110723</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL] Diagnose non-local overlapping resource bindings
</td>
</tr>
<tr>
<th>Labels</th>
<td>
HLSL
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bogner
</td>
</tr>
</table>
<pre>
If we have two separate resources bound to the same or overlapping registers, we need to diagnose this.
There are two ways to go about this:
- DXC does this after optimizations, in `DxilResourceRegisterAllocator::AllocateRegisters`
- In #58051 we discussed doing this in Sema, but that requires us to become stricter than DXC about whether this diagnostic depends on optimization.
We need to decide on an approach and implement it.
Depends on #110719 and #110722
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUk1v2zAM_TXyhUggyx9pDj50DYIV6KkdsF0li7E5yJInysm6Xz9YSdd2FxukH_neo59mpsEjdqL5IppDoZc0htiZMHiMhQn2tXs8wQVh1GeEdAnAOOuoE0JEDkvskcGExVtIAdKIwHpCCBHCGaPT80x-gIgDccLIQj2syzxixlvSgw-MkEbirZAHIe-vz28jRgQdr5wX_corfgigTVhSxovqht3A4ccD2ICc-6BPCSOEOdFEf3Si4DMveRCtPPwm93xT_nyTde9c6HUKcV1Z3d_Kf59ZtPKN6dGDUFVzJ5tyNWKJ-4UZLdiwGs385OEFJ71ymqxVJ4j4a6GIDEs2YrAPEwKnSP0qNo3aZxdXe5cR05jbxG9HStSDxRm9ZQj-k71Pl_v-4bzYk8UVrT3oeY5B9yNob4Gm2eGEPgGlT9OHdwahqrKUu3KfJ26VUh_Rhe0qu6_2usCu3KndndzXd7ti7Go0xuy0RduaxsqdaRul6p00bYt13ZYFdUqqupSyLPeyrtvtqa7kSbZK1VK3WjailjhpclvnztM2xKEg5gW7LKIqnDboOKdWqa9PL09CqTW_sVvxG7MMLGrpiBO_b0iUXE56HmgOcHjLnw9-s_50919srzkBQ96SH7hYouvGlOYcPnUU6jhQGhez7cMk1HFlur02cww_sU9CHbNwFup4037u1N8AAAD__5oAInw">