Struct wasmtime_cranelift::Cranelift [−][src]
pub struct Cranelift { /* fields omitted */ }
Expand description
A compiler that compiles a WebAssembly module with Cranelift, translating the Wasm to Cranelift IR, optimizing it and then translating to assembly.
Trait Implementations
impl Compiler for Cranelift
[src]
impl Compiler for Cranelift
[src]fn compile_function(
&self,
translation: &ModuleTranslation<'_>,
func_index: DefinedFuncIndex,
input: FunctionBodyData<'_>,
isa: &dyn TargetIsa,
tunables: &Tunables,
types: &TypeTables
) -> Result<CompiledFunction, CompileError>
[src]
fn compile_function(
&self,
translation: &ModuleTranslation<'_>,
func_index: DefinedFuncIndex,
input: FunctionBodyData<'_>,
isa: &dyn TargetIsa,
tunables: &Tunables,
types: &TypeTables
) -> Result<CompiledFunction, CompileError>
[src]Compile a function with the given TargetIsa
.