<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/mlir/lib/Bindings/Python/DialectGPU.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][Python] remove unnecessary `arg.none() = nb::none()` pattern (#157519)</title>
<updated>2025-09-08T19:16:35+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-09-08T19:16:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c4181e51d10070718737c3b2b3a7ef2daac2b6d7'/>
<id>c4181e51d10070718737c3b2b3a7ef2daac2b6d7</id>
<content type='text'>
We have `arg.none() = nb::none()` in a lot of places but this is no
longer necessary (as of
~[2022](https://github.com/wjakob/nanobind/commit/62a23bb87b57d939e045f9c9da78a1d7235d2271)).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We have `arg.none() = nb::none()` in a lot of places but this is no
longer necessary (as of
~[2022](https://github.com/wjakob/nanobind/commit/62a23bb87b57d939e045f9c9da78a1d7235d2271)).</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in DialectGPU.cpp (NFC)</title>
<updated>2025-08-22T23:13:32+00:00</updated>
<author>
<name>Mehdi Amini</name>
<email>joker.eph@gmail.com</email>
</author>
<published>2025-08-21T11:38:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=51d9f31954fefe3e372cec080429adfe3e464947'/>
<id>51d9f31954fefe3e372cec080429adfe3e464947</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR] Apply clang-tidy fixes for llvm-include-order in DialectGPU.cpp (NFC)</title>
<updated>2025-08-22T23:13:32+00:00</updated>
<author>
<name>Mehdi Amini</name>
<email>joker.eph@gmail.com</email>
</author>
<published>2025-08-21T11:38:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bffa11b1fcaa498059eb64cee1eb47a4195d71e8'/>
<id>bffa11b1fcaa498059eb64cee1eb47a4195d71e8</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] Port in-tree dialects to nanobind. (#119924)</title>
<updated>2024-12-21T04:32:32+00:00</updated>
<author>
<name>Peter Hawkins</name>
<email>phawkins@google.com</email>
</author>
<published>2024-12-21T04:32:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5cd427477218d8bdb659c6c53a7758f741c3990a'/>
<id>5cd427477218d8bdb659c6c53a7758f741c3990a</id>
<content type='text'>
This is a companion to #118583, although it can be landed independently
because since #117922 dialects do not have to use the same Python
binding framework as the Python core code.

This PR ports all of the in-tree dialect and pass extensions to
nanobind, with the exception of those that remain for testing pybind11
support.

This PR also:
* removes CollectDiagnosticsToStringScope from NanobindAdaptors.h. This
was overlooked in a previous PR and it is duplicated in Diagnostics.h.

---------

Co-authored-by: Jacques Pienaar &lt;jpienaar@google.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a companion to #118583, although it can be landed independently
because since #117922 dialects do not have to use the same Python
binding framework as the Python core code.

This PR ports all of the in-tree dialect and pass extensions to
nanobind, with the exception of those that remain for testing pybind11
support.

This PR also:
* removes CollectDiagnosticsToStringScope from NanobindAdaptors.h. This
was overlooked in a previous PR and it is duplicated in Diagnostics.h.

---------

Co-authored-by: Jacques Pienaar &lt;jpienaar@google.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][gpu] Add metadata attributes for storing kernel metadata in GPU objects (#95292)</title>
<updated>2024-08-27T22:44:50+00:00</updated>
<author>
<name>Fabian Mora</name>
<email>fmora.dev@gmail.com</email>
</author>
<published>2024-08-27T22:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=016e1eb9c86923bf6a9669697f6be8309d12b78c'/>
<id>016e1eb9c86923bf6a9669697f6be8309d12b78c</id>
<content type='text'>
This patch adds the `#gpu.kernel_metadata` and `#gpu.kernel_table`
attributes. The `#gpu.kernel_metadata` attribute allows storing metadata
related to a compiled kernel, for example, the number of scalar
registers used by the kernel. The attribute only has 2 required
parameters, the name and function type. It also has 2 optional
parameters, the arguments attributes and generic dictionary for storing
all other metadata.

The `#gpu.kernel_table` stores a table of `#gpu.kernel_metadata`,
mapping the name of the kernel to the metadata.

Finally, the function `ROCDL::getAMDHSAKernelsELFMetadata` was added to
collect ELF metadata from a binary, and to test the class methods in
both attributes.

Example:
```mlir
gpu.binary @binary [#gpu.object&lt;#rocdl.target&lt;chip = "gfx900"&gt;, kernels = #gpu.kernel_table&lt;[
    #gpu.kernel_metadata&lt;"kernel0", (i32) -&gt; (), metadata = {sgpr_count = 255}&gt;,
    #gpu.kernel_metadata&lt;"kernel1", (i32, f32) -&gt; (), arg_attrs = [{llvm.read_only}, {}]&gt;
  ]&gt; , bin = "BLOB"&gt;]

```
The motivation behind these attributes is to provide useful information
for things like tunning.

---------

Co-authored-by: Mehdi Amini &lt;joker.eph@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds the `#gpu.kernel_metadata` and `#gpu.kernel_table`
attributes. The `#gpu.kernel_metadata` attribute allows storing metadata
related to a compiled kernel, for example, the number of scalar
registers used by the kernel. The attribute only has 2 required
parameters, the name and function type. It also has 2 optional
parameters, the arguments attributes and generic dictionary for storing
all other metadata.

The `#gpu.kernel_table` stores a table of `#gpu.kernel_metadata`,
mapping the name of the kernel to the metadata.

Finally, the function `ROCDL::getAMDHSAKernelsELFMetadata` was added to
collect ELF metadata from a binary, and to test the class methods in
both attributes.

Example:
```mlir
gpu.binary @binary [#gpu.object&lt;#rocdl.target&lt;chip = "gfx900"&gt;, kernels = #gpu.kernel_table&lt;[
    #gpu.kernel_metadata&lt;"kernel0", (i32) -&gt; (), metadata = {sgpr_count = 255}&gt;,
    #gpu.kernel_metadata&lt;"kernel1", (i32, f32) -&gt; (), arg_attrs = [{llvm.read_only}, {}]&gt;
  ]&gt; , bin = "BLOB"&gt;]

```
The motivation behind these attributes is to provide useful information
for things like tunning.

---------

Co-authored-by: Mehdi Amini &lt;joker.eph@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][gpu] Add py binding for AsyncTokenType (#96466)</title>
<updated>2024-06-24T09:39:22+00:00</updated>
<author>
<name>Guray Ozen</name>
<email>guray.ozen@gmail.com</email>
</author>
<published>2024-06-24T09:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f8ff9094711b74d3f695f7571f6390f8a481fc52'/>
<id>f8ff9094711b74d3f695f7571f6390f8a481fc52</id>
<content type='text'>
The PR adds py binding for `AsyncTokenType`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The PR adds py binding for `AsyncTokenType`</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][python] add binding to `#gpu.object` (#88992)</title>
<updated>2024-04-18T21:31:55+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2024-04-18T21:31:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6e6da74c8b936e457ca5e56a828823ae6a9f9066'/>
<id>6e6da74c8b936e457ca5e56a828823ae6a9f9066</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
