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

    <tr>
        <th>Summary</th>
        <td>
            [mlir][spirv] Modernize op assembly formats and syntax docs
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            good first issue,
            code-cleanup,
            mlir:spirv
      </td>
    </tr>

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

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

<pre>
    The SPIR-V dialect predates the `assemblyFormat` definitions in TableGen and some of the SPRI-V ops needlessly use handwritten parsers. We should go over the ops in the dialect and update to `assemblyFormat` wherever possible.

With `assemblyFormat` in place, we can also drop the handwritten syntax docs, since the latter is redundant in the presence of  `assemblyFormat`. This way the two can't possibly diverge and become confusing. This is similar to the cleanup done in https://github.com/llvm/llvm-project/pull/73343.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU7Fu4zoQ_BqqWVigSTGyChVJDD-keECQBElNkSuJ79GkwKXs8339QXJ8uSLNNRJBzOzODHc1kRsCYsvUA1P7Qs95jKn9fx51KrpoL-3biPD6_PSyeQfrtEeTYUpodUaCPCKwO66J8Nj5yyGmo87sjoPF3gWXXQwELsCb7jz-gwF0sEDxiBD7lfz6_PK0eYc4EQRE65HIX2AmhFEHe04uZwww6USYqIQPBBrj7C0MEeIJ01pkYbuwHm8Klz7ztIiEHL-XeB4x4VJiikSu81gyvmf8_vr9cHn8nucCTF4bZOIRzghGB9CeItgUp1XDn8rpErL-ATYaWvDkgsEV5HXOmMARJLRzsDrkm4cpIeGCiz18K6GEt9ERnPVlxedzXFQwUeeblwtYd8I04BpEh2aJ3MTQz-TC8Ml3BOSOzuu0ZLRUMh51mCewMeCiZsx5IibvmTgwcRhcHueuNPHIxMH70-23mVL8D01m4jDN3jNxqKWsZFnYVtpGNrrAdltzvlNSCV6MrezrbqcUN7zbSqVsZcyubjTWCnWlKixcK7iQ262ots12V_Gyb2zV9EZXsuaykZxVHI_a-XLpX8Y0FI5oxraWUjWF1x16WidaiCFGC71LlGHFMCGYeGRCmGhx8-n49-XRu8TkPU0unZZLtS9Su5rs5oFYxb2jTF9ts8t-3Z2VqPZMPVy5ag__RospuJ_LgMLtEaFfX5Gum_A1HcWcfPvXea-O6Jq4an4FAAD__180R8c">