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

    <tr>
        <th>Summary</th>
        <td>
            [mlir][SPIR-V] Add support for poison index values to `spirv.CompositeExtract/InsertOp`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir
      </td>
    </tr>

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

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

<pre>
    https://github.com/llvm/llvm-project/pull/123488 adds support for poison indices to `vector.insert/extract` ops. Similarly, we should define how poison indices are represented for `spirv.CompositeExtract/InsertOp` and enable the lowering from Vector to SPIR-V for these indices.

We can use the lit tests introduced here as reproducers (they currently error out):
* `@extract_poison_idx`: https://github.com/llvm/llvm-project/pull/123488/files#diff-38974e5f35197a568a112dcab4e1261396394b503c26c19a9454aa1625a84454R178-R185
* `@insert_poison_idx`: https://github.com/llvm/llvm-project/pull/123488/files#diff-38974e5f35197a568a112dcab4e1261396394b503c26c19a9454aa1625a84454R267-R274
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMVE1r3DoU_TXy5jLGupL8sfBikryBrN5jAnnLIFvXY7Uay0jyJPPvi51JSwuFlm66Mlzw-bjnHukY7Wkiapm6Y4ifl1EHhsjUQ6aXNPrQml532jnKOm-u7ZjSHJnYMzwwPJxsGpcu7_2Z4cG5y8dnNwf_ifrE8DAvzjE8cBSyrkEbEyEu8-xDgsEHmL2NfgI7GdtThOSBlcWF-uRDbqdIYcWgtxR0n1hZgJ9jDk_2bJ0O7srwHl4J4ugXZ8DQYCeC0b_-CKsDQaA5UKQpkdmYWVnE2YZLfu_Ps4820T83Gjw8bsz_ziujngzQpDtHkEYC518p2OkEQ_BneN6UrrKf_ns87p435DRSpA_unBV7Vuz_J-j1BEu8odgEiWKKYKcUvFl6MjBSINBxU7qNQgSGdRrpCv0SAk3JXYFC8AH8khg2axDFnuF-dcNkcVvUy7v9F2ve1rnYw5_FxvAwWEeRoTB2GHaibipJahCKN5VWZa05x_VOJHEsuWhK0chOFaLHsueNbqSSWvMSla6lVPLIq3p35LX6Tvx73H-9diyr3RErmZlWmEY0OqOWV6IqlSwamY1tUXWdlmUvaDDCyH4Yal0hH_qmqHVJOrMtFqgKjoJXkguZm3rgFee6qatBVZrWJM_aunw1lvtwymyMC7UcJS8xc7ojF2-NPTv7UdjQbovollNksnA2pvgNIdnktpZvP6gHpu7eT5apB9gb85NW0htctFu-VvNXKpMtwf3-Q7FZjFtum8tLi18CAAD__0brefA">