<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/92148>92148</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DirectX] Implement an analysis pass(es?) to derive IsGloballyCoherent and HasCounter, and wire this up to create handle lowering
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:DirectX
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bogner
</td>
</tr>
</table>
<pre>
The IsGloballyCoherent and HasCounter properties of resource handles need to be inferred based on how a resource is used. We should write an analysis pass that derives this information, so that we can emit the right metadata and lower annotateHandle DXIL ops correctly.
The HasCounter aspect depends on #92147
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEkkFv2zAMhX-NfCEa2JLdxAcfugZZC-w4YL1SFmNrkyVDpBvk3w9KVnQ77SJBgh5Fvu8hs58i0aC6L6o7VrjJnPJg0xQpVza56_B9JnjlryFZDOH6nGbKFAUwOnhBfk5bFMqw5rRSFk8M6QyZOG15JJgxukAMkciBJLAEPp4pZ3JgkclBijCnC-CnxjNsTG4HPwh4TltwcMleCDACRgxX9gwrMoPMKOAo-3cqB8-leMoLik9R6WfgdH9zIRgxAi1eQGaC7KdZYCFBh4K3WUK6UAaMMQkKvdz6huPb6zdIK8OYcqZRwnWn6qOqn-5rseYvD5BXGktDK0XHZTKlTa-bdl-5wbje9FjR0Oybbl8_dr2u5uHc18a03eHsbOvImLY5nPXY9bZvGkONrfyga93WXdM2-7pvD7saO7RGO2dc83jYO9XWtKAPuxDel13KU-WZNxrKv4cqoKXAN7paWxx_UXTKPB19meZNaV2g56FoH-w2sWrr4Fn4s5p4Cbd4fGi6I7wua6DlnoJ_kSh9IFbmpHRfcN_Z_D8-hVW5ufhMd5DbWvRjJpSPFN0R-ThVWw7DLLKyMk9Kn5Q-TV7mze7GtCh9Kr3_2R7WnH7SKEqfbraw0qebM78DAAD__1SQAiU">