OSDN Git Service

[AArch64][AsmParser] NFC: Cleanup of addOperands functions
authorSander de Smalen <sander.desmalen@arm.com>
Sun, 29 Apr 2018 18:18:21 +0000 (18:18 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Sun, 29 Apr 2018 18:18:21 +0000 (18:18 +0000)
commitf410192f884fff626cbe47c183c8c66a8b2a0050
tree170821d49ed7f2ecfe8b69cdce1d2fe03c6329a2
parent1f8d9bb51401b3fad4b764d1eb88cfeeaa1fafe5
[AArch64][AsmParser] NFC: Cleanup of addOperands functions

Most of the add<operandname>Operands() functions are the same
and can be replaced by using a single 'RenderMethod' in
the AArch64InstrFormats.td file. Since many of the scaled
immediates (with different scaling/bits) are the same, most of
these can reuse the same AsmOperandClass.

Reviewers: fhahn, rengolin, samparker, SjoerdMeijer, javed.absar

Reviewed By: samparker

Differential Revision: https://reviews.llvm.org/D46122

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331146 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrFormats.td
lib/Target/AArch64/AArch64SVEInstrInfo.td
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
lib/Target/AArch64/SVEInstrFormats.td