Struct wasmtime_cranelift_shared::isa_builder::IsaBuilder
source · pub struct IsaBuilder<T> {
pub lookup: fn(_: Triple) -> Result<IsaBuilder<T>>,
/* private fields */
}
Expand description
A helper to build an Isa for a compiler implementation. Compiler builders can wrap this to provide better flexibility when setting flags.
Most methods are mirrored from the wasmtime_environ::CompilerBuilder
trait, so look there for more
information.
Fields§
§lookup: fn(_: Triple) -> Result<IsaBuilder<T>>
A callback to lookup a new ISA builder for a target.
Implementations§
source§impl<T> IsaBuilder<T>
impl<T> IsaBuilder<T>
sourcepub fn new(
triple: Option<Triple>,
lookup: fn(_: Triple) -> Result<Builder<T>>
) -> Result<Self>
pub fn new( triple: Option<Triple>, lookup: fn(_: Triple) -> Result<Builder<T>> ) -> Result<Self>
Create a new ISA builder with the given lookup function.
pub fn triple(&self) -> &Triple
pub fn target(&mut self, target: Triple) -> Result<()>
pub fn settings(&self) -> Vec<Setting>
pub fn set(&mut self, name: &str, value: &str) -> Result<()>
pub fn enable(&mut self, name: &str) -> Result<()>
pub fn build(&self) -> T
Auto Trait Implementations§
impl<T> Freeze for IsaBuilder<T>
impl<T> RefUnwindSafe for IsaBuilder<T>
impl<T> Send for IsaBuilder<T>
impl<T> Sync for IsaBuilder<T>
impl<T> Unpin for IsaBuilder<T>
impl<T> UnwindSafe for IsaBuilder<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more