Expand description
Standalone WebAssembly to Cranelift IR translator.
This module defines the FuncTranslator
type which can translate a single WebAssembly
function to Cranelift IR guided by a FuncEnvironment
which provides information about the
WebAssembly module and the runtime environment.
Structsยง
- Func
Translator - WebAssembly to Cranelift IR function translator.
Functionsยง
- cur_
srcloc ๐ - Get the current source location from a reader.
- declare_
locals ๐ - Declare
count
local variables of the same type, starting fromnext_local
. - declare_
wasm_ ๐parameters - Declare local variables for the signature parameters that correspond to WebAssembly locals.
- parse_
function_ ๐body - Parse the function body in
reader
. - parse_
local_ ๐decls - Parse the local variable declarations that precede the function body.