Home
last modified time | relevance | path

Searched refs:Opcode (Results 1 – 25 of 50) sorted by relevance

12

/wasmtime-44.0.1/cranelift/fuzzgen/src/
H A Dfunction_generator.rs539 Opcode::Smin | Opcode::Umin | Opcode::Smax | Opcode::Umax, in valid_for_target()
581 Opcode::UaddSat | Opcode::SaddSat | Opcode::UsubSat | Opcode::SsubSat, in valid_for_target()
587 Opcode::Umax | Opcode::Smax | Opcode::Umin | Opcode::Smin, in valid_for_target()
616 Opcode::Sshr | Opcode::Ushr | Opcode::Ishl, in valid_for_target()
620 Opcode::Rotr | Opcode::Rotl, in valid_for_target()
638 Opcode::Smin | Opcode::Umin | Opcode::Smax | Opcode::Umax, in valid_for_target()
682 Opcode::Sshr | Opcode::Ushr | Opcode::Ishl, in valid_for_target()
686 Opcode::Rotr | Opcode::Rotl, in valid_for_target()
704 Opcode::Udiv | Opcode::Sdiv | Opcode::Urem | Opcode::Srem, in valid_for_target()
750 Opcode::Udiv | Opcode::Sdiv | Opcode::Urem | Opcode::Srem, in valid_for_target()
[all …]
/wasmtime-44.0.1/cranelift/interpreter/src/
H A Dstep.rs392 Opcode::Call | Opcode::ReturnCall => { in step()
516 Opcode::Store | Opcode::Istore8 | Opcode::Istore16 | Opcode::Istore32 => { in step()
574 Opcode::GlobalValue | Opcode::SymbolValue | Opcode::TlsValue => { in step()
686 Opcode::Umulhi | Opcode::Smulhi => { in step()
947 Opcode::Bitcast | Opcode::ScalarToVector => { in step()
974 Opcode::Snarrow | Opcode::Unarrow | Opcode::Uunarrow => { in step()
1092 Opcode::SwidenLow | Opcode::SwidenHigh | Opcode::UwidenLow | Opcode::UwidenHigh => { in step()
1095 Opcode::SwidenLow | Opcode::SwidenHigh => { in step()
1117 Opcode::FcvtToUint | Opcode::FcvtToSint => { in step()
1141 Opcode::FcvtToUintSat | Opcode::FcvtToSintSat => { in step()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dsouper_harvest.rs97 ir::Opcode::Iadd in harvest_candidate_lhs()
100 | ir::Opcode::Imul in harvest_candidate_lhs()
102 | ir::Opcode::Udiv in harvest_candidate_lhs()
104 | ir::Opcode::Sdiv in harvest_candidate_lhs()
106 | ir::Opcode::Urem in harvest_candidate_lhs()
108 | ir::Opcode::Srem in harvest_candidate_lhs()
110 | ir::Opcode::Band in harvest_candidate_lhs()
112 | ir::Opcode::Bor in harvest_candidate_lhs()
114 | ir::Opcode::Bxor in harvest_candidate_lhs()
129 | ir::Opcode::Clz in harvest_candidate_lhs()
[all …]
H A Dnan_canonicalization.rs32 opcode == Opcode::Ceil in is_fp_arith()
33 || opcode == Opcode::Floor in is_fp_arith()
34 || opcode == Opcode::Nearest 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()
[all …]
H A Dinst_predicates.rs7 fn trivially_has_side_effects(opcode: Opcode) -> bool { in trivially_has_side_effects()
49 opcode: Opcode::Load, in is_pure_for_egraph()
143 pub fn has_memory_fence_semantics(op: Opcode) -> bool { in has_memory_fence_semantics()
145 Opcode::AtomicRmw in has_memory_fence_semantics()
146 | Opcode::AtomicCas in has_memory_fence_semantics()
147 | Opcode::AtomicLoad in has_memory_fence_semantics()
148 | Opcode::AtomicStore in has_memory_fence_semantics()
149 | Opcode::Fence in has_memory_fence_semantics()
150 | Opcode::Debugtrap in has_memory_fence_semantics()
151 | Opcode::SequencePoint => true, in has_memory_fence_semantics()
[all …]
H A Dprelude_opt.isle260 (decl apply_div_const_magic_u32 (Opcode Value u32) Value)
324 ;; if Opcode == Urem {
330 (decl apply_div_const_magic_u32_finish (Opcode Value u32 Value) Value)
331 (rule (apply_div_const_magic_u32_finish (Opcode.Udiv) _ _ qf) qf)
337 (decl apply_div_const_magic_u64 (Opcode Value u64) Value)
401 ;; if Opcode == Urem {
408 (rule (apply_div_const_magic_u64_finish (Opcode.Udiv) _ _ qf) qf)
415 (decl apply_div_const_magic_s32 (Opcode Value i32) Value)
481 ;; if Opcode == Srem {
496 (decl apply_div_const_magic_s64 (Opcode Value i64) Value)
[all …]
H A Dinline.rs86 call_opcode: ir::Opcode, in inline() argument
100 opcode: ir::Opcode, in inline() argument
151 opcode: opcode @ ir::Opcode::Call | opcode @ ir::Opcode::ReturnCall, in do_inlining()
346 call_opcode: ir::Opcode, in inline_one() argument
404 ir::Opcode::GlobalValue, in inline_one()
692 opcode: ir::Opcode::Call, in fixup_inlined_call_exception_tables()
779 call_opcode: ir::Opcode, in fixup_inst_that_returns() argument
793 opcode: ir::Opcode::Return, in fixup_inst_that_returns()
1062 opcode: ir::Opcode, in split_off_return_block() argument
1118 opcode == ir::Opcode::ReturnCall || opcode == ir::Opcode::TryCall, in split_off_return_block()
[all …]
H A Dalias_analysis.rs71 ir::{AliasRegion, Block, Function, Inst, Opcode, Type, Value, immediates::Offset32},
173 extending_opcode: Option<Opcode>,
396 fn get_ext_opcode(op: Opcode) -> Option<Opcode> { in get_ext_opcode() argument
399 Opcode::Load | Opcode::Store => None, in get_ext_opcode()
H A Dopts.rs13 InstructionData, MemFlags, Opcode, StackSlot, TrapCode, Type, Value,
133 opcode: Option<Opcode>,
139 fn new(opcode: Opcode, value: Value) -> Self { in new() argument
248 opcode: Opcode::Iconst, in iconst_sextend_etor()
281 *returns = MaybeUnaryEtorIter::new(Opcode::Sextend, value); in sextend_maybe_etor()
286 *returns = MaybeUnaryEtorIter::new(Opcode::Uextend, value); in uextend_maybe_etor()
/wasmtime-44.0.1/cranelift/codegen/src/egraph/
H A Dcost.rs3 use crate::ir::Opcode;
70 Opcode::Iconst | Opcode::F32const | Opcode::F64const => Cost::new(1), in of_opcode()
73 Opcode::Uextend in of_opcode()
80 Opcode::Iadd in of_opcode()
81 | Opcode::Isub in of_opcode()
82 | Opcode::Band in of_opcode()
83 | Opcode::Bor in of_opcode()
84 | Opcode::Bxor in of_opcode()
85 | Opcode::Bnot in of_opcode()
86 | Opcode::Ishl in of_opcode()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/legalizer/
H A Dmod.rs174 opcode: ir::Opcode, in expand_binary() argument
185 ir::Opcode::BandNot => {
189 ir::Opcode::BorNot => {
193 ir::Opcode::BxorNot => {
222 opcode: ir::Opcode, in expand_binary_imm64() argument
230 ir::Opcode::IaddImm in expand_binary_imm64()
231 | ir::Opcode::IrsubImm in expand_binary_imm64()
232 | ir::Opcode::ImulImm in expand_binary_imm64()
233 | ir::Opcode::SdivImm in expand_binary_imm64()
243 ir::Opcode::BandImm => { in expand_binary_imm64()
[all …]
/wasmtime-44.0.1/pulley/src/
H A Dopcode.rs18 pub enum Opcode {
27 impl Opcode { impl
29 pub const MAX: u8 = Opcode::ExtendedOp as u8;
35 impl Opcode { impl
114 assert!(Opcode::new(Opcode::MAX).is_some()); in max_values()
115 assert!(Opcode::new(Opcode::MAX + 1).is_none()); in max_values()
/wasmtime-44.0.1/cranelift/codegen/src/ir/
H A Dinstructions.rs297 impl Display for Opcode { implementation
303 impl Opcode { impl
328 impl FromStr for Opcode { implementation
645 if *opcode == Opcode::SdivImm || *opcode == Opcode::SremImm { in mask_immediates()
1172 let x = Opcode::Iadd; in opcodes()
1173 let mut y = Opcode::Isub; in opcodes()
1176 y = Opcode::Iadd; in opcodes()
1184 assert_eq!("iadd".parse::<Opcode>(), Ok(Opcode::Iadd)); in opcodes()
1185 assert_eq!("iadd_imm".parse::<Opcode>(), Ok(Opcode::IaddImm)); in opcodes()
1194 assert_eq!(mem::size_of::<Opcode>(), mem::size_of::<Option<Opcode>>()); in opcodes()
[all …]
H A Dbuilder.rs9 use crate::ir::{BlockArg, Inst, Opcode, Type, Value};
271 use crate::ir::{Opcode, TrapCode}; in panics_when_inserting_wrong_opcode()
280 .Trap(Opcode::Return, I32, TrapCode::BAD_CONVERSION_TO_INTEGER); in panics_when_inserting_wrong_opcode()
/wasmtime-44.0.1/cranelift/isle/isle/isle_examples/fail/
H A Derror1.isle23 (type Opcode (enum A B C))
25 (decl Lower2 (Opcode) MachInst)
27 (Lower2 (Opcode.A))
28 (R.A (Opcode.A)))
30 (Lower2 (Opcode.B))
33 (Lower2 (Opcode.C))
/wasmtime-44.0.1/cranelift/isle/isle/isle_examples/pass/
H A Dtest4.isle24 (type Opcode (enum A B C))
26 (decl Lower2 (Opcode) MachInst)
28 (Lower2 (Opcode.A))
31 (Lower2 (Opcode.B))
34 (Lower2 (Opcode.C))
37 (decl F (Opcode) u32)
H A Dtest3.isle1 (type Opcode extern (enum
11 (decl Op (Opcode) Inst)
46 (Op (Opcode.Iadd))
51 (Op (Opcode.Isub))
/wasmtime-44.0.1/cranelift/fuzzgen/src/passes/
H A Dint_divz.rs4 use cranelift::codegen::ir::{Function, Inst, Opcode};
35 Opcode::Sdiv | Opcode::Udiv | Opcode::Srem | Opcode::Urem in can_int_divz()
52 let replace_denominator = if matches!(opcode, Opcode::Srem | Opcode::Sdiv) { in insert_int_divz_sequence()
H A Dfcvt.rs4 use cranelift::codegen::ir::{Function, Inst, Opcode};
29 matches!(opcode, Opcode::FcvtToUint | Opcode::FcvtToSint) in can_fcvt_trap()
80 let is_signed = opcode == Opcode::FcvtToSint; in insert_fcvt_sequence()
/wasmtime-44.0.1/cranelift/codegen/src/isa/aarch64/
H A Dlower.rs12 use crate::ir::{Opcode, Value};
34 if op == Opcode::Uextend || op == Opcode::Sextend { in get_as_extended_value()
35 let sign_extend = op == Opcode::Sextend; in get_as_extended_value()
/wasmtime-44.0.1/cranelift/codegen/src/verifier/
H A Dmod.rs619 opcode: Opcode::GetFramePointer | Opcode::GetReturnAddress, in verify_entity_references()
682 opcode: opcode @ (Opcode::Vconst | Opcode::F128const), in verify_entity_references()
915 opcode: Opcode, in verify_callee_patchability() argument
925 if patchable && (opcode == Opcode::ReturnCall || opcode == Opcode::ReturnCallIndirect) { in verify_callee_patchability()
1132 opcode: Opcode, in verify_constant_size() argument
1891 opcode: Opcode::Iconst, in iconst_bounds()
2156 opcode: Opcode::F32const, in bad_instruction_format()
2163 opcode: Opcode::Jump, in bad_instruction_format()
2183 opcode: Opcode::Iconst, in test_iconst_bounds()
2188 opcode: Opcode::Return, in test_iconst_bounds()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/isa/x64/
H A Dlower.rs7 Endianness, ExternalName, Inst as IRInst, InstructionData, LibCall, Opcode, Type, types,
52 fn matches_input(ctx: &mut Lower<Inst>, input: InsnInput, op: Opcode) -> Option<IRInst> { in matches_input()
140 opcode: Opcode::Load, in is_mergeable_load()
210 matches_input(ctx, spec, Opcode::Ishl).and_then(|shift| { in matches_small_constant_shift()
240 if let Some(add) = matches_input(ctx, spec, Opcode::Iadd) { in lower_to_amode()
280 matches_input(ctx, InsnInput { insn: add, input }, Opcode::Uextend) in lower_to_amode()
/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()
110 static OPCODE_HANDLER_TABLE: [Handler; Opcode::MAX as usize + 1] = {
/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/machinst/
H A Dblockorder.rs66 use crate::ir::{Block, Function, Inst, Opcode};
188 Opcode::BrTable | Opcode::TryCall | Opcode::TryCallIndirect => { in new()

12