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 opt_level(&mut self, opt_level: LLVMOptLevel) -> &mut Self[src]
The optimization levels when optimizing the IR.
Callbacks that will triggered in the different compilation phases in LLVM.
pub fn target_machine(&self, target: &Target) -> TargetMachine[src]
Generates the target machine for the current target
impl CompilerConfig for LLVM[src]
pub fn enable_pic(&mut self)[src]
Emit code suitable for dlopen.
pub fn enable_verifier(&mut self)[src]
Whether to verify compiler IR.
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 !RefUnwindSafe for LLVM[src]
impl !UnwindSafe for LLVM[src]
type Init = T
The type for initializers.
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.