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.
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
git clone https://github.com/eymay/orion_heir_translator.git
cd orion_heir_translator
pip install -e .Dependencies should be installed automatically.
Orion can be picky on Python version, please install it as explained here.
python examples/mlp.py
python examples/resnet.py