<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/mlir/lib/CAPI/Dialect/Linalg.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][linalg][python] Add Python Bindings for Inferring Contraction Dimensions from Affine Maps (#167587)</title>
<updated>2025-11-12T18:35:04+00:00</updated>
<author>
<name>Bangtian Liu</name>
<email>liubangtian@gmail.com</email>
</author>
<published>2025-11-12T18:35:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a5a78d0bb4198b4280cc2523841609dca82de2eb'/>
<id>a5a78d0bb4198b4280cc2523841609dca82de2eb</id>
<content type='text'>
This PR exposes `linalg::inferContractionDims(ArrayRef&lt;AffineMap&gt;)` to
Python, allowing users to infer contraction dimensions (batch/m/n/k)
directly from a list of affine maps without needing an operation.

---------

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 exposes `linalg::inferContractionDims(ArrayRef&lt;AffineMap&gt;)` to
Python, allowing users to infer contraction dimensions (batch/m/n/k)
directly from a list of affine maps without needing an operation.

---------

Signed-off-by: Bangtian Liu &lt;liubangtian@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR] Apply clang-tidy fixes for performance-unnecessary-copy-initialization in Linalg.cpp (NFC)</title>
<updated>2025-09-14T16:46:00+00:00</updated>
<author>
<name>Mehdi Amini</name>
<email>joker.eph@gmail.com</email>
</author>
<published>2025-08-21T12:09:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8007022caf47372abc73865b3b90e888c23983ad'/>
<id>8007022caf47372abc73865b3b90e888c23983ad</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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][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>[mlir] Simplify DestinationStyleOpInterface.</title>
<updated>2022-10-17T10:43:41+00:00</updated>
<author>
<name>Alexander Belyaev</name>
<email>pifon@google.com</email>
</author>
<published>2022-10-14T17:59:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a7cccb9cbb2b9954684cbea37615303a59719973'/>
<id>a7cccb9cbb2b9954684cbea37615303a59719973</id>
<content type='text'>
Differential Revision: https://reviews.llvm.org/D135348
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Differential Revision: https://reviews.llvm.org/D135348
</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][linalg] Add attributes to region builder (NFC).</title>
<updated>2022-02-14T13:14:14+00:00</updated>
<author>
<name>gysit</name>
<email>gysit@google.com</email>
</author>
<published>2022-02-14T13:02:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=348bfc8e50ea69e17e057636dd2823f60b88a034'/>
<id>348bfc8e50ea69e17e057636dd2823f60b88a034</id>
<content type='text'>
Adapt the region builder signature to hand in the attributes of the created ops. The revision is a preparation step the support named ops that need access to the operation attributes during op creation.

Depends On D119692

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D119693
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adapt the region builder signature to hand in the attributes of the created ops. The revision is a preparation step the support named ops that need access to the operation attributes during op creation.

Depends On D119692

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D119693
</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir] Make locations required when adding/creating block arguments</title>
<updated>2022-01-20T01:35:35+00:00</updated>
<author>
<name>River Riddle</name>
<email>riddleriver@gmail.com</email>
</author>
<published>2022-01-19T02:28:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e084679f961b2a2779f7ee23d53b4d8c4df2517c'/>
<id>e084679f961b2a2779f7ee23d53b4d8c4df2517c</id>
<content type='text'>
BlockArguments gained the ability to have locations attached a while ago, but they
have always been optional. This goes against the core tenant of MLIR where location
information is a requirement, so this commit updates the API to require locations.

Fixes #53279

Differential Revision: https://reviews.llvm.org/D117633</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BlockArguments gained the ability to have locations attached a while ago, but they
have always been optional. This goes against the core tenant of MLIR where location
information is a requirement, so this commit updates the API to require locations.

Fixes #53279

Differential Revision: https://reviews.llvm.org/D117633</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir] Use public PybindAdaptors in Linalg dialect bindings</title>
<updated>2022-01-05T15:18:30+00:00</updated>
<author>
<name>Alex Zinenko</name>
<email>zinenko@google.com</email>
</author>
<published>2022-01-05T12:06:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d716cfc4fa3e2152df73dcb9eda693303c8a33a9'/>
<id>d716cfc4fa3e2152df73dcb9eda693303c8a33a9</id>
<content type='text'>
Previously, the Python bindings for the Linalg dialect relied on the internal
implementation of core bindings. Most of that functionality was moved, and the
remaining one does not need access to the implementation: it used to accept a
dialect pointer as argument, but it can always be extracted from the operation
that it also accepts; operations are available through PybindAdaptors in an
opaque way. Change the bindings in that direction.

This enables the decoupling of the Linalg dialect Python extension from the
core IR Python extension.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D116649
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the Python bindings for the Linalg dialect relied on the internal
implementation of core bindings. Most of that functionality was moved, and the
remaining one does not need access to the implementation: it used to accept a
dialect pointer as argument, but it can always be extracted from the operation
that it also accepts; operations are available through PybindAdaptors in an
opaque way. Change the bindings in that direction.

This enables the decoupling of the Linalg dialect Python extension from the
core IR Python extension.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D116649
</pre>
</div>
</content>
</entry>
</feed>
