Struct wasmer_compiler_cranelift::Cranelift [−][src]
pub struct Cranelift { /* fields omitted */ }
Expand description
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]
impl Cranelift
[src]pub fn new() -> Self
[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]
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: CraneliftOptLevel) -> &mut Self
[src]
pub fn opt_level(&mut self, opt_level: CraneliftOptLevel) -> &mut Self
[src]The optimization levels when optimizing the IR.
Trait Implementations
impl CompilerConfig for Cranelift
[src]
impl CompilerConfig for Cranelift
[src]fn push_middleware(&mut self, middleware: Arc<dyn ModuleMiddleware>)
[src]
fn push_middleware(&mut self, middleware: Arc<dyn ModuleMiddleware>)
[src]Pushes a middleware onto the back of the middleware chain.
fn enable_pic(&mut self)
[src]
fn enable_pic(&mut self)
[src]Enable Position Independent Code (PIC). Read more
fn enable_verifier(&mut self)
[src]
fn enable_verifier(&mut self)
[src]Enable compiler IR verification. Read more
fn enable_nan_canonicalization(&mut self)
[src]
fn enable_nan_canonicalization(&mut self)
[src]Please use the canonicalize_nans instead
Enable NaN canonicalization. Read more
fn canonicalize_nans(&mut self, enable: bool)
[src]
fn canonicalize_nans(&mut self, enable: bool)
[src]Enable NaN canonicalization. Read more
fn default_features_for_target(&self, _target: &Target) -> Features
[src]
fn default_features_for_target(&self, _target: &Target) -> Features
[src]Gets the default features for this compiler in the given target
impl MemoryUsage for Cranelift
[src]
impl MemoryUsage for Cranelift
[src]fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
[src]
fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
[src]Returns the size of the referenced value in bytes. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Cranelift
impl Send for Cranelift
impl Sync for Cranelift
impl Unpin for Cranelift
impl !UnwindSafe for Cranelift
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more