[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)
commitafe1ee218045c581078f4967fa54763cf50c6c8d
tree015a77587eb421985314c50c2e34448183245f61
parent50ded90072fa9504f93436951319d1a07169e1aa
[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

llvm-svn: 331146
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/lib/Target/AArch64/SVEInstrFormats.td