Struct holochain_wasmer_host::prelude::Cranelift [−]
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
impl Cranelift
Creates a new configuration object with the default configuration specified.
pub fn canonicalize_nans(&mut self, enable: bool) -> &mut Cranelift
pub fn canonicalize_nans(&mut self, enable: bool) -> &mut Cranelift
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 Cranelift
pub fn opt_level(&mut self, opt_level: CraneliftOptLevel) -> &mut Cranelift
The optimization levels when optimizing the IR.
Generates the ISA for the provided target
pub fn flags(&self) -> Flags
pub fn flags(&self) -> Flags
Generates the flags for the compiler
Trait Implementations
impl CompilerConfig for Cranelift
impl CompilerConfig for Cranelift
Transform it into the compiler
pub fn push_middleware(
&mut self,
middleware: Arc<dyn ModuleMiddleware + 'static>
)
pub fn push_middleware(
&mut self,
middleware: Arc<dyn ModuleMiddleware + 'static>
)
Pushes a middleware onto the back of the middleware chain.
pub fn enable_pic(&mut self)
pub fn enable_pic(&mut self)
Enable Position Independent Code (PIC). Read more
pub fn enable_verifier(&mut self)
pub fn enable_verifier(&mut self)
Enable compiler IR verification. Read more
pub fn enable_nan_canonicalization(&mut self)
pub fn enable_nan_canonicalization(&mut self)
Please use the canonicalize_nans instead
Enable NaN canonicalization. Read more
pub fn canonicalize_nans(&mut self, enable: bool)
pub fn canonicalize_nans(&mut self, enable: bool)
Enable NaN canonicalization. Read more
fn default_features_for_target(&self, _target: &Target) -> Features
fn default_features_for_target(&self, _target: &Target) -> Features
Gets the default features for this compiler in the given target
impl MemoryUsage for Cranelift
impl MemoryUsage for Cranelift
pub fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
pub fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
Returns the size of the referenced value in bytes. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Cranelift
impl !UnwindSafe for Cranelift
Blanket Implementations
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.
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V