llfn_attrs_from_instance in rustc_codegen_llvm::attributes - Rust
Description: Helper for `FnAbiLlvmExt::apply_attrs_llfn`: Composite function which sets LLVM attributes for function depending on its AST (`#[attribute]`) attributes.

Skip to main content

## llfn_attrs_from_instance

# Function llfn_attrs_from_instance

Source

    pub(crate) fn llfn_attrs_from_instance<'ll, 'tcx>(
        cx: &GenericCx<'ll, SCx<'ll>>,
        tcx: TyCtxt<'tcx>,
        llfn: &'ll Value,
        codegen_fn_attrs: &CodegenFnAttrs,
        instance: Option<Instance<'tcx>>,
    )

Expand description

Helper for `FnAbiLlvmExt::apply_attrs_llfn`: Composite function which sets LLVM attributes for function depending on its AST (`#[attribute]`) attributes.