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

Method clear_signature

cranelift/module/src/module.rs:873–875  ·  view source on GitHub ↗

Clear the given `Signature` and reset for use with a new function. This ensures that the `Signature` is initialized with the default calling convention for the `TargetIsa`.

(&self, sig: &mut ir::Signature)

Source from the content-addressed store, hash-verified

871 /// This ensures that the `Signature` is initialized with the default
872 /// calling convention for the `TargetIsa`.
873 fn clear_signature(&self, sig: &mut ir::Signature) {
874 sig.clear(self.isa().default_call_conv());
875 }
876
877 /// Declare a function in this module.
878 fn declare_function(

Callers

nothing calls this directly

Implementers 3

module.rscranelift/module/src/module.rs
backend.rscranelift/jit/src/backend.rs
backend.rscranelift/object/src/backend.rs

Calls 3

clearMethod · 0.45
default_call_convMethod · 0.45
isaMethod · 0.45

Tested by

no test coverage detected