Struct inkwell::targets::TargetMachineOptions
source · pub struct TargetMachineOptions(/* private fields */);
Expand description
LLVM target machine options provide another way to create target machines, used with Target::create_target_machine_from_options.
The option structure exposes an additional setting (i.e., the target ABI) and provides default values for unspecified settings.
Implementations§
source§impl TargetMachineOptions
impl TargetMachineOptions
pub fn new() -> Self
pub fn set_cpu(self, cpu: &str) -> Self
pub fn set_features(self, features: &str) -> Self
pub fn set_abi(self, abi: &str) -> Self
pub fn set_level(self, level: OptimizationLevel) -> Self
pub fn set_reloc_mode(self, reloc_mode: RelocMode) -> Self
pub fn set_code_model(self, code_model: CodeModel) -> Self
Trait Implementations§
source§impl Debug for TargetMachineOptions
impl Debug for TargetMachineOptions
source§impl Default for TargetMachineOptions
impl Default for TargetMachineOptions
source§fn default() -> TargetMachineOptions
fn default() -> TargetMachineOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TargetMachineOptions
impl !Send for TargetMachineOptions
impl !Sync for TargetMachineOptions
impl Unpin for TargetMachineOptions
impl UnwindSafe for TargetMachineOptions
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more