Rust API#
The tvm-tirx crate binds the TIRx compiler
objects over TVM FFI. Its modules follow the Python package: tvm_tirx::ir is
tvm_tirx.ir, tvm_tirx::tirx is tvm_tirx.tirx, and so on. Operators and types can also be defined from Rust in
tvm_ffi::static_init_block! blocks, which run when their library loads; the
Rust extension tutorial builds such a
library.
The crate is built on the tvm-ffi crate, which provides the objects, functions,
containers and macros its API is written in. This site therefore also hosts the
tvm-ffi reference, so links between the two crates resolve here, against the version
TIRx is built with.
The reference is generated by cargo doc when the documentation is built with
BUILD_RUST_DOCS=1 (see Build This Doc Site).
Crates#
Crate |
Description |
|---|---|
📦 tvm-tirx |
The IR, TIRx, symbolic analysis, target, backend, runtime, codegen and script bindings, and the Rust IR constructors and operators. |
📦 tvm-ffi |
The TVM FFI objects, functions, containers and |