MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / scalar_const_64

Function scalar_const_64

crates/parser/src/optimize.rs:665–670  ·  view source on GitHub ↗
(instr: Instruction, op_instr: Instruction)

Source from the content-addressed store, hash-verified

663}
664
665fn scalar_const_64(instr: Instruction, op_instr: Instruction) -> Option<i64> {
666 match instr {
667 Instruction::Const64(c) if int_bin_op_64(op_instr).is_some() || float_bin_op_64(op_instr).is_some() => Some(c),
668 _ => None,
669 }
670}
671
672fn const_128(instr: Instruction, op_instr: Instruction) -> Option<ConstIdx> {
673 match instr {

Callers

nothing calls this directly

Calls 2

int_bin_op_64Function · 0.85
float_bin_op_64Function · 0.85

Tested by

no test coverage detected