-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.Area: Enabling/disabling target features like AVX, Neon, etc.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/
Description
I wanted to use tuple in my code for wasm application. When i tried to compile my code to wasm using wasm32-unknown-unknown
code is compiled but its not returning any return. But I see multi-value is recently supported by webassembly community.
How can I use multivalue ?
My sample example (Note: I'm not using external library like wasm-bindgen
as i want to test with pure LLVM backend)
#[no_mangle]
pub extern fn test(x:u64, y:u64) -> (u64, u64) {
(x + y, x - y)
}
LLVM version: 9
Please suggest in this feature
Thanks
kajacx
Metadata
Metadata
Assignees
Labels
A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.Area: Enabling/disabling target features like AVX, Neon, etc.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/