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

Function scalar_const_32

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

Source from the content-addressed store, hash-verified

656}
657
658fn scalar_const_32(instr: Instruction, op_instr: Instruction) -> Option<i32> {
659 match instr {
660 Instruction::Const32(c) if int_bin_op_32(op_instr).is_some() || float_bin_op_32(op_instr).is_some() => Some(c),
661 _ => None,
662 }
663}
664
665fn scalar_const_64(instr: Instruction, op_instr: Instruction) -> Option<i64> {
666 match instr {

Callers

nothing calls this directly

Calls 2

int_bin_op_32Function · 0.85
float_bin_op_32Function · 0.85

Tested by

no test coverage detected