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

    <tr>
        <th>Summary</th>
        <td>
            [MLIR] Reverse traversal of def-use chains
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    I am attempting to write an analysis for a dialect I am working on, but have hit a bit of a snag. The algorithm I am implementing is based on def-use chain traversal from user to producer, but almost all the producing Ops in the dialect have more than 1 result, and the ordering of said results is semantically very important. After trying a few different things and reading through ["Understanding the IR structure"](https://mlir.llvm.org/docs/Tutorials/UnderstandingTheIRStructure/#traversing-the-def-use-chains) it seems like def-use traversal when going in the use-def direction only provides information on which Op defined the value, but the index of the result is nowhere to be found. 

Am I missing something or is this actually the case?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUk9GO6jYQhp_GuRmBwCELXORi2xXSSq2ORLcPMInHsXscG3nGUN6-cuDsdiWEk4z_37_9jZHZT5GoV91vqntrsIhLuT_7i1t-zZDMvX8HnAFFaL6IjxNIglv2QoARMGK4s2ewKQOC8RhoFFgkt5R_1vkpKv07DEXA4ZXAeQGEwQskCwgccVrDhyPAMKXsxc0PuZ8vgWaKy5qeYUAmAymCIbsqTDA69BEk45UyYwCb0wyFKdeEl5xMGSn_WhrDnLgOAcTRs1ydf1wYqo2jz_RLzDllAnEYYQuZuASpVhjNMjVlQ3nZnAVGb55TuAZlmjGKHzGEO1wp3-tWUhaMsoZXKzVgvlcxgqUbGG8tZYoC4nyceFkkE5rlsF1OZXJQCWn9dzSUWTA-awTvZ2DJZZSSSWmtujelD07kwqp9Vfqk9GkOPq9DuM7rlCelTyaNrPTpo0jKHkN9_ub74ej9_NeX6Unp9nnKPk4rcbR6IlgtCFjpI3gBJpoZgv9Jn4i-4NwcRZjSwvJx2lVvyILxmUbxKUKK4V7JXL2hCsWmPOOzAjfnRwc_LtXbR3pguGIo9Atx_eCjoX8rlPryYFKRxHRzVHkmGAhsKtGsQW3e1Ob18f9am272XHcInGZaUEDKVS3OM-AoZSFanUdkUu2pMX1rju0RG-q3L4fdbnvYtm3jemuPnd3oYaPtEQ_Hg96P425s2y11u60dTON7vdHtpquCrmvb9X436KOxttu_HMy402q3oRl9-ATXeOZC_YveH_dNwIEC94-miHSDpfjg3-S-alZDmVjtNsGz8JeLeAnLff_zj_ez6t7gTJXQ_1El-_2KcVNy6L_31OTFlWE9plnpUzV_DqtLTv_QKEqflki1uZbI_wUAAP__GVyHKg">