Skip to content

eymay/orion_heir_translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orion-HEIR Translator

Python based translator that connects Orion Frontend to HEIR backends. It reads internal compilation result of Orion and constructs an xDSL based MLIR representation that is compatible with HEIR.

Project Structure

orion-heir-translator/
├── src/orion_heir/
│   ├── dialects/           # xDSL HEIR dialects (CKKS, LWE, etc.)
│   ├── core/              # Generic translator infrastructure  
│   ├── frontends/         # Frontend implementations (Orion, etc.)
│   │   └── orion/         # Orion-specific code
│   └── tools/             # CLI tools and drivers
├── tests/                 # Test suite
├── examples/              # Usage examples

Installation

From Source

git clone https://github.com/eymay/orion_heir_translator.git
cd orion_heir_translator
pip install -e .

Dependencies should be installed automatically.

Extra dependencies

Orion can be picky on Python version, please install it as explained here.

Quick Start

python examples/mlp.py
python examples/resnet.py

About

An FHE IR-to-IR translator for Orion and HEIR. Built with xDSL for MLIR.

Resources

Stars

Watchers

Forks

Contributors