pub struct CocompiledModule {
pub ir_after_opt: String,
pub ir_before_link: String,
/* private fields */
}Expand description
Result of a closed-world co-compile: the post-O3 module IR text
(for inline-count assertions) plus a JIT execution engine kept
alive alongside its leaked Context so callers can run the entry.
Fields§
§ir_after_opt: StringThe post-O3 module IR text. Callers assert against this:
zero call @relon_llvm_call_native (open-world helper never
emitted) and zero residual call @<host_symbol> (the linked
host fn was inlined).
ir_before_link: StringThe pre-link / pre-opt module IR text — useful when a test
wants to confirm the direct call @<host_symbol> was the shape
emitted before inlining erased it.
Implementations§
Auto Trait Implementations§
impl !Send for CocompiledModule
impl !Sync for CocompiledModule
impl Freeze for CocompiledModule
impl RefUnwindSafe for CocompiledModule
impl Unpin for CocompiledModule
impl UnsafeUnpin for CocompiledModule
impl UnwindSafe for CocompiledModule
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