[−][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]
pub fn experimental_native_compile_module<'data, 'module>(
&self,
target: &Target,
compile_info: &'module mut 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,
compile_info: &'module mut CompileModuleInfo,
module_translation: &ModuleTranslationState,
function_body_inputs: &PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>,
symbol_registry: &dyn SymbolRegistry,
wasmer_metadata: &[u8]
) -> Option<Result<Vec<u8>, CompileError>>
pub fn compile_module<'data, 'module>(
&self,
target: &Target,
compile_info: &'module mut CompileModuleInfo,
module_translation: &ModuleTranslationState,
function_body_inputs: PrimaryMap<LocalFunctionIndex, FunctionBodyData<'data>>
) -> Result<Compilation, CompileError>
[src]
&self,
target: &Target,
compile_info: &'module mut 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.
pub 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
[src]
impl Send for LLVMCompiler
[src]
impl Sync for LLVMCompiler
[src]
impl Unpin for LLVMCompiler
[src]
impl !UnwindSafe for LLVMCompiler
[src]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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>,