exception-handling icon indicating copy to clipboard operation
exception-handling copied to clipboard

LLVM support of the latest proposal

Open yamt opened this issue 1 year ago • 2 comments

is anyone working on updating llvm support to the latest proposal? (try_table/exnref style instructions)

yamt avatar Feb 16 '24 04:02 yamt

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 avatar Feb 16 '24 18:02 aheejin

@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.

mf-RDP avatar Jul 20 '24 08:07 mf-RDP