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

Function missing_struct_return

cranelift/codegen/src/machinst/abi.rs:1458–1461  ·  view source on GitHub ↗

Returns true if the signature needs to be legalized.

(sig: &ir::Signature)

Source from the content-addressed store, hash-verified

1456
1457/// Returns true if the signature needs to be legalized.
1458fn missing_struct_return(sig: &ir::Signature) -> bool {
1459 sig.uses_special_param(ArgumentPurpose::StructReturn)
1460 && !sig.uses_special_return(ArgumentPurpose::StructReturn)
1461}
1462
1463fn ensure_struct_return_ptr_is_returned(sig: &ir::Signature) -> ir::Signature {
1464 // Keep in sync with Callee::new

Callers

nothing calls this directly

Calls 2

uses_special_paramMethod · 0.80
uses_special_returnMethod · 0.80

Tested by

no test coverage detected