[llvm] [WebAssembly] Add assembly support for final EH proposal (PR #107917)
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 16:17:51 PDT 2024
================
@@ -147,6 +178,8 @@ let isTerminator = 1, hasSideEffects = 1, isBarrier = 1, hasCtrlDep = 1,
// usage gets low enough.
// Rethrowing an exception: rethrow
+// The new exnref proposal also uses this instruction as an interim pseudo
----------------
dschuff wrote:
I think I see; before LateEHPrepare, there is no exnref that comes out of the catch, so it doesn't make sense to have a throw_ref either. So instead we have rethrow, which has semantics that are meaningful on their own in this phase of compilation even though they don't correspond to what we need at the end.
And yeah, given that rethrow is a meaningful concept independent of the legacy spec, I don't think we need to try to keep it labeled as legacy permanently.
https://github.com/llvm/llvm-project/pull/107917
More information about the llvm-commits
mailing list