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

    <tr>
        <th>Summary</th>
        <td>
            MLIR CAPI `getDefiningOp` is not exposed
        </td>
    </tr>

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

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

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

<pre>
    As far as I can see there's no way to get the defining Op of a Value through the CAPI.

I'd expect the `Operation *getDefiningOp()` function to be exposed as `MlirOperation mlirValueGetDefiningOp(MlirValue value)` in the CAPI.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxckcGOmzAQhp9muIw2MgMEOPhAu0oVqVGqHvZu8ABuHYxsk3bfvjLNKmovtmTPfPpmfhWCmRZmCdUnqF4ztcXZefkmrOafWe_0u-wCjsqjCnjGQS0YmDHO7BmoDrg4_KXeMTqcOKZ31DyaxSwTXld0Iyp8U3ZLLd5t07yXfO6-nQ8gOhDdGajWyL9XHv62w1FcV_YqGrcgUDdxfH0QrytQA9TCUeC4LcNeEh32nAAusE6WcBQXa_wTcrPG7w5f_kNdPj7wns4H2SxPx0zLQrdFqzKWeV2VRG1LlM2yapRuachFXuqhFn3PjWJ9rCvdl42q8sxIElSJRhR5KSqiQ60K6kWt-7EuClXlUAq-KWMP1t5vB-enzISwscyrvDnWmVU927DHQpQmAKIUkJep_qXfpgClsCbE8CREEy3Ly9fz910_reLf9aXxUmbxY2HZ5q2cY1wDFB3QCeg0mThv_WFwN6BTQj-ul9W7HzxEoNNuGoBOD9m7pD8BAAD__x0Ou2c">