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§
source§impl 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.