[][src]Struct wasmer_compiler_llvm::LLVM

pub struct LLVM { /* fields omitted */ }

Implementations

impl LLVM[src]

pub fn new() -> Self[src]

Creates a new configuration object with the default configuration specified.

pub fn canonicalize_nans(&mut self, enable: bool) -> &mut Self[src]

Enable NaN canonicalization.

NaN canonicalization is useful when trying to run WebAssembly deterministically across different architectures.

pub fn opt_level(&mut self, opt_level: OptimizationLevel) -> &mut Self[src]

The optimization levels when optimizing the IR.

pub fn callbacks(
    &mut self,
    callbacks: Option<Arc<dyn LLVMCallbacks>>
) -> &mut Self
[src]

Callbacks that will triggered in the different compilation phases in LLVM.

pub fn target_machine(&self, target: &Target) -> TargetMachine[src]

Generates the target machine for the current target

Trait Implementations

impl Clone for LLVM[src]

impl CompilerConfig for LLVM[src]

fn enable_pic(&mut self)[src]

Emit code suitable for dlopen.

fn enable_verifier(&mut self)[src]

Whether to verify compiler IR.

fn compiler(&self) -> Box<dyn Compiler + Send>[src]

Transform it into the compiler.

fn push_middleware(&mut self, middleware: Arc<dyn FunctionMiddlewareGenerator>)[src]

Pushes a middleware onto the back of the middleware chain.

impl Debug for LLVM[src]

impl Default for LLVM[src]

Auto Trait Implementations

impl !RefUnwindSafe for LLVM

impl Send for LLVM

impl Sync for LLVM

impl Unpin for LLVM

impl !UnwindSafe for LLVM

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.