[−][src]Trait rustc_codegen_llvm::abi::ArgAbiExt

pub trait ArgAbiExt<'ll, 'tcx> {
    pub fn memory_ty(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type;
pub fn store(
        &self,
        bx: &mut Builder<'_, 'll, 'tcx>,
        val: &'ll Value,
        dst: PlaceRef<'tcx, &'ll Value>
    );
pub fn store_fn_arg(
        &self,
        bx: &mut Builder<'_, 'll, 'tcx>,
        idx: &mut usize,
        dst: PlaceRef<'tcx, &'ll Value>
    ); }

Required methods

pub fn memory_ty(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type[src]

pub fn store(
    &self,
    bx: &mut Builder<'_, 'll, 'tcx>,
    val: &'ll Value,
    dst: PlaceRef<'tcx, &'ll Value>
)
[src]

pub fn store_fn_arg(
    &self,
    bx: &mut Builder<'_, 'll, 'tcx>,
    idx: &mut usize,
    dst: PlaceRef<'tcx, &'ll Value>
)
[src]

Loading content...

Implementors

impl<'ll, 'tcx> ArgAbiExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>>[src]

pub fn memory_ty(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type[src]

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.

pub fn store(
    &self,
    bx: &mut Builder<'_, 'll, 'tcx>,
    val: &'ll Value,
    dst: PlaceRef<'tcx, &'ll Value>
)
[src]

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.

Loading content...