Skip to main content

Crate teeny_compiler

Crate teeny_compiler 

Source
Expand description

Compiles a teenygrad computational graph (FXGraph, traced from teeny-core) down to a target backend — LLVM/MLIR object code today (compiler::backend), with an ndarray-backed CPU path behind the ndarray feature.

Compiling kernels through the LLVM backend shells out to the custom teenyc compiler at runtime (via TEENYC_PATH) — not needed to build this crate itself. See the crate README for the cargo-teeny/TEENYC_PATH setup.

Modules§

compiler
Compilation backends and drivers (LLVM/MLIR, ndarray).
errors
Error types.
fxgraph
FXGraph, the compiler’s intermediate representation.

Functions§

init_logging
Initialize logging for the teeny-compiler