[−][src]Struct wasmer_compiler_cranelift::Cranelift
Global configuration options used to create an [Engine
] and customize its
behavior.
This structure exposed a builder-like interface and is primarily consumed by
[Engine::new()
]
Implementations
impl Cranelift
[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 enable_simd(&mut self, enable: bool) -> &mut Self
[src]
Enable SIMD support.
pub fn opt_level(&mut self, opt_level: OptLevel) -> &mut Self
[src]
The optimization levels when optimizing the IR.
pub fn isa(&self, target: &Target) -> Box<dyn TargetIsa>
[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 enable_pic(&mut self)
[src]
pub fn enable_verifier(&mut self)
[src]
pub fn compiler(&self) -> Box<dyn Compiler + Send>
[src]
Transform it into the compiler
pub fn push_middleware(&mut self, middleware: Arc<dyn ModuleMiddleware>)
[src]
Pushes a middleware onto the back of the middleware chain.
pub fn default_features_for_target(&self, _target: &Target) -> Features
[src]
impl Debug for Cranelift
[src]
impl Default for Cranelift
[src]
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> 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,