Struct cranelift_codegen::isa::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
Builder for a TargetIsa
.
Modify the ISA-specific settings before creating the TargetIsa
trait object with finish
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn iter(&self) -> impl Iterator<Item = Setting>
pub fn iter(&self) -> impl Iterator<Item = Setting>
Iterates the available settings in the builder.
sourcepub fn finish(self, shared_flags: Flags) -> CodegenResult<Box<dyn TargetIsa>>
pub fn finish(self, shared_flags: Flags) -> CodegenResult<Box<dyn TargetIsa>>
Combine the ISA-specific settings with the provided
ISA-independent settings and allocate a fully configured
TargetIsa
trait object. May return an error if some of the
flags are inconsistent or incompatible: for example, some
platform-independent features, like general SIMD support, may
need certain ISA extensions to be enabled.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more