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

    <tr>
        <th>Summary</th>
        <td>
            [mlir][spirv] NFC: Improve op name consistency
        </td>
    </tr>

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

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

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

<pre>
    We have been growing the SPIR-V dialect by adding various extended instruction set and vendor-specific operations. There are now a fair amount of them it's time to improve the consistency for the assembly to be more future proof. Specifically:

- [ ] Rename the dialect from `spv` to `spirv`. We chose to use `spv` earlier as there were just very few dialects and we'd want to have shorter prefix everywhere. But now as we see more and more dialects and there is a way to omit dialect prefixes in regions, it's time to change the dialect mnemonic to be more clear.
- [x] Rename `spv.GLSL.*`/`spv.OCL.*` to `spirv.GL.*`/`spirv.CL.*` to be consistent between the most two important extended instructions sets.
- [ ] Change vendor-specific ops to follow `spirv.<vendor-name>.*` style. (Right now they are of the form like `spv.CooperativeMatrixMulAddNV` with vendor name as the trailing part following the SPIR-V spec.) This would make things more consistent with extended instruction set. The same change should apply to `KHR`/`EXT` ops. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1VE1znDAM_TVw0SwDJvt14JBumrbTz0k6ba8GBLgxmLHNkv33lYBNNml7ACNbSE9PT85Necp-IjTyiJAjdlBbM6quBt8g3H_7cLf6AaWSGgsP-QlkWfLhUVplBgf46LErsQTVOW-HwivTgUMPsivhSEfGrlyPhapUAaZHK9nDRfC9QYsg6enMCBIqqSzI1gydB1Nx8haUD8TWgVctgjeg2t4aQsnACgqiHOUuTlAZO-1J57DN9Yl9c4TWUPBq8AMt9KOpIrhfkEitT0F6HcQ3Qby8VxCs39BzA3fYyXbOcq67sqaFYBO7_khvjj8ZyrIZAdFXNMZNIAdan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