Struct wasmtime_cranelift::Cranelift
source · [−]pub struct Cranelift { /* private fields */ }
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
sourceimpl Compiler for Cranelift
impl Compiler for Cranelift
sourcefn compile_function(
&self,
translation: &ModuleTranslation<'_>,
func_index: DefinedFuncIndex,
input: FunctionBodyData<'_>,
isa: &dyn TargetIsa,
tunables: &Tunables,
types: &TypeTables
) -> Result<CompiledFunction, CompileError>
fn compile_function(
&self,
translation: &ModuleTranslation<'_>,
func_index: DefinedFuncIndex,
input: FunctionBodyData<'_>,
isa: &dyn TargetIsa,
tunables: &Tunables,
types: &TypeTables
) -> Result<CompiledFunction, CompileError>
Compile a function with the given TargetIsa
.
Auto Trait Implementations
impl RefUnwindSafe for Cranelift
impl Send for Cranelift
impl Sync for Cranelift
impl Unpin for Cranelift
impl UnwindSafe for Cranelift
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more