<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/mlir/lib/Bindings/Python/IRCore.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[mlir][py][c] Enable setting block arg locations. (#169033)</title>
<updated>2025-11-21T13:31:46+00:00</updated>
<author>
<name>Jacques Pienaar</name>
<email>jpienaar@google.com</email>
</author>
<published>2025-11-21T13:31:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5ab49edde282814f41b90431194afaff694deba7'/>
<id>5ab49edde282814f41b90431194afaff694deba7</id>
<content type='text'>
This enables changing the location of a block argument. Follows the
approach for updating type of block arg.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This enables changing the location of a block argument. Follows the
approach for updating type of block arg.</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR] [Python] `ir.Value` is now generic in the type of the value it holds (#166148)</title>
<updated>2025-11-13T13:23:40+00:00</updated>
<author>
<name>Sergei Lebedev</name>
<email>185856+superbobry@users.noreply.github.com</email>
</author>
<published>2025-11-13T13:23:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=31536e6e9a54f54b26f97ce227d294d29b2b845f'/>
<id>31536e6e9a54f54b26f97ce227d294d29b2b845f</id>
<content type='text'>
This makes it similar to `mlir::TypedValue` in the MLIR C++ API and
allows users to be more specific about the values they produce or
accept.

Co-authored-by: Maksim Levental &lt;maksim.levental@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes it similar to `mlir::TypedValue` in the MLIR C++ API and
allows users to be more specific about the values they produce or
accept.

Co-authored-by: Maksim Levental &lt;maksim.levental@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Python] fix PyRegionList `__iter__` (#167466)</title>
<updated>2025-11-11T15:25:50+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-11-11T15:25:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8346a772bcce11d8bd0f0c8635b4fb4d1d477220'/>
<id>8346a772bcce11d8bd0f0c8635b4fb4d1d477220</id>
<content type='text'>
Fixes https://github.com/llvm/llvm-project/issues/167455</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/llvm/llvm-project/issues/167455</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Python] add/fix docstrings in IRCore (#167063)</title>
<updated>2025-11-10T15:44:08+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-11-10T15:44:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2d381bf65dd436c4ec70b008c46e55e154b7c705'/>
<id>2d381bf65dd436c4ec70b008c46e55e154b7c705</id>
<content type='text'>
This PR adds all the missing doc strings in IRCore.cpp. It also

1. Normalizes all doc strings to have proper punctuation;
2. Inlines non-duplicated docstrings which are currently at the top of
the source file (and thereby possibly out of sync).

Follow-up PRs will do the same for the rest of the modules/source files.

---------

Co-authored-by: Copilot &lt;175728472+Copilot@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR adds all the missing doc strings in IRCore.cpp. It also

1. Normalizes all doc strings to have proper punctuation;
2. Inlines non-duplicated docstrings which are currently at the top of
the source file (and thereby possibly out of sync).

Follow-up PRs will do the same for the rest of the modules/source files.

---------

Co-authored-by: Copilot &lt;175728472+Copilot@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Python] fix getOwner to return (typed) nb::object instead of abstract PyOpView (#165053)</title>
<updated>2025-10-26T01:48:46+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-10-26T01:48:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c05ce9b0057c9b1413bee964bb2d400ffbddede5'/>
<id>c05ce9b0057c9b1413bee964bb2d400ffbddede5</id>
<content type='text'>
https://github.com/llvm/llvm-project/pull/157930 changed `nb::object
getOwner()` to `PyOpView getOwner()` which implicitly constructs the
generic OpView against from a (possibly) concrete OpView. This PR fixes
that.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/llvm/llvm-project/pull/157930 changed `nb::object
getOwner()` to `PyOpView getOwner()` which implicitly constructs the
generic OpView against from a (possibly) concrete OpView. This PR fixes
that.</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][python] add dict-style to IR attributes (#163200)</title>
<updated>2025-10-16T17:42:05+00:00</updated>
<author>
<name>Perry Gibson</name>
<email>Wheest@users.noreply.github.com</email>
</author>
<published>2025-10-16T17:42:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=35cd291427d56d068573f717e4f8660e81eef0e3'/>
<id>35cd291427d56d068573f717e4f8660e81eef0e3</id>
<content type='text'>
It makes sense that Attribute dicts/maps should behave like dicts in the
Python bindings. Previously this was not the case.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It makes sense that Attribute dicts/maps should behave like dicts in the
Python bindings. Previously this was not the case.</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Python] Expose the insertion point of pattern rewriter (#161001)</title>
<updated>2025-10-05T03:12:11+00:00</updated>
<author>
<name>Twice</name>
<email>twice@apache.org</email>
</author>
<published>2025-10-05T03:12:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8181c3deae482769937bdcee68f381df4141eb24'/>
<id>8181c3deae482769937bdcee68f381df4141eb24</id>
<content type='text'>
In [#160520](https://github.com/llvm/llvm-project/pull/160520), we
discussed the current limitations of PDL rewriting in Python (see [this
comment](https://github.com/llvm/llvm-project/pull/160520#issuecomment-3332326184)).
At the moment, we cannot create new operations in PDL native (python)
rewrite functions because the `PatternRewriter` APIs are not exposed.

This PR introduces bindings to retrieve the insertion point of the
`PatternRewriter`, enabling users to create new operations within Python
rewrite functions. With this capability, more complex rewrites e.g. with
branching and loops that involve op creations become possible.

---------

Co-authored-by: Maksim Levental &lt;maksim.levental@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In [#160520](https://github.com/llvm/llvm-project/pull/160520), we
discussed the current limitations of PDL rewriting in Python (see [this
comment](https://github.com/llvm/llvm-project/pull/160520#issuecomment-3332326184)).
At the moment, we cannot create new operations in PDL native (python)
rewrite functions because the `PatternRewriter` APIs are not exposed.

This PR introduces bindings to retrieve the insertion point of the
`PatternRewriter`, enabling users to create new operations within Python
rewrite functions. With this capability, more complex rewrites e.g. with
branching and loops that involve op creations become possible.

---------

Co-authored-by: Maksim Levental &lt;maksim.levental@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Python] fixup Context and Location stubs and NanobindAdaptors (#161433)</title>
<updated>2025-10-02T15:18:47+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-10-02T15:18:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a3594cd6442ee988c18249d96b8331f0a5331df7'/>
<id>a3594cd6442ee988c18249d96b8331f0a5331df7</id>
<content type='text'>
add correct names for `NB_TYPE_CASTER(..., name)` so users of
`NanobindAdaptors.h` can generate the correct hints. Also fix a few
straggler stubs.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
add correct names for `NB_TYPE_CASTER(..., name)` so users of
`NanobindAdaptors.h` can generate the correct hints. Also fix a few
straggler stubs.</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Python] expose Operation::setLoc (#161594)</title>
<updated>2025-10-02T04:57:10+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-10-02T04:57:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=fea2cca4d6364f66a5f663d95141c9cab53dbfd2'/>
<id>fea2cca4d6364f66a5f663d95141c9cab53dbfd2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Python] use nb::typed for return signatures (#160221)</title>
<updated>2025-09-23T17:54:22+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-09-23T17:54:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=0d08ffd22cde12434fa3c56996d68818b25030b9'/>
<id>0d08ffd22cde12434fa3c56996d68818b25030b9</id>
<content type='text'>
https://github.com/llvm/llvm-project/pull/160183 removed `nb::typed`
annotation to fix bazel but it turned out to be simply a matter of not
using the correct version of nanobind (see
https://github.com/llvm/llvm-project/pull/160183#issuecomment-3321429155).
This PR restores those annotations but (mostly) moves to the return
positions of the actual methods.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/llvm/llvm-project/pull/160183 removed `nb::typed`
annotation to fix bazel but it turned out to be simply a matter of not
using the correct version of nanobind (see
https://github.com/llvm/llvm-project/pull/160183#issuecomment-3321429155).
This PR restores those annotations but (mostly) moves to the return
positions of the actual methods.</pre>
</div>
</content>
</entry>
</feed>
