xDSL
xDSL is a Python-native Compiler Toolkit. Design your own (domain-specific) compiler by mixing predefined IRs with your custom IR abstractions. Always optimize at the optimal abstraction level by lowering programs through multiple levels of IRs. Connect with the LLVM/MLIR ecosystem while benefiting from Python’s productivity.
-
Rapid development in Pure Python
Uses your existing Python skills to build compilers, fast.
-
Easy installation
Just
pip install xdsl
. -
Cross platform
xDSL runs just about anywhere Python can.
-
MLIR-compatible
Uses the same textual format as MLIR for intermediate representation.
-
Batteries included
Leverage existing compiler and interpreter components.
-
Open source
xDSL is licensed under Apache License v2.0 with LLVM Exceptions.