pub struct BackendInputs<'a> {
pub functions: &'a [FunctionWithCfg],
pub type_pool: &'a TypeInternPool,
pub strings: &'a [String],
pub bytes: &'a [Vec<u8>],
pub interner: &'a ThreadedRodeo,
pub interface_defs: &'a [InterfaceDef],
pub interface_vtables: &'a InterfaceVtables,
pub target: &'a Target,
pub extra_link_libraries: &'a [(String, LinkMode)],
}Expand description
Bundle of inputs handed to the backend.
All fields come from frontend output; the backend reads them but does not
own or mutate them. Bundling avoids 8-arg signatures across each pipeline
stage (compile_backend, generate_llvm_objects_and_link,
generate_llvm_ir).
Fields§
§functions: &'a [FunctionWithCfg]§type_pool: &'a TypeInternPool§strings: &'a [String]§bytes: &'a [Vec<u8>]§interner: &'a ThreadedRodeo§interface_defs: &'a [InterfaceDef]§interface_vtables: &'a InterfaceVtables§target: &'a Target§extra_link_libraries: &'a [(String, LinkMode)]ADR-0085 + ADR-0086: deduplicated library names from every
link_extern("…") / static_link_extern("…") block, paired
with the per-library linkage mode. Linker emits -l<name> for
dynamic libs and -Wl,-Bstatic … -Wl,-Bdynamic (ELF) /
-Wl,-search_paths_first -l<name> (Mach-O) for static libs.
Auto Trait Implementations§
impl<'a> Freeze for BackendInputs<'a>
impl<'a> !RefUnwindSafe for BackendInputs<'a>
impl<'a> Send for BackendInputs<'a>
impl<'a> Sync for BackendInputs<'a>
impl<'a> Unpin for BackendInputs<'a>
impl<'a> UnsafeUnpin for BackendInputs<'a>
impl<'a> !UnwindSafe for BackendInputs<'a>
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