exception-handling
exception-handling copied to clipboard
LLVM support of the latest proposal
is anyone working on updating llvm support to the latest proposal? (try_table/exnref style instructions)
I'm planning to work on it. In the meantime, we provide a translator in Binaryen that translates old binaries to the new ones. You can use it via wasm-opt --experimental-new-eh
. This runs all other passes you specified and runs the translator at the end. This tool is new and still not very well tested, so it may have bugs. I'm in the process of testing it with larger programs. https://github.com/WebAssembly/binaryen/blob/feb8f24128c0c3bd53862b2f39acc5116f8ae87e/src/tools/wasm-opt.cpp#L245
@aheejin, please, urgently consider leaving the "old" (version 2) EH within LLVM once you implement the new one (like --wasm-native-exceptions-v2).
The "old" proposal was very good. I did fully implement it - and for sure it's not only me - and it would be a shame if all this work just will disappear at some point.