pub struct Aarch64SystemV {}Expand description
Implementation of the Abi trait for the Aarch64 ABI on Linux.
Trait Implementations§
Source§impl Abi for Aarch64SystemV
 
impl Abi for Aarch64SystemV
Source§fn get_g0_ptr_param<'ctx>(
    &self,
    func_value: &FunctionValue<'ctx>,
) -> IntValue<'ctx>
 
fn get_g0_ptr_param<'ctx>( &self, func_value: &FunctionValue<'ctx>, ) -> IntValue<'ctx>
Given a function definition, retrieve the parameter that is the pointer to the first – number 0 – local global.
Source§fn get_m0_ptr_param<'ctx>(
    &self,
    func_value: &FunctionValue<'ctx>,
) -> PointerValue<'ctx>
 
fn get_m0_ptr_param<'ctx>( &self, func_value: &FunctionValue<'ctx>, ) -> PointerValue<'ctx>
Given a function definition, retrieve the parameter that is the pointer to the first – number 0 – local memory.
Source§fn get_vmctx_ptr_param<'ctx>(
    &self,
    func_value: &FunctionValue<'ctx>,
) -> PointerValue<'ctx>
 
fn get_vmctx_ptr_param<'ctx>( &self, func_value: &FunctionValue<'ctx>, ) -> PointerValue<'ctx>
Given a function definition, retrieve the parameter that is the vmctx pointer.
Source§fn func_type_to_llvm<'ctx>(
    &self,
    context: &'ctx Context,
    intrinsics: &Intrinsics<'ctx>,
    offsets: Option<&VMOffsets>,
    sig: &FuncSig,
    function_kind: Option<G0M0FunctionKind>,
) -> Result<(FunctionType<'ctx>, Vec<(Attribute, AttributeLoc)>), CompileError>
 
fn func_type_to_llvm<'ctx>( &self, context: &'ctx Context, intrinsics: &Intrinsics<'ctx>, offsets: Option<&VMOffsets>, sig: &FuncSig, function_kind: Option<G0M0FunctionKind>, ) -> Result<(FunctionType<'ctx>, Vec<(Attribute, AttributeLoc)>), CompileError>
Given a wasm function type, produce an llvm function declaration. Read more
Source§fn args_to_call<'ctx>(
    &self,
    alloca_builder: &Builder<'ctx>,
    func_sig: &FuncSig,
    llvm_fn_ty: &FunctionType<'ctx>,
    ctx_ptr: PointerValue<'ctx>,
    values: &[BasicValueEnum<'ctx>],
    intrinsics: &Intrinsics<'ctx>,
    g0m0: Option<(IntValue<'ctx>, PointerValue<'ctx>)>,
) -> Result<Vec<BasicValueEnum<'ctx>>, CompileError>
 
fn args_to_call<'ctx>( &self, alloca_builder: &Builder<'ctx>, func_sig: &FuncSig, llvm_fn_ty: &FunctionType<'ctx>, ctx_ptr: PointerValue<'ctx>, values: &[BasicValueEnum<'ctx>], intrinsics: &Intrinsics<'ctx>, g0m0: Option<(IntValue<'ctx>, PointerValue<'ctx>)>, ) -> Result<Vec<BasicValueEnum<'ctx>>, CompileError>
Marshall wasm stack values into function parameters.
Source§fn rets_from_call<'ctx>(
    &self,
    builder: &Builder<'ctx>,
    intrinsics: &Intrinsics<'ctx>,
    call_site: CallSiteValue<'ctx>,
    func_sig: &FuncSig,
) -> Result<Vec<BasicValueEnum<'ctx>>, CompileError>
 
fn rets_from_call<'ctx>( &self, builder: &Builder<'ctx>, intrinsics: &Intrinsics<'ctx>, call_site: CallSiteValue<'ctx>, func_sig: &FuncSig, ) -> Result<Vec<BasicValueEnum<'ctx>>, CompileError>
Given a CallSite, extract the returned values and return them in a Vec.
Source§fn is_sret(&self, func_sig: &FuncSig) -> Result<bool, CompileError>
 
fn is_sret(&self, func_sig: &FuncSig) -> Result<bool, CompileError>
Whether the llvm equivalent of this wasm function has an 
sret attribute.Source§fn pack_values_for_register_return<'ctx>(
    &self,
    intrinsics: &Intrinsics<'ctx>,
    builder: &Builder<'ctx>,
    values: &[BasicValueEnum<'ctx>],
    func_type: &FunctionType<'ctx>,
) -> Result<BasicValueEnum<'ctx>, CompileError>
 
fn pack_values_for_register_return<'ctx>( &self, intrinsics: &Intrinsics<'ctx>, builder: &Builder<'ctx>, values: &[BasicValueEnum<'ctx>], func_type: &FunctionType<'ctx>, ) -> Result<BasicValueEnum<'ctx>, CompileError>
Pack LLVM IR values representing individual wasm values into the return type for the function.
Auto Trait Implementations§
impl Freeze for Aarch64SystemV
impl RefUnwindSafe for Aarch64SystemV
impl Send for Aarch64SystemV
impl Sync for Aarch64SystemV
impl Unpin for Aarch64SystemV
impl UnwindSafe for Aarch64SystemV
Blanket Implementations§
§impl<T> ArchivePointee for T
 
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
 
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
    _: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
 
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> LayoutRaw for T
 
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
 
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
    T: SharedNiching<N1, N2>,
    N1: Niching<T>,
    N2: Niching<T>,
 
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
    T: SharedNiching<N1, N2>,
    N1: Niching<T>,
    N2: Niching<T>,
§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> Pointee for T
 
impl<T> Pointee for T
§impl<T> Upcastable for T
 
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
 
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
 
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
 
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn