Module rustc_trans::trans::baseExperimental [-]  [+] [src]

Reexports

pub use self::ValueOrigin::*;
pub use self::scalar_type::*;

Structs

StatRecorder
TransItemVisitor
_InsnCtxt

Enums

ValueOrigin

Enum describing the origin of an LLVM Value, for linkage purposes.

scalar_type

Functions

alloc_ty
alloca
alloca_no_lifetime
alloca_zeroed
arg_kind
arrayalloca
at_box_body
build_return_block
call_lifetime_end
call_lifetime_start
call_memcpy
cast_shift_const_rhs
cast_shift_expr_rhs
cast_shift_rhs
compare_scalar_types
compare_scalar_values
compare_simd_types
crate_ctxt_to_encode_parms
create_datums_for_fn_args
create_entry_wrapper
decl_cdecl_fn
decl_fn
decl_internal_rust_fn
decl_rust_fn
fail_if_zero_or_overflows
finish_fn
get_extern_const
get_extern_fn
get_fn_llvm_attributes
get_item_val
get_res_dtor
get_tydesc
ignore_lhs
init_function

Performs setup on a newly created function, creating the entry scope block and allocating space for the return pointer.

init_insn_ctxt
init_local
invoke
is_entry_fn
iter_structural_ty
kind_for_unboxed_closure
llvm_linkage_by_name
load_if_immediate
load_ty

Helper for loading values from memory. Does the necessary conversion if the in-memory type differs from the type used for SSA values. Also handles various special cases where the type gives us better information about what we are loading.

make_return_slot_pointer
malloc_raw_dyn
malloc_raw_dyn_proc
maybe_name_value
memcpy_ty
need_invoke
new_fn_ctxt
note_unique_llvm_symbol
p2i
push_ctxt
raw_block
register_fn_llvmty
self_type_for_unboxed_closure
set_always_inline
set_inline_hint
set_llvm_fn_attrs
set_no_inline
set_no_unwind
set_optimize_for_size
set_split_stack
set_uwtable
store_ty

Helper for storing values in memory. Does the necessary conversion if the in-memory type differs from the type used for SSA values.

trans_closure
trans_crate
trans_enum_variant
trans_external_path
trans_fn
trans_item
trans_mod
trans_named_tuple_constructor
trans_tuple_struct
unset_split_stack
update_linkage

Set the appropriate linkage for an LLVM ValueRef (function or global). If the llval is the direct translation of a specific Rust item, id should be set to the NodeId of that item. (This mapping should be 1-to-1, so monomorphizations and drop/visit glue should have id set to None.) llval_origin indicates whether llval is the translation of an item assigned to ccx's compilation unit or an inlined copy of an item assigned to a different compilation unit.

with_cond
with_insn_ctxt
write_metadata
zero_mem

Type Definitions

LvalueDatum
RvalueDatum
val_and_ty_fn