Module translator

Source
Expand description

Tools for translating wasm function bytecode to Cranelift IR.

Re-exportsยง

pub use self::func_environ::FuncEnvironment;
pub use self::func_environ::GlobalVariable;
pub use self::func_environ::TargetEnvironment;
pub use self::func_translator::FuncTranslator;
pub use self::translation_utils::irlibcall_to_libcall;
pub use self::translation_utils::irreloc_to_relocationkind;
pub use self::translation_utils::signature_to_cranelift_ir;

Modulesยง

code_translator ๐Ÿ”’
This module contains the bulk of the interesting code performing the translation between WebAssembly bytecode and Cranelift IR.
func_environ ๐Ÿ”’
All the runtime support necessary for the wasm to cranelift translation is formalized by the traits FunctionEnvMutironment.
func_state ๐Ÿ”’
WebAssembly module and function translation state.
func_translator ๐Ÿ”’
Standalone WebAssembly to Cranelift IR translator.
translation_utils ๐Ÿ”’
Helper functions and structures for the translation.
unwind ๐Ÿ”’
A Compilation contains the compiled function bodies for a WebAssembly module.