knok-compile 0.3.0

MLIR lowering and IREE compilation for knok
1
2
3
4
5
6
7
8
9
10
11
12
13
//! MLIR lowering and IREE compilation for `knok` graphs.
//!
//! `knok-build` uses this crate from build scripts to turn traced graph IR into
//! VMFB bytes. MLIR modules are built and verified in-process with `melior`;
//! final VMFB compilation is delegated to the `iree-compile` command line tool.

mod backend;
mod compile;
mod lowering;
mod mlir;

pub use compile::{compile_graph, compile_graph_with_registry, compile_mlir_source, CompiledGraph};
pub use lowering::{lower_to_mlir, lower_to_mlir_with_registry};