<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/mlir/lib/CAPI/Dialect, branch users/nico/python-2</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][Linalg] Harden parsing Linalg named ops (#145337)</title>
<updated>2025-06-25T22:22:08+00:00</updated>
<author>
<name>Mehdi Amini</name>
<email>joker.eph@gmail.com</email>
</author>
<published>2025-06-25T22:22:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ff0dcc461474cd2cda0190490721139fa962c633'/>
<id>ff0dcc461474cd2cda0190490721139fa962c633</id>
<content type='text'>
This thread through proper error handling / reporting capabilities to
avoid hitting llvm_unreachable while parsing linalg ops.

Fixes #132755
Fixes #132740
Fixes #129185</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This thread through proper error handling / reporting capabilities to
avoid hitting llvm_unreachable while parsing linalg ops.

Fixes #132755
Fixes #132740
Fixes #129185</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][CAPI][python] expose the python binding for linalgOp.getIndexingMaps (#136054)</title>
<updated>2025-04-17T20:52:36+00:00</updated>
<author>
<name>Bangtian Liu</name>
<email>liubangtian@gmail.com</email>
</author>
<published>2025-04-17T20:52:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7119b0cfd3678a16664d07e3c7b15399c4b3a321'/>
<id>7119b0cfd3678a16664d07e3c7b15399c4b3a321</id>
<content type='text'>
This PR is mainly about exposing the python bindings for
`linalgOp.getIndexingMaps`.

---------

Signed-off-by: Bangtian Liu &lt;liubangtian@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR is mainly about exposing the python bindings for
`linalgOp.getIndexingMaps`.

---------

Signed-off-by: Bangtian Liu &lt;liubangtian@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][SMT] add python bindings (#135674)</title>
<updated>2025-04-16T22:17:09+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-04-16T22:17:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=697aa9995c24a977425e672d76a4a434384b16e3'/>
<id>697aa9995c24a977425e672d76a4a434384b16e3</id>
<content type='text'>
This PR adds "rich" python bindings to SMT dialect.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR adds "rich" python bindings to SMT dialect.</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][SMT] C APIs (#135501)</title>
<updated>2025-04-14T19:37:14+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-04-14T19:37:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9deb08a30196b5b3b3883b5c7be8c4251039bde7'/>
<id>9deb08a30196b5b3b3883b5c7be8c4251039bde7</id>
<content type='text'>
This PR upstreams/adds the C APIs for SMT dialect (from CIRCT).

---------

Co-authored-by: Bea Healy &lt;beahealy22@gmail.com&gt;
Co-authored-by: Martin Erhart &lt;maerhart@outlook.com&gt;
Co-authored-by: Mike Urbach &lt;mikeurbach@gmail.com&gt;
Co-authored-by: Will Dietz &lt;will.dietz@sifive.com&gt;
Co-authored-by: fzi-hielscher &lt;hielscher@fzi.de&gt;
Co-authored-by: Fehr Mathieu &lt;mathieu.fehr@gmail.com&gt;
Co-authored-by: Clo91eaf &lt;Clo91eaf@qq.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR upstreams/adds the C APIs for SMT dialect (from CIRCT).

---------

Co-authored-by: Bea Healy &lt;beahealy22@gmail.com&gt;
Co-authored-by: Martin Erhart &lt;maerhart@outlook.com&gt;
Co-authored-by: Mike Urbach &lt;mikeurbach@gmail.com&gt;
Co-authored-by: Will Dietz &lt;will.dietz@sifive.com&gt;
Co-authored-by: fzi-hielscher &lt;hielscher@fzi.de&gt;
Co-authored-by: Fehr Mathieu &lt;mathieu.fehr@gmail.com&gt;
Co-authored-by: Clo91eaf &lt;Clo91eaf@qq.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][CAPI][python] expose the python bindings for linalg::isaConvolutionOpInterface and linalg::inferConvolutionDims (#135253)</title>
<updated>2025-04-11T00:22:15+00:00</updated>
<author>
<name>Bangtian Liu</name>
<email>liubangtian@gmail.com</email>
</author>
<published>2025-04-11T00:22:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9466cbdf29306b2595303dac5b62b54cf71841b4'/>
<id>9466cbdf29306b2595303dac5b62b54cf71841b4</id>
<content type='text'>
This PR is mainly about exposing the python bindings for
`linalg::isaConvolutionOpInterface` and `linalg::inferConvolutionDims`.

---------

Signed-off-by: Bangtian Liu &lt;liubangtian@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR is mainly about exposing the python bindings for
`linalg::isaConvolutionOpInterface` and `linalg::inferConvolutionDims`.

---------

Signed-off-by: Bangtian Liu &lt;liubangtian@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][CAPI][python] expose the python bindings for linalg::isaContractionOpInterface and linalg::inferContractionDims (#134935)</title>
<updated>2025-04-10T00:01:38+00:00</updated>
<author>
<name>Bangtian Liu</name>
<email>liubangtian@gmail.com</email>
</author>
<published>2025-04-10T00:01:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c359f7625f4d5bacbd88c9c9d26943b7a7e45a3e'/>
<id>c359f7625f4d5bacbd88c9c9d26943b7a7e45a3e</id>
<content type='text'>
This PR is mainly about exposing the python bindings for`
linalg::isaContractionOpInterface` and` linalg::inferContractionDims`.

---------

Signed-off-by: Bangtian Liu &lt;liubangtian@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR is mainly about exposing the python bindings for`
linalg::isaContractionOpInterface` and` linalg::inferContractionDims`.

---------

Signed-off-by: Bangtian Liu &lt;liubangtian@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Sub-channel quantized type implementation (#120172)</title>
<updated>2025-03-23T12:37:55+00:00</updated>
<author>
<name>Sandeep Dasgupta</name>
<email>sdasgup@google.com</email>
</author>
<published>2025-03-23T12:37:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=81d7eef13453f21303acfba773d0903b27ad754b'/>
<id>81d7eef13453f21303acfba773d0903b27ad754b</id>
<content type='text'>
This is an implementation for [RFC: Supporting Sub-Channel Quantization
in
MLIR](https://discourse.llvm.org/t/rfc-supporting-sub-channel-quantization-in-mlir/82694).

In order to make the review process easier, the PR has been divided into
the following commit labels:

1. **Add implementation for sub-channel type:** Includes the class
design for `UniformQuantizedSubChannelType`, printer/parser and bytecode
read/write support. The existing types (per-tensor and per-axis) are
unaltered.
2. **Add implementation for sub-channel type:** Lowering of
`quant.qcast` and `quant.dcast` operations to Linalg operations.
3. **Adding C/Python Apis:** We first define he C-APIs and build the
Python-APIs on top of those.
4. **Add pass to normalize generic ....:** This pass normalizes
sub-channel quantized types to per-tensor per-axis types, if possible.


A  design note:
- **Explicitly storing the `quantized_dimensions`, even when they can be
derived for ranked tensor.**
While it's possible to infer quantized dimensions from the static shape
of the scales (or zero-points) tensor for ranked
data tensors
([ref](https://discourse.llvm.org/t/rfc-supporting-sub-channel-quantization-in-mlir/82694/3)
for background), there are cases where this can lead to ambiguity and
issues with round-tripping.

```
Consider the example: tensor&lt;2x4x!quant.uniform&lt;i8:f32:{0:2, 0:2}, {{s00:z00, s01:z01}}&gt;&gt;
```

The shape of the scales tensor is [1, 2], which might suggest that only
axis 1 is quantized. While this inference is technically correct, as the
block size for axis 0 is a degenerate case (equal to the dimension
size), it can cause problems with round-tripping. Therefore, even for
ranked tensors, we are explicitly storing the quantized dimensions.
Suggestions welcome!


PS: I understand that the upcoming holidays may impact your schedule, so
please take your time with the review. There's no rush.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is an implementation for [RFC: Supporting Sub-Channel Quantization
in
MLIR](https://discourse.llvm.org/t/rfc-supporting-sub-channel-quantization-in-mlir/82694).

In order to make the review process easier, the PR has been divided into
the following commit labels:

1. **Add implementation for sub-channel type:** Includes the class
design for `UniformQuantizedSubChannelType`, printer/parser and bytecode
read/write support. The existing types (per-tensor and per-axis) are
unaltered.
2. **Add implementation for sub-channel type:** Lowering of
`quant.qcast` and `quant.dcast` operations to Linalg operations.
3. **Adding C/Python Apis:** We first define he C-APIs and build the
Python-APIs on top of those.
4. **Add pass to normalize generic ....:** This pass normalizes
sub-channel quantized types to per-tensor per-axis types, if possible.


A  design note:
- **Explicitly storing the `quantized_dimensions`, even when they can be
derived for ranked tensor.**
While it's possible to infer quantized dimensions from the static shape
of the scales (or zero-points) tensor for ranked
data tensors
([ref](https://discourse.llvm.org/t/rfc-supporting-sub-channel-quantization-in-mlir/82694/3)
for background), there are cases where this can lead to ambiguity and
issues with round-tripping.

```
Consider the example: tensor&lt;2x4x!quant.uniform&lt;i8:f32:{0:2, 0:2}, {{s00:z00, s01:z01}}&gt;&gt;
```

The shape of the scales tensor is [1, 2], which might suggest that only
axis 1 is quantized. While this inference is technically correct, as the
block size for axis 0 is a degenerate case (equal to the dimension
size), it can cause problems with round-tripping. Therefore, even for
ranked tensors, we are explicitly storing the quantized dimensions.
Suggestions welcome!


PS: I understand that the upcoming holidays may impact your schedule, so
please take your time with the review. There's no rush.</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][index] Add CAPI (#127039)</title>
<updated>2025-02-13T17:37:49+00:00</updated>
<author>
<name>Martin Erhart</name>
<email>martin.erhart@sifive.com</email>
</author>
<published>2025-02-13T17:37:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9a63a2c4babcaabaeb1a106345f3b037485efa4c'/>
<id>9a63a2c4babcaabaeb1a106345f3b037485efa4c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir] feat: add `mlirFuncSetResultAttr` (#125972)</title>
<updated>2025-02-06T23:33:12+00:00</updated>
<author>
<name>Avik Pal</name>
<email>avik.pal.2017@gmail.com</email>
</author>
<published>2025-02-06T23:33:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a15618f18cb000cce59df810c9e75153aa5e0aca'/>
<id>a15618f18cb000cce59df810c9e75153aa5e0aca</id>
<content type='text'>
cc @ftynse @wsmoses</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cc @ftynse @wsmoses</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][llvmir][reland] expose Type(To/From)LLVMIRTranslator C API (#125110)</title>
<updated>2025-01-31T15:40:56+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-01-31T15:40:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5fbb8dd7da5cd8b76127e780d418fe780d3337a4'/>
<id>5fbb8dd7da5cd8b76127e780d418fe780d3337a4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
