<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64630>64630</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[MLIR][Python Bindings] No `.owner` for empty result
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zzzDavid
</td>
</tr>
</table>
<pre>
In MLIR Python binding, if an operation has empty results list, the empty result list has not `.owner` object. For example:
```
linalg_copy = linalg.copy(in, outs=[...], loc=loc, ip=ip)
```
`linalg_copy` is an empty `OpResultList`, and it does not have access to its `.owner` object, so there is no way to access the created operation through its results.
@makslevental
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskt1q4zAQhZ9mfDPUKJKtRhe-aNYECt0f-gKLbI9t7SqSkeR006df5GTZFApBYTyaOXNGn47RTI6ogfoAdVvoNc0-NO_v760-m6Ho_HBpnh1-fXl-xR-XNHuHnXGDcRPwL2hG1A79QkEn4x3OOiKdlnTBQHG1KaI1MeWbaaYPmS2x3Xc-IUhW-jdHASRD3_2iPpV49AHpjz4tlkA8AWuBPYFkt98WWuO0nX72frkgiBavcZlj4HvjsrJfUwTRQn0oyxLqNn-zvgfR5jObWEC0ZgGuPtUAye5k8oAmZtdXNyDZ9-V1s_SSrUqWW2o3oEk4eLr6m_WZUPc9xYjJo0nxM8u5Mvq8qkBZxHl805dc8K90JuwD6UTD3dLTHPw6zVvX29rL2-jXs2In_TtaOpNL2mIxNGJQQumCmp1Uuz2rhFLF3IzjY61GyfuuGmS32_Pdo-p7PsquHwRVdWEazrhg-x1nO6FqVRLVNVN8z0RFo6o5VIxO2tjS2vOp9GEqTIwrNbKSghVWd2Tjhhrnjt5wSwLnmbzQ5JqHbp0iVCzTEf93SSbZjdHMYX7D-nCD8XCFMULd4jf_catjBuiOuWINtplTWmLmiR-BHyeT5rUre38Cfsxyt7-HJfjrkxy3ISPw42bibwAAAP__2iQEHA">