<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/111591>111591</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[mlir] Add `MLIRContext::getDialectOperations(Dialect&)` or equiv
</td>
</tr>
<tr>
<th>Labels</th>
<td>
good first issue,
mlir:core
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
stellaraccident
</td>
</tr>
</table>
<pre>
See: https://discourse.llvm.org/t/callback-to-iterate-over-all-dialect-op-classes/82417/3
We would likely be ok adding a little bit of extra accounting to keep track of the subrange of dialect ops in the sorted list of all operations for each dialect.
This would simplify things iterating over the subset of RegisteredOperationName that belong to a dialect (such as getting canonicalization patterns).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUkk2vszYQhX-N2YyIzPCRsGCRvhFSpX5It5W6HuwJuHEwtYf03v76CpJ723cDwozPPHPmUEpunJk7Vf-g6ktGq0whdknYe4pkjLM8SzYE-9H9xqzKM0wiS1LlWWGvsLcumbDGxAfvH_dDiKPCXhT2hrwfyNxyCbkTjiSchwfHnLzPrSPPRvKw5MZTSpwU9iesiqPCvlT6ovT5-fyD4e-wegve3dh_wMAQbkDWunkEAu9EPMPgBMIV-F0iARkT1lm2AglwY15AIpnbViETQ1qHSPPI2_cLBMKSwM3P3yEKb_3SrkneQ1g2fhfmBNcQgclMnzcP_4f9fXLphZvcffHu-gEyuXlM8LRgY9pM-ORIvPd449El4cj2189Ov9CdQSYSGNiH5yj0havwlFYzASUYWXZZQ3OYnSHv_tkFYCERjnNS2B4y25W2LVvKuCuOeKoQj9hmU0em1FWN2lblUddtY8tB67puGtNoLgqTuQ41VoXWJyywxvZAXBZladsKa9Rt06pK852c_9p_5lJauSuKom6LzNPAPu3xQhxDsHB1MQnsRQpR4TeFePcuqvJsQtzP6ksWu00vH9YxqUpvy0j_dRAnfo_sfq--wNlaUI3--acf376FWfhdtoCW55Hl8rTsy9ik8PQ6U9gobFWjYVvqX6t7ZGv03fcBH51M63Aw4a6w3wher3yJ4c9dpN9n2RL8mvnR4b8BAAD__w9cHCg">