About Anaconda Help Download Anaconda

Python Interface for the Multi-Level Intermediate Representation

Installers

  • noarch v0.3.1

conda install

To install this package run one of the following:
conda install metagraph::pymlir
conda install metagraph/label/dev::pymlir

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.


© 2025 Anaconda, Inc. All Rights Reserved. (v4.0.6) Legal | Privacy Policy