[PATCH] D107423: [WebAssembly] Make result of 'catch' inst variadic

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 4 12:38:48 PDT 2021


tlively accepted this revision.
tlively added a comment.
This revision is now accepted and ready to land.

LGTM, but I share Derek's question.



================
Comment at: llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp:212
+  case ISD::INTRINSIC_VOID: {
+    unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue();
+    switch (IntNo) {
----------------



================
Comment at: llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp:215-216
+    case Intrinsic::wasm_throw: {
+      int Tag =
+          cast<ConstantSDNode>(Node->getOperand(2).getNode())->getZExtValue();
+      SDValue SymNode = getTagSymNode(Tag, CurDAG);
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107423/new/

https://reviews.llvm.org/D107423



More information about the llvm-commits mailing list