Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 61) sorted by relevance

123

/wasmtime-44.0.1/cranelift/codegen/src/isa/s390x/inst/
H A Demit.rs443 opcode: u16, in mem_vrx_emit()
752 let opcode = (opcode & 0xff) as u8; localVariable
756 enc[0] = opcode;
852 let opcode = (opcode & 0xff) as u8; localVariable
860 enc[0] = opcode;
900 let opcode = (opcode & 0xff) as u8; localVariable
908 enc[0] = opcode;
948 let opcode = (opcode & 0xff) as u8; localVariable
954 enc[0] = opcode;
1864 opcode, in emit_with_alloc_consumer()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dnan_canonicalization.rs32 opcode == Opcode::Ceil in is_fp_arith()
33 || opcode == Opcode::Floor in is_fp_arith()
35 || opcode == Opcode::Sqrt in is_fp_arith()
36 || opcode == Opcode::Trunc in is_fp_arith()
43 opcode == Opcode::Fadd in is_fp_arith()
44 || opcode == Opcode::Fdiv in is_fp_arith()
45 || opcode == Opcode::Fmax in is_fp_arith()
46 || opcode == Opcode::Fmin in is_fp_arith()
47 || opcode == Opcode::Fmul in is_fp_arith()
48 || opcode == Opcode::Fsub in is_fp_arith()
[all …]
H A Dinst_predicates.rs8 opcode.is_call() in trivially_has_side_effects()
9 || opcode.is_branch() in trivially_has_side_effects()
10 || opcode.is_terminator() in trivially_has_side_effects()
11 || opcode.is_return() in trivially_has_side_effects()
12 || opcode.can_trap() in trivially_has_side_effects()
13 || opcode.other_side_effects() in trivially_has_side_effects()
14 || opcode.can_store() in trivially_has_side_effects()
22 if !opcode.can_load() { in is_load_with_defined_trapping()
37 let opcode = data.opcode(); in has_side_effect() localVariable
38 trivially_has_side_effects(opcode) || is_load_with_defined_trapping(opcode, data) in has_side_effect()
[all …]
H A Dprelude_opt.isle266 (rule (apply_div_const_magic_u32_inner opcode
282 (rule (apply_div_const_magic_u32_maybe_add opcode
291 (rule (apply_div_const_magic_u32_maybe_add opcode
343 (rule (apply_div_const_magic_u64_inner opcode
359 (rule (apply_div_const_magic_u64_maybe_add opcode
368 (rule (apply_div_const_magic_u64_maybe_add opcode
422 (rule (apply_div_const_magic_s32_inner opcode
438 (rule 2 (apply_div_const_magic_s32_add_sub opcode
467 (rule (apply_div_const_magic_s32_shift opcode
503 (rule (apply_div_const_magic_s64_inner opcode
[all …]
H A Dalias_analysis.rs88 let opcode = func.dfg.insts[inst].opcode(); in update() localVariable
89 if has_memory_fence_semantics(opcode) { in update()
94 } else if opcode.can_store() { in update()
119 } else if func.dfg.insts[inst].opcode().can_load() in get_last_store()
120 || func.dfg.insts[inst].opcode().can_store() in get_last_store()
281 let opcode = func.dfg.insts[inst].opcode(); in process_inst() localVariable
283 if opcode.can_store() { in process_inst()
291 extending_opcode: get_ext_opcode(opcode), in process_inst()
302 } else if opcode.can_load() { in process_inst()
310 extending_opcode: get_ext_opcode(opcode), in process_inst()
H A Dinline.rs100 opcode: ir::Opcode, in inline()
151 opcode: opcode @ ir::Opcode::Call | opcode @ ir::Opcode::ReturnCall, in do_inlining()
174 opcode, in do_inlining()
192 opcode: opcode @ ir::Opcode::TryCall, in do_inlining()
216 opcode, in do_inlining()
444 let opcode = callee.dfg.insts[callee_inst].opcode(); in inline_one() localVariable
445 if opcode.is_return() { in inline_one()
482 if opcode.is_call() { in inline_one()
793 opcode: ir::Opcode::Return, in fixup_inst_that_returns()
1062 opcode: ir::Opcode, in split_off_return_block()
[all …]
H A Dopts.rs133 opcode: Option<Opcode>, field
139 fn new(opcode: Opcode, value: Value) -> Self { in new()
140 debug_assert_eq!(opcode.format(), InstructionFormat::Unary); in new()
142 opcode: Some(opcode), in new()
158 debug_assert_ne!(self.opcode, None); in next()
160 let InstructionData::Unary { opcode, arg } = inst_def else { in next()
163 if Some(opcode) == self.opcode { in next()
248 opcode: Opcode::Iconst, in iconst_sextend_etor()
/wasmtime-44.0.1/cranelift/codegen/src/isa/riscv64/inst/
H A Dencode.rs37 opcode: u32, in encode_r_type()
45 opcode, in encode_r_type()
70 opcode, in encode_i_type()
115 op.opcode(), in encode_valu()
147 op.opcode(), in encode_valu_rr_imm()
165 op.opcode(), in encode_valu_rrrr()
184 op.opcode(), in encode_valu_rrr_imm()
203 op.opcode(), in encode_valu_rr()
226 op.opcode(), in encode_valu_r_imm()
255 opcode: u32, in encode_vmem_load()
[all …]
H A Dvector.rs253 pub fn opcode(&self) -> u32 { in opcode() method
315 let (opcode, category) = s.split_at(s.len() - 2); in fmt()
321 pub fn opcode(&self) -> u32 { in opcode() method
361 let (opcode, category) = s.split_at(s.len() - 2); in fmt()
367 pub fn opcode(&self) -> u32 { in opcode() method
650 let (opcode, category) = s.split_at(s.len() - suffix_length); in fmt()
656 pub fn opcode(&self) -> u32 { in opcode() method
781 let (opcode, category) = s.split_at(s.len() - suffix_length); in fmt()
787 pub fn opcode(&self) -> u32 { in opcode() method
1014 pub fn opcode(&self) -> u32 { in opcode() method
/wasmtime-44.0.1/cranelift/codegen/src/legalizer/
H A Dmod.rs108 opcode: ir::Opcode::Trap, in simple_legalize()
115 opcode: ir::Opcode::Brif, in simple_legalize()
129 opcode: ir::Opcode::StackLoad, in simple_legalize()
135 opcode: ir::Opcode::StackStore, in simple_legalize()
157 opcode: ir::Opcode::IcmpImm, in simple_legalize()
163 InstructionData::Binary { opcode, args } => expand_binary(func, inst, opcode, args), in simple_legalize()
174 opcode: ir::Opcode, in expand_binary()
184 match opcode {
222 opcode: ir::Opcode, in expand_binary_imm64()
229 let is_signed = match opcode { in expand_binary_imm64()
[all …]
/wasmtime-44.0.1/cranelift/fuzzgen/src/passes/
H A Dint_divz.rs31 let opcode = pos.func.dfg.insts[inst].opcode(); in can_int_divz() localVariable
34 opcode, in can_int_divz()
41 let opcode = pos.func.dfg.insts[inst].opcode(); in insert_int_divz_sequence() localVariable
52 let replace_denominator = if matches!(opcode, Opcode::Srem | Opcode::Sdiv) { in insert_int_divz_sequence()
H A Dfcvt.rs27 let opcode = pos.func.dfg.insts[inst].opcode(); in can_fcvt_trap() localVariable
29 matches!(opcode, Opcode::FcvtToUint | Opcode::FcvtToSint) in can_fcvt_trap()
69 let opcode = dfg.insts[inst].opcode(); in insert_fcvt_sequence() localVariable
80 let is_signed = opcode == Opcode::FcvtToSint; in insert_fcvt_sequence()
/wasmtime-44.0.1/cranelift/codegen/src/ir/
H A Dinstructions.rs641 opcode, in mask_immediates()
645 if *opcode == Opcode::SdivImm || *opcode == Opcode::SremImm { in mask_immediates()
650 opcode, in mask_immediates()
1377 opcode: Opcode::Iadd, in instruction_data_map()
1381 opcode: Opcode::Iadd, in instruction_data_map()
1391 opcode: Opcode::Call, in instruction_data_map()
1396 opcode: Opcode::Call, in instruction_data_map()
1421 opcode: Opcode::BrTable, in instruction_data_map()
1426 opcode: Opcode::BrTable, in instruction_data_map()
1451 opcode: Opcode::Jump, in instruction_data_map()
[all …]
H A Ddfg.rs599 let opcode = self.insts[inst].opcode(); in append_user_stack_map_entry() localVariable
600 assert!(opcode.is_safepoint()); in append_user_stack_map_entry()
911 .opcode() in inst_fixed_args()
920 .opcode() in inst_fixed_args_mut()
929 .opcode() in inst_variable_args()
938 .opcode() in inst_variable_args_mut()
1109 match self.insts[inst].opcode() { in non_tail_call_or_try_call_signature()
1437 write!(f, "{}", dfg.insts[inst].opcode())?; in fmt()
1599 opcode: Opcode::Iconst, in make_inst()
1612 assert_eq!(ins.opcode(), Opcode::Iconst); in make_inst()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/verifier/
H A Dmod.rs543 opcode, in verify_entity_references()
647 LoadNoOffset { opcode, arg, .. } if opcode.can_load() => { in verify_entity_references()
650 Load { opcode, arg, .. } if opcode.can_load() => { in verify_entity_references()
654 opcode, in verify_entity_references()
657 } if opcode.can_load() || opcode.can_store() => { in verify_entity_references()
661 opcode, in verify_entity_references()
664 } if opcode.can_load() || opcode.can_store() => { in verify_entity_references()
668 opcode, in verify_entity_references()
675 opcode, in verify_entity_references()
682 opcode: opcode @ (Opcode::Vconst | Opcode::F128const), in verify_entity_references()
[all …]
/wasmtime-44.0.1/cranelift/assembler-x64/meta/src/dsl/
H A Dencoding.rs23 pub fn rex(opcode: impl Into<Opcodes>) -> Rex { in rex()
25 opcodes: opcode.into(), in rex()
41 opcode: u8::MAX, in vex()
56 opcode: u8::MAX, in evex()
82 pub fn opcode(&self) -> u8 { in opcode() method
85 Encoding::Vex(vex) => vex.opcode, in opcode()
461 fn opcode(&self) -> u8 { in opcode() method
988 pub opcode: u8, field
1088 Self { opcode, ..self } in op()
1242 pub opcode: u8, field
[all …]
/wasmtime-44.0.1/pulley/src/interp/
H A Dtail_loop.rs32 use crate::opcode::Opcode;
93 let Ok(opcode) = Opcode::decode(debug.bytecode()); in dispatch()
94 let handler = OPCODE_HANDLER_TABLE[opcode as usize]; in dispatch()
105 let Ok(opcode) = ExtendedOpcode::decode(i.bytecode()); in run_extended()
106 let handler = EXTENDED_OPCODE_HANDLER_TABLE[opcode as usize]; in run_extended()
/wasmtime-44.0.1/cranelift/reader/src/
H A Dparser.rs2210 if !opcode.is_call() || opcode.is_return() { in parse_instruction()
2290 opcode: Opcode, in infer_typevar()
2355 opcode in infer_typevar()
2594 opcode: Opcode, in parse_inst_operands()
2599 opcode, in parse_inst_operands()
2617 opcode, in parse_inst_operands()
2622 opcode, in parse_inst_operands()
2626 opcode, in parse_inst_operands()
2630 opcode, in parse_inst_operands()
2654 opcode, in parse_inst_operands()
[all …]
/wasmtime-44.0.1/pulley/
H A DREADME.md74 it decodes immediates and operands as needed in each opcode handler. This
75 avoids constructing unnecessary temporary storage and branching on opcode
93 the initial opcode, when evaluating any given instruction. For example, we do
94 *not* have a generic `load` instruction that is followed by a sub-opcode to
99 are a single `u8` opcode, where `255` is reserved for all extended ops, and a
100 `u16` opcode follows after the `255` regular opcode. This keeps the most
105 matching on every opcode repeatedly throughout the whole code base. We do this
/wasmtime-44.0.1/docs/
H A Dexamples-pulley.md111 SIMD opcodes. Instead attempting to execute any opcode will raise a "disabled
112 opcode" trap instead. If doing this it's recommended to pair it with
133 `for_each_op!` and `for_each_extended_op!` macros. Opcode numbers and opcode
147 Pulley opcode assignment happens through the order of the `for_each_op!` macro
152 this means that there's a method-per-opcode and is how the interpreter is
158 [`Decode`] trait on each opcode. This is not literally modeled as but
162 2. A "tail loop" were each opcode handler is a Rust function. Control flow
200 to which Pulley opcode. Most of the time all the samples are just in the one
204 but it can be difficult to understand why a particular opcode was chosen.
206 It can sometimes be more beneficial to see time spent per Pulley opcode itself
[all …]
/wasmtime-44.0.1/cranelift/fuzzgen/src/
H A Dfunction_generator.rs33 opcode: Opcode, in insert_opcode()
116 opcode: Opcode, in insert_call()
181 opcode: Opcode, in insert_cmp()
191 let res = if opcode == Opcode::Fcmp { in insert_cmp()
275 opcode: Opcode, in insert_load_store()
279 if opcode == Opcode::Bitcast { in insert_load_store()
293 match opcode.format() { in insert_load_store()
393 opcode: Opcode, in insert_shuffle()
414 assert_eq!(opcode, Opcode::Shuffle); in insert_shuffle()
426 opcode: Opcode, in insert_ins_ext_lane()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/machinst/
H A Dblockorder.rs187 match f.dfg.insts[inst].opcode() { in new()
269 let opcode = f.dfg.insts[last].opcode(); in new() localVariable
271 assert!(opcode.is_terminator()); in new()
273 opcode.is_branch().then_some(last) in new()
/wasmtime-44.0.1/fuzz/fuzz_targets/
H A Dcranelift-icache.rs163 opcode: ir::Opcode::Iconst,
169 opcode: ir::Opcode::Iconst,
174 opcode: ir::Opcode::Iconst,
/wasmtime-44.0.1/cranelift/codegen/src/egraph/
H A Dmod.rs562 if self.func.dfg.insts[inst].opcode().is_branch() { in simplify_skeleton_inst()
596 ctx.func.dfg.insts[inst].opcode(), in simplify_skeleton_inst()
644 let opcode = ctx.func.dfg.insts[inst].opcode(); in simplify_skeleton_inst() localVariable
646 !(opcode.is_terminator() || opcode.is_branch()), in simplify_skeleton_inst()
675 ctx.func.dfg.insts[new_inst].opcode(), in simplify_skeleton_inst()
936 debug_assert!(!cursor.func.dfg.insts[new_inst].opcode().is_terminator()); in execute_skeleton_inst_simplification()
/wasmtime-44.0.1/cranelift/interpreter/src/
H A Dstep.rs70 inst.opcode(), in step()
100 opcode, in step()
107 match (ctrl_ty.bytes(), opcode) { in step()
123 (length, opcode) => panic!( in step()
318 inst.opcode(), in step()
343 Ok(match inst.opcode() { in step()
483 let (load_ty, kind) = match inst.opcode() { in step()
517 let kind = match inst.opcode() { in step()
964 assign(match inst.opcode() { in step()
1094 let conv_type = match inst.opcode() { in step()
[all …]

123