Skip to content

Python · Compiler infrastructure · Embedded languages

Kirin

Build composable domain-specific languages with an SSA intermediate representation, analyses, rewrites, and interpreters.

Source: QuEraComputing/kirin

A compiled functionfirst_kernel.py
from kirin.prelude import basic

@basic
def choose(x):
    if x > 0:
        return 1
    return 2

choose.print()

Decorate a Python function to create and inspect Kirin IR.

§ 1   Explore

Get started with Kirin

§ 2   Install

Add Kirin

pip install kirin-toolchain

Quick Start, Tutorials or API Reference