Struct rustc::middle::trans::context::CrateContextExperimental [-]  [+] [src]

pub struct CrateContext<'a, 'tcx> {
    // some fields omitted
}

Methods

impl<'b, 'tcx> CrateContext<'b, 'tcx>

fn shared(&self) -> &'b SharedCrateContext<'tcx>

fn local(&self) -> &'b LocalCrateContext

fn rotate(&self) -> CrateContext<'b, 'tcx>

Get a (possibly) different CrateContext from the same SharedCrateContext.

fn maybe_iter(&self, iter_all: bool) -> CrateContextMaybeIterator<'b, 'tcx>

Either iterate over only self, or iterate over all CrateContexts in the SharedCrateContext. The iterator produces (ccx, is_origin) pairs, where is_origin is true if ccx is self and false otherwise. This method is useful for avoiding code duplication in cases where it may or may not be necessary to translate code into every context.

fn tcx<'a>(&'a self) -> &'a ctxt<'tcx>

fn sess<'a>(&'a self) -> &'a Session

fn builder<'a>(&'a self) -> Builder<'a, 'tcx>

fn raw_builder<'a>(&'a self) -> BuilderRef

fn tydesc_type(&self) -> Type

fn get_intrinsic(&self, key: &&'static str) -> ValueRef

fn is_split_stack_supported(&self) -> bool

fn llmod(&self) -> ModuleRef

fn llcx(&self) -> ContextRef

fn td<'a>(&'a self) -> &'a TargetData

fn tn<'a>(&'a self) -> &'a TypeNames

fn externs<'a>(&'a self) -> &'a RefCell<ExternMap>

fn item_vals<'a>(&'a self) -> &'a RefCell<NodeMap<ValueRef>>

fn exp_map2<'a>(&'a self) -> &'a ExportMap2

fn reachable<'a>(&'a self) -> &'a NodeSet

fn item_symbols<'a>(&'a self) -> &'a RefCell<NodeMap<String>>

fn drop_glues<'a>(&'a self) -> &'a RefCell<FnvHashMap<t, ValueRef>>

fn tydescs<'a>(&'a self) -> &'a RefCell<FnvHashMap<t, Rc<tydesc_info>>>

fn finished_tydescs<'a>(&'a self) -> &'a Cell<bool>

fn external<'a>(&'a self) -> &'a RefCell<DefIdMap<Option<NodeId>>>

fn external_srcs<'a>(&'a self) -> &'a RefCell<NodeMap<DefId>>

fn monomorphized<'a>(&'a self) -> &'a RefCell<FnvHashMap<MonoId, ValueRef>>

fn monomorphizing<'a>(&'a self) -> &'a RefCell<DefIdMap<uint>>

fn vtables<'a>(&'a self) -> &'a RefCell<FnvHashMap<(t, Rc<TraitRef>), ValueRef>>

fn const_cstr_cache<'a>(&'a self) -> &'a RefCell<FnvHashMap<InternedString, ValueRef>>

fn const_globals<'a>(&'a self) -> &'a RefCell<FnvHashMap<int, ValueRef>>

fn const_values<'a>(&'a self) -> &'a RefCell<NodeMap<ValueRef>>

fn static_values<'a>(&'a self) -> &'a RefCell<NodeMap<ValueRef>>

fn extern_const_values<'a>(&'a self) -> &'a RefCell<DefIdMap<ValueRef>>

fn impl_method_cache<'a>(&'a self) -> &'a RefCell<FnvHashMap<(DefId, Name), DefId>>

fn closure_bare_wrapper_cache<'a>(&'a self) -> &'a RefCell<FnvHashMap<ValueRef, ValueRef>>

fn lltypes<'a>(&'a self) -> &'a RefCell<FnvHashMap<t, Type>>

fn llsizingtypes<'a>(&'a self) -> &'a RefCell<FnvHashMap<t, Type>>

fn adt_reprs<'a>(&'a self) -> &'a RefCell<FnvHashMap<t, Rc<Repr>>>

fn symbol_hasher<'a>(&'a self) -> &'a RefCell<Sha256>

fn type_hashcodes<'a>(&'a self) -> &'a RefCell<FnvHashMap<t, String>>

fn all_llvm_symbols<'a>(&'a self) -> &'a RefCell<FnvHashSet<String>>

fn stats<'a>(&'a self) -> &'a Stats

fn available_monomorphizations<'a>(&'a self) -> &'a RefCell<FnvHashSet<String>>

fn available_drop_glues<'a>(&'a self) -> &'a RefCell<FnvHashMap<t, String>>

fn int_type(&self) -> Type

fn opaque_vec_type(&self) -> Type

fn unboxed_closure_vals<'a>(&'a self) -> &'a RefCell<FnvHashMap<MonoId, ValueRef>>

fn dbg_cx<'a>(&'a self) -> &'a Option<CrateDebugContext>

fn eh_personality<'a>(&'a self) -> &'a RefCell<Option<ValueRef>>

fn count_llvm_insn(&self)

fn trait_cache(&self) -> &RefCell<FnvHashMap<Rc<TraitRef>, Vtable<()>>>

fn max_obj_size(&self) -> u64

fn report_overbig_object(&self, obj: t) -> !