pub struct CodegenInputs<'a> {
pub functions: &'a [&'a Cfg],
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,
}Expand description
Inputs to LLVM codegen, bundled to keep function signatures readable.
All borrows are produced upstream by sema/CFG construction; codegen reads from them but does not own or mutate them.
Fields§
§functions: &'a [&'a Cfg]§type_pool: &'a TypeInternPool§strings: &'a [String]§bytes: &'a [Vec<u8>]§interner: &'a ThreadedRodeo§interface_defs: &'a [InterfaceDef]§interface_vtables: &'a InterfaceVtables§target: &'a TargetThe compilation target — controls the LLVM target triple and platform-conditional codegen (e.g. inline-asm syscall layout).
Auto Trait Implementations§
impl<'a> Freeze for CodegenInputs<'a>
impl<'a> !RefUnwindSafe for CodegenInputs<'a>
impl<'a> Send for CodegenInputs<'a>
impl<'a> Sync for CodegenInputs<'a>
impl<'a> Unpin for CodegenInputs<'a>
impl<'a> UnsafeUnpin for CodegenInputs<'a>
impl<'a> !UnwindSafe for CodegenInputs<'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