rustc_codegen_llvm::attributes

# Function llfn_attrs_from_instance

source

    pub(crate) fn llfn_attrs_from_instance<'ll, 'tcx>(
        cx: &CodegenCx<'ll, 'tcx>,
        llfn: &'ll Value,
        instance: Instance<'tcx>,
    )

Expand description

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