Path: blob/main/crates/cranelift/src/translate/mod.rs
1692 views
//! Performs translation from a wasm module in binary format to the in-memory form1//! of Cranelift IR. More particularly, it translates the code of all the functions bodies and2//! interacts with an environment implementing the3//! [`ModuleEnvironment`](trait.ModuleEnvironment.html)4//! trait to deal with tables, globals and linear memory.5//!6//! The main function of this module is [`translate_module`](fn.translate_module.html).7//!8//! Note that this module used to be the `cranelift-wasm` crate historically and9//! it's in a transitionary period of being slurped up into10//! `wasmtime-cranelift`.1112mod code_translator;13mod environ;14mod func_translator;15mod heap;16mod stack;17mod table;18mod translation_utils;1920pub use self::environ::{GlobalVariable, StructFieldsVec, TargetEnvironment};21pub use self::func_translator::FuncTranslator;22pub use self::heap::{Heap, HeapData};23pub use self::stack::FuncTranslationStacks;24pub use self::table::{TableData, TableSize};25pub use self::translation_utils::*;262728