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

Method call_signature

cranelift/codegen/src/ir/dfg.rs:1107–1114  ·  view source on GitHub ↗

Get the call signature of a direct or indirect call instruction. Returns `None` if `inst` is not a call instruction.

(&self, inst: Inst)

Source from the content-addressed store, hash-verified

1105 /// Get the call signature of a direct or indirect call instruction.
1106 /// Returns `None` if `inst` is not a call instruction.
1107 pub fn call_signature(&self, inst: Inst) -> Option<SigRef> {
1108 match self.insts[inst].analyze_call(&self.value_lists, &self.exception_tables) {
1109 CallInfo::NotACall => None,
1110 CallInfo::Direct(f, _) => Some(self.ext_funcs[f].signature),
1111 CallInfo::DirectWithSig(_, s, _) => Some(s),
1112 CallInfo::Indirect(s, _) => Some(s),
1113 }
1114 }
1115
1116 /// Like `call_signature` but returns none for tail call
1117 /// instructions and try-call (exception-handling invoke)

Calls 1

analyze_callMethod · 0.80

Tested by

no test coverage detected