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

Method import_signature

cranelift/codegen/src/ir/function.rs:251–253  ·  view source on GitHub ↗

Adds a signature which can later be used to declare an external function import.

(&mut self, signature: Signature)

Source from the content-addressed store, hash-verified

249
250 /// Adds a signature which can later be used to declare an external function import.
251 pub fn import_signature(&mut self, signature: Signature) -> SigRef {
252 self.dfg.signatures.push(signature)
253 }
254
255 /// Declares a global value accessible to the function.
256 pub fn create_global_value(&mut self, data: GlobalValueData) -> GlobalValue {

Callers 1

cloningFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 1

cloningFunction · 0.36