Struct rustc_codegen_llvm::abi::ArgAbi
source · pub struct ArgAbi<'a, Ty> {
pub layout: TyAndLayout<'a, Ty>,
pub mode: PassMode,
}
Expand description
Information about how to pass an argument to, or return a value from, a function, under some ABI.
Fields
layout: TyAndLayout<'a, Ty>
mode: PassMode
Trait Implementations
sourceimpl<'ll, 'tcx> ArgAbiExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>>
impl<'ll, 'tcx> ArgAbiExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>>
sourcefn memory_ty(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type
fn memory_ty(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type
Gets the LLVM type for a place of the original Rust type of
this argument/return, i.e., the result of type_of::type_of
.
sourcefn store(
&self,
bx: &mut Builder<'_, 'll, 'tcx>,
val: &'ll Value,
dst: PlaceRef<'tcx, &'ll Value>
)
fn store(
&self,
bx: &mut Builder<'_, 'll, 'tcx>,
val: &'ll Value,
dst: PlaceRef<'tcx, &'ll Value>
)
Stores a direct/indirect value described by this ArgAbi into a place for the original Rust type of this argument/return. Can be used for both storing formal arguments into Rust variables or results of call/invoke instructions into their destinations.
fn store_fn_arg(
&self,
bx: &mut Builder<'_, 'll, 'tcx>,
idx: &mut usize,
dst: PlaceRef<'tcx, &'ll Value>
)
Auto Trait Implementations
impl<'a, Ty> RefUnwindSafe for ArgAbi<'a, Ty>where
Ty: RefUnwindSafe,
impl<'a, Ty> Send for ArgAbi<'a, Ty>where
Ty: Send,
impl<'a, Ty> Sync for ArgAbi<'a, Ty>where
Ty: Sync,
impl<'a, Ty> Unpin for ArgAbi<'a, Ty>where
Ty: Unpin,
impl<'a, Ty> UnwindSafe for ArgAbi<'a, Ty>where
Ty: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.