[][src]Trait wasmtime_environ::Compiler

pub trait Compiler {
    fn compile_module<'data, 'module>(
        module: &'module Module,
        module_translation: &ModuleTranslationState,
        function_body_inputs: PrimaryMap<DefinedFuncIndex, FunctionBodyData<'data>>,
        isa: &dyn TargetIsa,
        generate_debug_info: bool,
        cache_config: &CacheConfig
    ) -> Result<(Compilation, Relocations, ModuleAddressMap, ValueLabelsRanges, PrimaryMap<DefinedFuncIndex, StackSlots>, Traps, FrameLayouts), CompileError>; }

An implementation of a compiler from parsed WebAssembly module to native code.

Required methods

fn compile_module<'data, 'module>(
    module: &'module Module,
    module_translation: &ModuleTranslationState,
    function_body_inputs: PrimaryMap<DefinedFuncIndex, FunctionBodyData<'data>>,
    isa: &dyn TargetIsa,
    generate_debug_info: bool,
    cache_config: &CacheConfig
) -> Result<(Compilation, Relocations, ModuleAddressMap, ValueLabelsRanges, PrimaryMap<DefinedFuncIndex, StackSlots>, Traps, FrameLayouts), CompileError>

Compile a parsed module with the given TargetIsa.

Loading content...

Implementors

impl Compiler for Cranelift[src]

fn compile_module(
    module: &Module,
    module_translation: &ModuleTranslationState,
    function_body_inputs: PrimaryMap<DefinedFuncIndex, FunctionBodyData>,
    isa: &dyn TargetIsa,
    generate_debug_info: bool,
    cache_config: &CacheConfig
) -> Result<(Compilation, Relocations, ModuleAddressMap, ValueLabelsRanges, PrimaryMap<DefinedFuncIndex, StackSlots>, Traps, FrameLayouts), CompileError>
[src]

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

Loading content...