pub struct JITTargetMachineBuilder {
builder: LLVMOrcJITTargetMachineBuilderRef,
}
Expand description
[LLVMOrcJITTargetMachineBuilderRef
], used in LLJITBuilder
.
Fields§
§builder: LLVMOrcJITTargetMachineBuilderRef
Implementations§
Source§impl JITTargetMachineBuilder
impl JITTargetMachineBuilder
Sourcepub fn new(tm: TargetMachine) -> Self
pub fn new(tm: TargetMachine) -> Self
Create a JITTargetMachineBuilder from the given TargetMachine template.
Sourcepub fn detect_host() -> Result<Self, LLVMString>
pub fn detect_host() -> Result<Self, LLVMString>
Create a JITTargetMachineBuilder by detecting the host.
Sourcepub unsafe fn from_inner(builder: LLVMOrcJITTargetMachineBuilderRef) -> Self
pub unsafe fn from_inner(builder: LLVMOrcJITTargetMachineBuilderRef) -> Self
Wraps a raw pointer.
Sourcepub fn get_target_triple(&self) -> LLVMString
pub fn get_target_triple(&self) -> LLVMString
Returns the target triple for the given JITTargetMachineBuilder as a string.
Sourcepub fn set_target_triple(&self, triple: &CStr)
pub fn set_target_triple(&self, triple: &CStr)
Sets the target triple for the given JITTargetMachineBuilder to the given string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JITTargetMachineBuilder
impl RefUnwindSafe for JITTargetMachineBuilder
impl !Send for JITTargetMachineBuilder
impl !Sync for JITTargetMachineBuilder
impl Unpin for JITTargetMachineBuilder
impl UnwindSafe for JITTargetMachineBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes