OSDN Git Service

[AArch64] Refactor immediate details out of add/sub tblgen class (NFCI)
authorOliver Stannard <oliver.stannard@arm.com>
Thu, 27 Sep 2018 16:19:04 +0000 (16:19 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Thu, 27 Sep 2018 16:19:04 +0000 (16:19 +0000)
commitbe394f1c51e2e6c8af2f784291234c144375dab2
tree9b67ba335d22ee0a1df91363b6b856757d4bee9d
parent5e78aca0435988438f54fe49cc092f035267ad95
[AArch64] Refactor immediate details out of add/sub tblgen class (NFCI)

Bits [23-22] are used in Add and Sub to specify the shift. The value of the
shift field must be 0x; values of 1x are unallocated. MTE adds some instructions
that use such encodings, and this patch refactors the Add/Sub class so that
another class could derive from this one to implement other encodings and other
formats of bitfields.

Patch by Pablo Barrio!

Differential revision: https://reviews.llvm.org/D52489

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343231 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrFormats.td