waffle icon indicating copy to clipboard operation
waffle copied to clipboard

Somehow support exceptions

Open gkgoat1 opened this issue 1 year ago • 1 comments

Rust added wasm unwinding using exceptions, so support would be great (both in the main repo and my fork)

Intruoduction: https://github.com/rust-lang/rust/pull/121438

gkgoat1 avatar Sep 01 '24 18:09 gkgoat1

@gkgoat1 if you're interested in working on this, I'd be happy to review the work! The main design question is how this manifests in the IR; we're addressing the parallel question over in Cranelift right now so I suspect we can wait to see how that looks (likely something like LLVM's invoke instruction, with two branch targets, putting the exceptional control flow into the CFG) and then follow whatever works.

cfallin avatar Sep 03 '24 16:09 cfallin