Home
last modified time | relevance | path

Searched refs:SecondaryMap (Results 1 – 25 of 37) sorted by relevance

12

/wasmtime-44.0.1/crates/fuzzing/tests/oom/
H A Dsecondary_map.rs3 use wasmtime_environ::SecondaryMap;
9 let _map = SecondaryMap::<Key, u32>::try_with_capacity(32)?; in secondary_map_try_with_capacity()
17 let mut map = SecondaryMap::<Key, u32>::new(); in secondary_map_try_resize()
26 let mut map = SecondaryMap::<Key, u32>::new(); in secondary_map_try_insert()
/wasmtime-44.0.1/cranelift/entity/src/
H A Dmap.rs29 pub struct SecondaryMap<K, V> struct
40 impl<K, V> SecondaryMap<K, V> impl
215 impl<K, V> Default for SecondaryMap<K, V> implementation
220 fn default() -> SecondaryMap<K, V> { in default()
221 SecondaryMap::new() in default()
260 impl<K, V> Index<K> for SecondaryMap<K, V> implementation
291 impl<K, V> PartialEq for SecondaryMap<K, V> implementation
305 impl<K, V> Eq for SecondaryMap<K, V> implementation
313 impl<K, V> Serialize for SecondaryMap<K, V> implementation
358 type Value = SecondaryMap<K, V>; in deserialize()
[all …]
H A Dsparse.rs11 use crate::map::SecondaryMap;
66 sparse: SecondaryMap<K, u32>,
78 sparse: SecondaryMap::new(), in new()
/wasmtime-44.0.1/cranelift/entity/
H A DREADME.md20 `SecondaryMap`, which serve complementary purposes. A `PrimaryMap` creates its
21 own keys when elements are inserted, while an `SecondaryMap` reuses the keys
23 index space. `SecondaryMap`'s values must implement `Default` and all elements
24 in an `SecondaryMap` initially have the value of `default()`.
33 - `SparseMap`: an alternative to `SecondaryMap` which can use less memory
35 - `EntitySet`: a specialized form of `SecondaryMap` using a bitvector to
/wasmtime-44.0.1/crates/environ/src/graphs/
H A Dentity_graph.rs2 use crate::{EntityRef, SecondaryMap, prelude::*};
16 edges: SecondaryMap<Node, Range<u32>>,
61 let mut edges = SecondaryMap::with_capacity(capacity); in new()
H A Dscc.rs16 EntityRef, EntitySet, PrimaryMap, SecondaryMap, non_max::NonMaxU32,
90 let mut indices = SecondaryMap::<Node, Option<NonMaxU32>>::with_capacity(capacity); in new()
91 let mut lowlinks = SecondaryMap::<Node, Option<NonMaxU32>>::with_capacity(capacity); in new()
310 let node_to_component: SecondaryMap<Node, PackedOption<Scc>> = self in evaporation()
342 SecondaryMap::<Scc, Range<u32>>::with_capacity(self.components.len()); in evaporation()
369 reverse_edges: SecondaryMap<Scc, Range<u32>>,
419 edges: SecondaryMap<Node, Vec<Node>>,
/wasmtime-44.0.1/cranelift/codegen/src/machinst/
H A Dblockorder.rs64 use crate::entity::SecondaryMap;
83 blockindex_by_block: SecondaryMap<Block, BlockIndex>,
156 let mut block_in_count = SecondaryMap::with_default(0); in new()
157 let mut block_out_count = SecondaryMap::with_default(0); in new()
163 let mut block_succ_range = SecondaryMap::with_default(0..0); in new()
203 let mut blockindex_by_block = SecondaryMap::with_default(BlockIndex::invalid()); in new()
H A Dlower.rs8 use crate::entity::SecondaryMap;
166 value_regs: SecondaryMap<Value, ValueRegs<Reg>>,
174 block_end_colors: SecondaryMap<Block, InstColor>,
198 value_ir_uses: SecondaryMap<Value, ValueUseState>,
201 value_lowered_uses: SecondaryMap<Value, u32>,
384 let mut value_regs = SecondaryMap::with_default(ValueRegs::invalid()); in new()
468 let mut block_end_colors = SecondaryMap::with_default(InstColor::new(0)); in new()
505 value_lowered_uses: SecondaryMap::default(), in new()
1248 ) -> SecondaryMap<Value, ValueUseState> { in compute_use_states()
1266 let mut value_ir_uses = SecondaryMap::with_default(ValueUseState::Unused); in compute_use_states()
H A Dabi.rs104 use crate::entity::SecondaryMap;
783 ir_sig_ref_to_abi_sig: SecondaryMap<ir::SigRef, Option<Sig>>,
805 ir_sig_ref_to_abi_sig: SecondaryMap::with_capacity(func.dfg.signatures.len()), in new()
1149 sized_stackslot_keys: SecondaryMap<StackSlot, Option<StackSlotKey>>,
1235 let mut sized_stackslot_keys = SecondaryMap::new(); in new()
2421 let mut stackslots = SecondaryMap::with_capacity(self.sized_stackslots.len()); in frame_slot_metadata()
/wasmtime-44.0.1/cranelift/codegen/src/egraph/
H A Dmod.rs23 use cranelift_entity::SecondaryMap;
83 pub(crate) value_to_opt_value: &'opt mut SecondaryMap<Value, Value>,
84 available_block: &'opt mut SecondaryMap<Value, Block>,
85 eclass_size: &'opt mut SecondaryMap<Value, u8>,
752 let mut value_to_opt_value: SecondaryMap<Value, Value> = in remove_pure_and_optimize()
753 SecondaryMap::with_default(Value::reserved_value()); in remove_pure_and_optimize()
785 let mut available_block: SecondaryMap<Value, Block> = in remove_pure_and_optimize()
786 SecondaryMap::with_default(Block::reserved_value()); in remove_pure_and_optimize()
797 let mut eclass_size: SecondaryMap<Value, u8> = SecondaryMap::with_default(0); in remove_pure_and_optimize()
910 value_to_opt_value: &mut SecondaryMap<Value, Value>, in execute_skeleton_inst_simplification()
H A Delaborate.rs17 use cranelift_entity::{EntitySet, SecondaryMap, packed_option::ReservedValue};
49 value_to_best_value: SecondaryMap<Value, BestEntry>,
151 SecondaryMap::with_default(BestEntry(Cost::infinity(), Value::reserved_value())); in new()
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dcfg_printer.rs6 use crate::entity::SecondaryMap;
44 let mut aliases = SecondaryMap::<_, Vec<_>>::new(); in block_nodes()
H A Dprint_errors.rs3 use crate::entity::SecondaryMap;
61 aliases: &SecondaryMap<Value, Vec<Value>>, in write_instruction()
120 aliases: &SecondaryMap<Value, Vec<Value>>, in pretty_instruction_error()
H A Dwrite.rs6 use crate::entity::SecondaryMap;
31 aliases: &SecondaryMap<Value, Vec<Value>>, in write_instruction()
123 aliases: &SecondaryMap<Value, Vec<Value>>, in write_instruction()
148 fn alias_map(func: &Function) -> SecondaryMap<Value, Vec<Value>> { in alias_map()
149 let mut aliases = SecondaryMap::<_, Vec<_>>::new(); in alias_map()
241 aliases: &SecondaryMap<Value, Vec<Value>>, in decorate_block()
305 aliases: &SecondaryMap<Value, Vec<Value>>, in write_value_aliases()
323 aliases: &SecondaryMap<Value, Vec<Value>>, in write_instruction()
H A Dflowgraph.rs24 use crate::entity::SecondaryMap;
72 data: SecondaryMap<Block, CFGNode>,
82 data: SecondaryMap::new(), in new()
H A Dloop_analysis.rs5 use crate::entity::SecondaryMap;
26 block_loop_map: SecondaryMap<Block, PackedOption<Loop>>,
96 block_loop_map: SecondaryMap::new(), in new()
H A Dremove_constant_phis.rs10 use cranelift_entity::SecondaryMap;
232 SecondaryMap::<Block, BlockSummary>::with_capacity(domtree.cfg_postorder().len()); in do_remove_constant_phis()
H A Ddominator_tree.rs3 use crate::entity::SecondaryMap;
150 nodes: SecondaryMap<Block, DominatorTreeNode>,
278 nodes: SecondaryMap::new(), in new()
291 nodes: SecondaryMap::with_capacity(block_capacity), in with_function()
/wasmtime-44.0.1/cranelift/codegen/src/ir/
H A Dmod.rs71 use crate::entity::{PrimaryMap, SecondaryMap, entity_impl};
80 pub(crate) type SourceLocs = SecondaryMap<Inst, RelSourceLoc>;
H A Dfunction.rs7 use crate::entity::{PrimaryMap, SecondaryMap};
361 pub(crate) fn rel_srclocs(&self) -> &SecondaryMap<Inst, RelSourceLoc> { in rel_srclocs()
412 srclocs: SecondaryMap::new(), in with_name_signature()
H A Dlayout.rs6 use crate::entity::SecondaryMap;
30 blocks: SecondaryMap<Block, BlockNode>,
34 insts: SecondaryMap<Inst, InstNode>,
47 blocks: SecondaryMap::new(), in new()
48 insts: SecondaryMap::new(), in new()
/wasmtime-44.0.1/crates/wasmtime/src/compile/
H A Dstratify.rs56 EntityRef, SecondaryMap,
106 let mut unfulfilled_deps_count = SecondaryMap::<Scc, u32>::with_capacity(components.len()); in new()
199 calls: SecondaryMap<Function, Vec<Function>>,
/wasmtime-44.0.1/cranelift/jit/src/
H A Dbackend.rs12 use cranelift_entity::SecondaryMap;
176 compiled_functions: SecondaryMap<FuncId, Option<CompiledBlob>>,
177 compiled_data_objects: SecondaryMap<DataId, Option<CompiledBlob>>,
368 compiled_functions: SecondaryMap::new(), in new()
369 compiled_data_objects: SecondaryMap::new(), in new()
/wasmtime-44.0.1/cranelift/object/src/
H A Dbackend.rs5 use cranelift_codegen::entity::SecondaryMap;
147 functions: SecondaryMap<FuncId, Option<(SymbolId, bool)>>,
148 data_objects: SecondaryMap<DataId, Option<(SymbolId, bool)>>,
169 functions: SecondaryMap::new(), in new()
170 data_objects: SecondaryMap::new(), in new()
975 pub functions: SecondaryMap<FuncId, Option<(SymbolId, bool)>>,
977 pub data_objects: SecondaryMap<DataId, Option<(SymbolId, bool)>>,
/wasmtime-44.0.1/cranelift/codegen/src/dominator_tree/
H A Dsimple.rs6 use crate::entity::SecondaryMap;
37 nodes: SecondaryMap<Block, DomNode>,
200 nodes: SecondaryMap::new(), in new()
211 nodes: SecondaryMap::with_capacity(block_capacity), in with_function()

12