← All projects
Project record1 mention
Originally shared on Hacker News

XDSL

XDSL provides a Python-based alternative translator for exporting LLVM IR from MLIR compiler pipelines, implemented using Numba's llvmlite. The authors report promising experiments achieving good performance in pure Python.

Last shared
01 / The problem

What it addresses

MLIR compiler pipelines that generate code via LLVM typically rely on a translator written in C++.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. XDSL

    XDSL provides a Python-based alternative translator for exporting LLVM IR from MLIR compiler pipelines, implemented using Numba's llvmlite. The authors report promising experiments achieving good performance in pure Python.

    Problem: MLIR compiler pipelines that generate code via LLVM typically rely on a translator written in C++.

    Posted by @superlopuh · Original source ↗

    Story title · @superlopuh · · Source ↗

    Show HN: Exporting LLVM IR from XDSL

    Submitted URL · @superlopuh · · Source ↗

    https://xdsl.dev/blog/2026/10/21/exporting-llvm-ir-from-xdsl/

    Source text · @superlopuh · · Source ↗

    Many MLIR compiler pipelines generate code via LLVM, with a translator written in C++.

    Source text · @superlopuh · · Source ↗

    We added an alternative translator in Python, using Numba's llvmlite.

    Source text · @superlopuh · · Source ↗

    We've done some promising experiments using this, allowing us to get some pretty good performance in pure Python, which we'll share soon.

    Source text · @superlopuh · · Source ↗

    Many MLIR compiler pipelines generate code via LLVM, with a translator written in C++.