MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / num_inputs

Method num_inputs

cranelift/codegen/src/machinst/lower.rs:1444–1446  ·  view source on GitHub ↗

Get the number of inputs to the given IR instruction. This is a count only of the Value arguments to the instruction: block arguments will not be included in this count.

(&self, ir_inst: Inst)

Source from the content-addressed store, hash-verified

1442 /// Get the number of inputs to the given IR instruction. This is a count only of the Value
1443 /// arguments to the instruction: block arguments will not be included in this count.
1444 pub fn num_inputs(&self, ir_inst: Inst) -> usize {
1445 self.f.dfg.inst_args(ir_inst).len()
1446 }
1447
1448 /// Get the number of outputs to the given IR instruction.
1449 pub fn num_outputs(&self, ir_inst: Inst) -> usize {

Callers 1

is_mergeable_loadFunction · 0.80

Calls 2

inst_argsMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected