[PATCH] D48260: [WebAssembly] Make rethrow instruction take a target BB argument

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 18 16:59:01 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL334998: [WebAssembly] Make rethrow instruction take a target BB argument (authored by aheejin, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D48260

Files:
  llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrControl.td


Index: llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrControl.td
===================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrControl.td
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrControl.td
@@ -152,8 +152,11 @@
                    [(int_wasm_throw imm:$tag, I64:$val)],
                    "throw   \t$tag, $val", "throw   \t$tag",
                    0x08>;
-defm RETHROW : NRI<(outs), (ins i32imm:$rel_depth), [], "rethrow \t$rel_depth",
-                   0x09>;
+defm RETHROW : NRI<(outs), (ins bb_op:$dst), [], "rethrow \t$dst", 0x09>;
+let isCodeGenOnly = 1 in
+// This is used when the destination for rethrow is the caller function. This
+// will be converted to a rethrow in CFGStackify.
+defm RETHROW_TO_CALLER : NRI<(outs), (ins), [], "rethrow">;
 } // isTerminator = 1, hasCtrlDep = 1, isBarrier = 1
 
 // Region within which an exception is caught: try / end_try


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48260.151825.patch
Type: text/x-patch
Size: 953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180618/6ea08ac7/attachment.bin>


More information about the llvm-commits mailing list