Home
last modified time | relevance | path

Searched refs:Block (Results 1 – 25 of 74) sorted by relevance

123

/wasmtime-44.0.1/crates/cranelift/src/translate/
H A Dstack.rs27 placeholder: Block,
38 else_block: Block,
54 destination: Block,
73 Block { enumerator
74 destination: Block,
85 destination: Block,
86 header: Block,
100 | Self::Block { in num_return_values()
114 | Self::Block { in num_param_values()
146 | Self::Block { in original_stack_size()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/ir/
H A Dprogpoint.rs3 use crate::ir::{Block, Inst};
18 Block(Block), enumerator
26 Self::Block(x) => panic!("expected inst: {x}"), in unwrap_inst()
37 impl From<Block> for ProgramPoint {
38 fn from(block: Block) -> Self { in from()
39 Self::Block(block) in from()
47 Self::Block(x) => write!(f, "{x}"), in fmt()
67 let b3 = Block::new(3); in convert()
H A Dlayout.rs8 use crate::ir::{Block, Inst};
37 first_block: Option<Block>,
40 last_block: Option<Block>,
246 pub fn insert_block(&mut self, block: Block, before: Block) { in insert_block() argument
269 pub fn insert_block_after(&mut self, block: Block, after: Block) { in insert_block_after() argument
337 pub fn prev_block(&self, block: Block) -> Option<Block> { in prev_block() argument
342 pub fn next_block(&self, block: Block) -> Option<Block> { in next_block() argument
364 prev: PackedOption<Block>,
374 next: Option<Block>,
378 type Item = Block;
[all …]
H A Dentities.rs37 pub struct Block(u32); struct
38 entity_impl!(Block, "block");
40 impl Block { implementation
371 Block(Block), enumerator
402 Self::Block(r) => r.fmt(f), in fmt()
425 impl From<Block> for AnyEntity {
426 fn from(r: Block) -> Self { in from()
427 Self::Block(r) in from()
H A Djumptable.rs116 use crate::ir::{Block, BlockArg, BlockCall, Value};
123 let def = BlockCall::new(Block::new(0), core::iter::empty(), &mut pool); in empty()
145 let e0 = Block::new(0); in insert()
146 let e1 = Block::new(1); in insert()
147 let e2 = Block::new(2); in insert()
H A Dinstructions.rs64 fn value_to_block(val: Value) -> Block { in value_to_block() argument
65 Block::from_u32(val.as_u32()) in value_to_block()
70 fn block_to_value(block: Block) -> Value { in block_to_value()
76 block: Block, in new() argument
1065 fn map_block(&mut self, block: Block) -> Block; in map_block() argument
1117 fn map_block(&mut self, block: Block) -> Block { in map_block() argument
1334 let block = Block::from_u32(42); in instruction_data_map()
1339 fn map_block(&mut self, block: Block) -> Block { in instruction_data_map() argument
1340 Block::from_u32(block.as_u32() + 1) in instruction_data_map()
1464 block: Block::from_u32(1), in instruction_data_map()
[all …]
H A Ddfg.rs51 pub struct Blocks(PrimaryMap<Block, BlockData>);
55 pub fn add(&mut self) -> Block { in add() argument
74 pub fn is_valid(&self, block: Block) -> bool { in is_valid()
87 impl Index<Block> for Blocks {
90 fn index(&self, block: Block) -> &BlockData { in index()
95 impl IndexMut<Block> for Blocks {
236 block: Block, in block_call() argument
635 Param(Block, usize),
655 pub fn unwrap_block(&self) -> Block { in unwrap_block() argument
682 Param { ty: Type, num: u16, block: Block },
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dflowgraph.rs26 use crate::ir::{Block, Function, Inst};
34 pub block: Block,
41 pub fn new(block: Block, inst: Inst) -> Self { in new() argument
61 pub predecessors: bforest::Map<Inst, Block>,
65 pub successors: bforest::Set<Block>,
72 data: SecondaryMap<Block, CFGNode>,
73 pred_forest: bforest::MapForest<Inst, Block>,
74 succ_forest: bforest::SetForest<Block>,
150 fn add_edge(&mut self, from: Block, from_inst: Inst, to: Block) { in add_edge() argument
160 pub fn pred_iter(&self, block: Block) -> PredIter<'_> { in pred_iter()
[all …]
H A Dcursor.rs17 Before(ir::Block),
20 After(ir::Block),
193 fn at_top(mut self, block: ir::Block) -> Self in at_top()
214 fn at_bottom(mut self, block: ir::Block) -> Self in at_bottom()
223 fn current_block(&self) -> Option<ir::Block> { in current_block() argument
276 fn goto_first_inst(&mut self, block: ir::Block) { in goto_first_inst() argument
282 fn goto_last_inst(&mut self, block: ir::Block) { in goto_last_inst() argument
290 fn goto_top(&mut self, block: ir::Block) { in goto_top() argument
297 fn goto_bottom(&mut self, block: ir::Block) { in goto_bottom() argument
350 fn next_block(&mut self) -> Option<ir::Block> { in next_block() argument
[all …]
H A Ddominator_tree.rs21 block: PackedOption<Block>,
115 Enter(u32, Block),
116 Exit(Block),
123 idom: PackedOption<Block>,
128 child: PackedOption<Block>,
131 sibling: PackedOption<Block>,
148 postorder: Vec<Block>,
196 pub fn idom(&self, block: Block) -> Option<Block> { in idom() argument
254 pub fn block_dominates(&self, block_a: Block, block_b: Block) -> bool { in block_dominates() argument
519 next: PackedOption<Block>,
[all …]
H A Dloop_analysis.rs9 use crate::ir::{Block, Function};
26 block_loop_map: SecondaryMap<Block, PackedOption<Loop>>,
31 header: Block,
79 pub fn new(header: Block, parent: Option<Loop>) -> Self { in new() argument
109 pub fn loop_header(&self, lp: Loop) -> Block { in loop_header() argument
119 pub fn innermost_loop(&self, block: Block) -> Option<Loop> { in innermost_loop()
124 pub fn is_loop_header(&self, block: Block) -> Option<Loop> { in is_loop_header()
132 pub fn is_in_loop(&self, block: Block, lp: Loop) -> bool { in is_in_loop() argument
156 pub fn loop_level(&self, block: Block) -> LoopLevel { in loop_level()
218 let mut stack: Vec<Block> = Vec::new(); in discover_loop_blocks()
[all …]
H A Dtraversals.rs38 stack: Vec<(Event, ir::Block)>,
39 seen: EntitySet<ir::Block>,
92 type Item = (Event, ir::Block);
94 fn next(&mut self) -> Option<(Event, ir::Block)> { in next() argument
138 type Item = ir::Block;
155 type Item = ir::Block;
H A Dprint_errors.rs5 use crate::ir::entities::{AnyEntity, Block, Inst, Value};
51 block: Block, in write_block_header() argument
83 cur_block: Block, in pretty_block_header_error() argument
97 ir::entities::AnyEntity::Block(block) if block == cur_block => { in pretty_block_header_error()
/wasmtime-44.0.1/cranelift/bforest/src/
H A Dlib.rs137 pub struct Block(u32); struct
138 entity_impl!(Block, "block");
142 let block1 = Block::new(1); in comparator()
143 let block2 = Block::new(2); in comparator()
144 let block3 = Block::new(3); in comparator()
145 let block4 = Block::new(4); in comparator()
/wasmtime-44.0.1/cranelift/codegen/src/dominator_tree/
H A Dsimple.rs8 use crate::ir::{Block, Function, Layout, ProgramPoint};
32 idom: PackedOption<Block>,
37 nodes: SecondaryMap<Block, DomNode>,
40 postorder: Vec<Block>,
59 pub fn cfg_postorder(&self) -> &[Block] { in cfg_postorder() argument
74 pub fn idom(&self, block: Block) -> Option<Block> { in idom() argument
79 pub fn rpo_cmp_block(&self, a: Block, b: Block) -> Ordering { in rpo_cmp_block() argument
128 let block_a: Block = layout in dominates()
153 fn block_dominates(&self, block_a: Block, mut block_b: Block) -> bool { in block_dominates() argument
172 fn common_dominator(&self, mut a: Block, mut b: Block) -> Block { in common_dominator() argument
[all …]
/wasmtime-44.0.1/pulley/macros/src/
H A Dinterp_disable_if_cfg.rs32 body: Block,
40 let body: Block = input.parse()?; in parse()
63 struct Block { struct
68 impl Parse for Block { argument
78 impl ToTokens for Block { implementation
/wasmtime-44.0.1/cranelift/codegen/src/egraph/
H A Delaborate.rs10 use crate::ir::{Block, Function, Inst, Value, ValueDef};
53 cur_block: Block,
65 remat_copies: FxHashMap<(Block, Value), Value>,
98 in_block: Block,
111 hoist_block: Block,
136 Elaborate { block: Block, idom: Option<Block> },
160 cur_block: Block::reserved_value(), in new()
171 fn start_block(&mut self, idom: Option<Block>, block: Block) { in start_block() argument
418 remat_copies: &mut FxHashMap<(Block, Value), Value>, in maybe_remat_arg() argument
419 insert_block: Block, in maybe_remat_arg() argument
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/machinst/
H A Dblockorder.rs66 use crate::ir::{Block, Function, Inst, Opcode};
83 blockindex_by_block: SecondaryMap<Block, BlockIndex>,
100 block: Block,
106 pred: Block,
109 succ: Block,
120 pub fn orig_block(&self) -> Option<Block> { in orig_block() argument
129 pub fn in_edge(&self) -> Option<Block> { in in_edge() argument
138 pub fn out_edge(&self) -> Option<Block> { in out_edge() argument
322 pub fn lowered_index_for_block(&self, block: Block) -> Option<BlockIndex> { in lowered_index_for_block()
/wasmtime-44.0.1/cranelift/frontend/src/
H A Dswitch.rs43 cases: HashMap<EntryIndex, Block>,
55 pub fn set_entry(&mut self, index: EntryIndex, block: Block) { in set_entry() argument
61 pub fn entries(&self) -> &HashMap<EntryIndex, Block> { in entries() argument
106 otherwise: Block, in build_search_tree() argument
157 otherwise: Block, in build_search_branches() argument
204 otherwise: Block, in build_jump_table() argument
206 blocks: &[Block], in build_jump_table() argument
267 pub fn emit(self, bx: &mut FunctionBuilder, val: Value, otherwise: Block) { in emit() argument
312 blocks: Vec<Block>,
324 fn single_block(&self) -> Option<Block> { in single_block() argument
[all …]
H A Dssa.rs42 ssa_blocks: SecondaryMap<Block, SSABlockData>,
53 visited: EntitySet<Block>,
69 pub instructions_added_to_blocks: Vec<Block>,
105 single_predecessor: PackedOption<Block>,
134 FinishPredecessorsLookup(Value, Block),
229 block: Block, in use_var() argument
313 mut block: Block, in find_var() argument
314 ) -> (Value, Block) { in find_var()
354 pub fn declare_block(&mut self, block: Block) { in declare_block() argument
506 dest_block: Block, in finish_predecessors_lookup() argument
[all …]
H A Dfrontend.rs32 status: SecondaryMap<Block, BlockStatus>,
49 position: PackedOption<Block>,
96 block: Block,
332 pub fn current_block(&self) -> Option<Block> { in current_block() argument
347 pub fn create_block(&mut self) -> Block { in create_block() argument
357 pub fn set_cold_block(&mut self, block: Block) { in set_cold_block() argument
362 pub fn insert_block_after(&mut self, block: Block, after: Block) { in insert_block_after() argument
399 pub fn seal_block(&mut self, block: Block) { in seal_block() argument
777 pub fn change_jump_destination(&mut self, inst: Inst, old_block: Block, new_block: Block) { in change_jump_destination() argument
808 fn is_pristine(&self, block: Block) -> bool { in is_pristine()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/legalizer/
H A Dbranch_to_trap.rs30 just_trap_blocks: EntitySet<ir::Block>,
37 pub fn analyze_trapping_block(&mut self, func: &ir::Function, block: ir::Block) { in analyze_trapping_block() argument
43 fn just_trap_block_code(&self, func: &ir::Function, block: ir::Block) -> ir::TrapCode { in just_trap_block_code()
/wasmtime-44.0.1/winch/codegen/src/codegen/
H A Dcontrol.rs234 Block { enumerator
283 let mut control = Self::Block { in block()
436 If { sig, .. } | Else { sig, .. } | Loop { sig, .. } | Block { sig, .. } => sig, in sig()
474 Block { .. } => self.init(masm, context), in emit()
618 If { exit, .. } | Else { exit, .. } | Block { exit, .. } => exit, in label()
630 If { exit, .. } | Else { exit, .. } | Block { exit, .. } => Some(exit), in exit_label()
638 ControlStackFrame::Block { in set_as_target()
656 If { sig, .. } | Else { sig, .. } | Block { sig, .. } => sig.results::<M>(), in results()
668 If { sig, .. } | Else { sig, .. } | Block { sig, .. } | Loop { sig, .. } => { in params()
1031 Block { in is_next_sequence_reachable()
[all …]
/wasmtime-44.0.1/crates/test-macros/src/
H A Dwasmtime_test.rs130 struct Block { struct
135 impl Parse for Block { argument
145 impl ToTokens for Block { implementation
160 body: Block,
168 let body: Block = input.parse()?; in parse()
/wasmtime-44.0.1/cranelift/reader/src/
H A Dsourcemap.rs13 Block, Constant, DynamicStackSlot, FuncRef, GlobalValue, JumpTable, SigRef, StackSlot, Value,
32 pub fn contains_block(&self, block: Block) -> bool { in contains_block()
82 "block" => Block::with_number(num).and_then(|block| { in lookup_str()
148 pub fn def_block(&mut self, entity: Block, loc: Location) -> ParseResult<()> { in def_block() argument

123