[llvm] [win][x64] Updated `llvm-objdump` and `llvm-readobj` to be able to dump Windows x64 Unwind v3 information. (PR #199120)
Daniel Paoliello via llvm-commits
llvm-commits at lists.llvm.org
Fri May 22 11:14:01 PDT 2026
================
@@ -221,6 +225,78 @@ struct UnwindInfo {
}
};
+//===----------------------------------------------------------------------===//
+// V3 Unwind Information
+//===----------------------------------------------------------------------===//
+
+/// V3 Winding Operation Descriptor opcodes.
+enum WODOpcode : uint8_t {
+ WOD_SET_FPREG = 0, // 8-bit opcode, 2 bytes
+ WOD_ALLOC_HUGE = 1, // 8-bit opcode, 5 bytes
+ WOD_ALLOC_LARGE = 2, // 8-bit opcode, 3 bytes
+ WOD_PUSH_CANONICAL_FRAME = 3, // 8-bit opcode, 2 bytes
+ WOD_PUSH = 4, // 3-bit opcode, 1 byte
+ WOD_SAVE_NONVOL_FAR = 5, // 3-bit opcode, 5 bytes
+ WOD_SAVE_NONVOL = 6, // 3-bit opcode, 3 bytes
+ WOD_PUSH_CONSECUTIVE_2 = 7, // 3-bit opcode, 1 byte
+ WOD_ALLOC_SMALL = 8, // 4-bit opcode, 1 byte
+ WOD_SAVE_XMM128_FAR = 9, // 4-bit opcode, 5 bytes
+ WOD_SAVE_XMM128 = 10, // 4-bit opcode, 3 bytes
+ WOD_PUSH2 = 32, // 6-bit opcode, 2 bytes
+};
+
+/// V3 EPILOG_INFO flags.
+enum EpilogInfoFlagsV3 : uint8_t {
+ EPILOG_PARENT_FRAGMENT_TRANSFER = 0x01,
+};
+
+/// Decoded V3 Winding Operation Descriptor.
+struct DecodedWOD {
+ WODOpcode Opcode;
+ uint8_t Register; // For applicable ops (5-bit for int, 4-bit for XMM)
+ uint8_t Register2; // For WOD_PUSH2
+ uint8_t Type; // For WOD_PUSH_CANONICAL_FRAME
----------------
dpaoliello wrote:
Done.
https://github.com/llvm/llvm-project/pull/199120
More information about the llvm-commits
mailing list