[lldb] Use llvm::MC for register numbers in AArch64 ABIs
authorPavel Labath <labath@google.com>
Thu, 14 May 2020 11:25:57 +0000 (13:25 +0200)
committerPavel Labath <pavel@labath.sk>
Thu, 14 May 2020 11:31:48 +0000 (13:31 +0200)
commit638efe3929cd3f62590462434d6397c150ad78ed
tree5267109b654d8d4a9dd20c29a566fece072b461c
parent2045189043d4e2748ed82915dd7bdf3e96728738
[lldb] Use llvm::MC for register numbers in AArch64 ABIs

Summary:
This is equivalent to previous patches (e.g. 07355c1c0) for the x86 ABIs.

One name fixup is needed -- lldb refers to the floating/vector registers by
their vector name (vN). Llvm does not use this name, so we map it to qN,
representing the register as a single 128 bit value (this choice is fairly
arbitrary -- any other name would also work fine as they all have the same
DWARF number).

Reviewers: JDevlieghere, jasonmolenda, omjavaid

Reviewed By: omjavaid

Subscribers: clayborg, danielkiss, aprantl, kristof.beyls, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D75607
lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp
lldb/source/Plugins/ABI/AArch64/ABIAArch64.h
lldb/source/Plugins/ABI/AArch64/ABIMacOSX_arm64.cpp
lldb/source/Plugins/ABI/AArch64/ABIMacOSX_arm64.h
lldb/source/Plugins/ABI/AArch64/ABISysV_arm64.cpp
lldb/source/Plugins/ABI/AArch64/ABISysV_arm64.h