Rust API#
The tvm-tirx crate provides TIRx in Rust:
the compiler objects over TVM FFI, and the definition of new types, operators, and
passes. 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 modules, their IR constructors and operators, and the definition of new types, operators, and passes. |
📦 tvm-ffi |
The TVM FFI objects, functions, containers and |