Struct wasmer_compiler_llvm::LLVM
source · [−]pub struct LLVM { /* private fields */ }
Implementations
sourceimpl LLVM
impl LLVM
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new configuration object with the default configuration specified.
sourcepub fn opt_level(&mut self, opt_level: LLVMOptLevel) -> &mut Self
pub fn opt_level(&mut self, opt_level: LLVMOptLevel) -> &mut Self
The optimization levels when optimizing the IR.
sourcepub fn callbacks(
&mut self,
callbacks: Option<Arc<dyn LLVMCallbacks>>
) -> &mut Self
pub fn callbacks(
&mut self,
callbacks: Option<Arc<dyn LLVMCallbacks>>
) -> &mut Self
Callbacks that will triggered in the different compilation phases in LLVM.
sourcepub fn target_machine(&self, target: &Target) -> TargetMachine
pub fn target_machine(&self, target: &Target) -> TargetMachine
Generates the target machine for the current target
Trait Implementations
sourceimpl CompilerConfig for LLVM
impl CompilerConfig for LLVM
sourcefn enable_pic(&mut self)
fn enable_pic(&mut self)
Emit code suitable for dlopen.
sourcefn enable_verifier(&mut self)
fn enable_verifier(&mut self)
Whether to verify compiler IR.
sourcefn push_middleware(&mut self, middleware: Arc<dyn ModuleMiddleware>)
fn push_middleware(&mut self, middleware: Arc<dyn ModuleMiddleware>)
Pushes a middleware onto the back of the middleware chain.
sourcefn enable_nan_canonicalization(&mut self)
fn enable_nan_canonicalization(&mut self)
Please use the canonicalize_nans instead
Enable NaN canonicalization. Read more
sourcefn canonicalize_nans(&mut self, enable: bool)
fn canonicalize_nans(&mut self, enable: bool)
Enable NaN canonicalization. Read more
sourcefn 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
sourceimpl MemoryUsage for LLVM
impl MemoryUsage for LLVM
sourcefn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
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 LLVM
impl Send for LLVM
impl Sync for LLVM
impl Unpin for LLVM
impl !UnwindSafe for LLVM
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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more