[PATCH] D139048: [AArch64] Make opcode switch in tryARM64PackedUnwind comprehensive.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 12:07:39 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe65c5eebb8ed: [AArch64] Make opcode switch in tryARM64PackedUnwind comprehensive. (authored by efriedma).

Changed prior to commit:
  https://reviews.llvm.org/D139048?vs=479079&id=479379#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139048

Files:
  llvm/lib/MC/MCWin64EH.cpp


Index: llvm/lib/MC/MCWin64EH.cpp
===================================================================
--- llvm/lib/MC/MCWin64EH.cpp
+++ llvm/lib/MC/MCWin64EH.cpp
@@ -999,6 +999,23 @@
       // These are never canonical; they don't show up with the usual Arm64
       // calling convention.
       return false;
+    case Win64EH::UOP_AllocLarge:
+      // Allocations this large can't be represented in packed unwind (and
+      // usually don't fit the canonical form anyway because we need to use
+      // __chkstk to allocate the stack space).
+      return false;
+    case Win64EH::UOP_AddFP:
+      // "add x29, sp, #N" doesn't show up in the canonical pattern (except for
+      // N=0, which is UOP_SetFP).
+      return false;
+    case Win64EH::UOP_TrapFrame:
+    case Win64EH::UOP_Context:
+    case Win64EH::UOP_ClearUnwoundToCall:
+    case Win64EH::UOP_PushMachFrame:
+      // These are special opcodes that aren't normally generated.
+      return false;
+    default:
+      report_fatal_error("Unknown Arm64 unwind opcode");
     }
   }
   if (RegI > 10 || RegF > 8)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139048.479379.patch
Type: text/x-patch
Size: 1086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221201/4340a860/attachment.bin>


More information about the llvm-commits mailing list