chisel replaceFuncWithImport --funcName "$memcpy" --import "env.$memcpy"
input:
* a wasm module with a named function (i.e. a function body in the wasm code)
output:
* the wasm module where the named function is an import instead, and the function body is deleted
Requested by cdetrio
Example: