[−][src]Struct wasmer_compiler_llvm::LLVMCompiler
A compiler that compiles a WebAssembly module with LLVM, translating the Wasm to LLVM IR, optimizing it and then translating to assembly.
Implementations
impl LLVMCompiler
[src]
pub fn new(config: &LLVM) -> LLVMCompiler
[src]
Creates a new LLVM compiler
Trait Implementations
impl Compiler for LLVMCompiler
[src]
fn experimental_native_compile_module<'data, 'module>(
&self,
target: &Target,
module: &'module CompileModuleInfo,
module_translation: &ModuleTranslationState,
function_body_inputs: &PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>,
symbol_registry: &dyn SymbolRegistry,
wasmer_metadata: &[u8]
) -> Option<Result<Vec<u8>, CompileError>>
[src]
&self,
target: &Target,
module: &'module CompileModuleInfo,
module_translation: &ModuleTranslationState,
function_body_inputs: &PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>,
symbol_registry: &dyn SymbolRegistry,
wasmer_metadata: &[u8]
) -> Option<Result<Vec<u8>, CompileError>>
fn compile_module<'data, 'module>(
&self,
target: &Target,
compile_info: &'module CompileModuleInfo,
module_translation: &ModuleTranslationState,
function_body_inputs: PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>
) -> Result<Compilation, CompileError>
[src]
&self,
target: &Target,
compile_info: &'module CompileModuleInfo,
module_translation: &ModuleTranslationState,
function_body_inputs: PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>
) -> Result<Compilation, CompileError>
Compile the module using LLVM, producing a compilation result with associated relocations.
fn validate_module(
&self,
features: &Features,
data: &'data [u8]
) -> Result<(), CompileError>
[src]
&self,
features: &Features,
data: &'data [u8]
) -> Result<(), CompileError>
Auto Trait Implementations
impl !RefUnwindSafe for LLVMCompiler
impl Send for LLVMCompiler
impl Sync for LLVMCompiler
impl Unpin for LLVMCompiler
impl !UnwindSafe for LLVMCompiler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,