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

    <tr>
        <th>Summary</th>
        <td>
            Python AffineMapAttr missing the value property to access the underlying AffineMap
        </td>
    </tr>

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

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

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

<pre>
    Currently, though C++ `getValue()`/`getAffineMap()` is exposed well in the C++ API, in the Python API although we see the `value` property defined (https://github.com/llvm/llvm-project/blob/main/mlir/lib/Bindings/Python/IRAttributes.cpp#L145) we do not see it in the stubs (https://github.com/llvm/llvm-project/blob/main/mlir/python/mlir/_mlir_libs/_mlir/ir.pyi#L741) nor is it actually exposed currently in `AffineMapAttr`, making resorting to various custom methods around `_CAPIPtr` likely the only way to retrieve it. However, the `value` property should be properly exposed and accessible so parsing and walking an MLIR file can be done properly via Python.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU72O2zwQfBqqWXwCRf3YLlTY_qDEwB1gXJH2QEoriTmaFPhjR28fUJZ916QIkIrkLjE7O7PLnZODRqxJeSDl_wkPfjS2_mZxMHZ-NdZhIkw318dgLWqvZsKO4EcThhGOhB0IOwCp6ID-B1cBCdsStiMVJay5h_d9LzW-8umZAukAf03GYQc3VAqkBj_iE25_PsUia_Q8-9HoGASu1sI3BIe4pElFr0vhisJkzYTWz9BhrNkBYdvR-8mRfB_5sGaQfgwibc2FsEap6-P4b7LmJ7aesEYoIwhrLlzqeChp4x8ZYwepO6kHR1hzZ0VYc3rbe2-lCB5d2k4TYflLVpSE7SLLzoA2fiEr_aMj54Nw_47b9KCyvt_j-a6kcI8HYY206TTLSG5TZJGcNjb6ID3w1geu1Pz0pH1YHQmTij4djJ0u1h7hwj-kHsCiM9bHmzdw5Vaa4KANzpsLXNCPpnPArQm6i0Dvx_35dF4wQMkPVPOih9FqhhufI4ZFbyVeo1wpfDc3vKK9T9wfrHajCaoDgWvoSx9cd8DbFp2TQiE4AxO3LpKNmRtXH_c7vL6c3qCXCqHlOkJ1Rn_Bu0q-TmGadHXe7fIdT7DONjnNaV4WNBlrtun7atP2FHuB2w1uSpGxklWFyPIdqzCRNaOsyGhOs7JkjKY93xVi1262VGBR8ZYUFC9cqjR6nho7JNK5gHWWFazME8UFKresKWMab7BkCWNxa229DIoIgyMFVdJ59wnjpVdYP9boq5dwkW7RI6q7SPupqzerdksy6C5KEf8-EZJgVf3XI7zQjpO59nWt2e8AAAD__9Z8gkU">