pliron
is an extensible compiler IR framework, inspired by MLIR
and written in safe Rust.
cargo build
and cargo test
should build the compiler and run the testsuite.To see a simple IR constructed (by the constructanderase test), use the following command:
cargo test constructanderase -- --show-output
It should print something like:
mlir
builtin.module @bar {
block_0_0():
builtin.func @foo() -> (si64,) {
entry():
c0 = builtin.constant 0x0: si64
llvm.return c0
}
}
pliron
is currently in a nascent stage and not yet useful for
real-world use. In the future it can be used by just adding
a dependence to the crate
in your Rust project.