pub fn lower_module(module: &IrModule) -> Result<Vec<u8>, ModuleLowerError>Expand description
Walk module and return the encoded core-Wasm bytes.
Top-level non-extern functions are emitted after the bump-
allocator runtime helper, so FunctionId(i) maps to wasm index
i + 1 (the helper occupies wasm index 0). Methods declared in
module.impls follow at wasm indices past the top-level
functions; the MethodMap hides the per-impl indexing from
call-site lowerings. FunctionMap hides the user-offset shift.
Nested module.modules are still not walked.