Struct wasmer_compiler_cranelift_near::CraneliftCompiler[][src]

pub struct CraneliftCompiler { /* fields omitted */ }

A compiler that compiles a WebAssembly module with Cranelift, translating the Wasm to Cranelift IR, optimizing it and then translating to assembly.

Implementations

impl CraneliftCompiler[src]

pub fn new(config: Cranelift) -> Self[src]

Creates a new Cranelift compiler

pub fn config(&self) -> &Cranelift[src]

Gets the WebAssembly features for this Compiler

Trait Implementations

impl Compiler for CraneliftCompiler[src]

fn compile_module(
    &self,
    target: &Target,
    compile_info: &mut CompileModuleInfo,
    module_translation_state: &ModuleTranslationState,
    function_body_inputs: PrimaryMap<LocalFunctionIndex, FunctionBodyData<'_>>
) -> Result<Compilation, CompileError>
[src]

Compile the module using Cranelift, producing a compilation result with associated relocations.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.