[PATCH] D144900: [X86] Add DwarfRegNums for segment registers

Alex Brachet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 12:34:44 PST 2023


abrachet marked an inline comment as done.
abrachet added inline comments.


================
Comment at: llvm/lib/Target/X86/X86RegisterInfo.td:323
 // Segment registers
-def CS : X86Reg<"cs", 1>;
-def DS : X86Reg<"ds", 3>;
-def SS : X86Reg<"ss", 2>;
-def ES : X86Reg<"es", 0>;
-def FS : X86Reg<"fs", 4>;
-def GS : X86Reg<"gs", 5>;
+def CS : X86Reg<"cs", 1>, DwarfRegNum<[51, 41, -2]>;
+def DS : X86Reg<"ds", 3>, DwarfRegNum<[53, 43, -2]>;
----------------
mcgrathr wrote:
> The comment above says this should be: [x86-64, x86-32 Darwin EH, generic x86-32].
> So I think the -2 case is the middle one not the third one.
Good catch, I had remembered this the other way around.


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

https://reviews.llvm.org/D144900



More information about the llvm-commits mailing list