Struct wasmer::Cranelift[][src]

pub struct Cranelift { /* fields omitted */ }

Global configuration options used to create an wasmer_engine::Engine and customize its behavior.

This structure exposes a builder-like interface and is primarily consumed by wasmer_engine::Engine::new.

Implementations

impl Cranelift[src]

pub fn new() -> Cranelift[src]

Creates a new configuration object with the default configuration specified.

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

Enable NaN canonicalization.

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

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

Enable SIMD support.

pub fn opt_level(&mut self, opt_level: CraneliftOptLevel) -> &mut Cranelift[src]

The optimization levels when optimizing the IR.

pub fn isa(&self, target: &Target) -> Box<dyn TargetIsa + 'static, Global>[src]

Generates the ISA for the provided target

pub fn flags(&self) -> Flags[src]

Generates the flags for the compiler

Trait Implementations

impl Clone for Cranelift[src]

impl CompilerConfig for Cranelift[src]

pub fn compiler(
    self: Box<Cranelift, Global>
) -> Box<dyn Compiler + 'static, Global>
[src]

Transform it into the compiler

pub fn push_middleware(
    &mut self,
    middleware: Arc<dyn ModuleMiddleware + 'static>
)
[src]

Pushes a middleware onto the back of the middleware chain.

impl Debug for Cranelift[src]

impl Default for Cranelift[src]

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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,