CMD + K

pymlir

Community

Python Interface for the Multi-Level Intermediate Representation

Installation

To install this package, run one of the following:

Conda
$conda install metagraph::pymlir

Usage Tracking

0.3.1
0.3
2 / 8 versions selected
Total downloads: 0

Description

pyMLIR is a full Python interface to parse, process, and output MLIR files according to the syntax described in the MLIR documentation. pyMLIR supports the basic dialects and can be extended with other dialects. It uses Lark to parse the MLIR syntax, and mirrors the classes into Python classes. Custom dialects can also be implemented with a Python string-format-like syntax, or via direct parsing.

Note that the tool does not depend on LLVM or MLIR. It can be installed and invoked directly from Python.

About

Summary

Python Interface for the Multi-Level Intermediate Representation

Information Last Updated

Mar 25, 2025 at 16:25

License

BSD 3-clause

Total Downloads

8.8K

Platforms

noarch Version: 0.3.1