architecture

Compiler Pipeline Overview

From AST to LLVM IR to native machine code.

Published May 30, 2026

1. Parse

Python source is parsed into an AST.

2. Analyse

AST is scanned for unsupported patterns and type information is inferred.

3. Lower

AST is transformed into Pyvorin intermediate representation.

4. Generate LLVM IR

IR is translated to LLVM intermediate representation.

5. Optimise

LLVM runs optimisation passes based on opt_level.

6. Generate Machine Code

LLVM backend emits native object code for the target CPU.

Object files are linked with Pyvorin runtime libraries.

8. Package

Final shared library is packaged as an artifact.