Lines Matching refs:Opcode
3 use crate::ir::Opcode;
67 fn of_opcode(op: Opcode) -> Cost { in of_opcode()
70 Opcode::Iconst | Opcode::F32const | Opcode::F64const => Cost::new(1), in of_opcode()
73 Opcode::Uextend in of_opcode()
74 | Opcode::Sextend in of_opcode()
75 | Opcode::Ireduce in of_opcode()
76 | Opcode::Iconcat in of_opcode()
77 | Opcode::Isplit => Cost::new(1), 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()
87 | Opcode::Ushr in of_opcode()
88 | Opcode::Sshr => Cost::new(3), in of_opcode()
91 Opcode::Imul => Cost::new(10), in of_opcode()
120 pub(crate) fn of_pure_op(op: Opcode, operand_costs: impl IntoIterator<Item = Self>) -> Self { in of_pure_op() argument
126 pub(crate) fn of_skeleton_op(op: Opcode, arity: usize) -> Self { in of_skeleton_op() argument