[ARM] Use searchable-table for banked registers
authorJaved Absar <javed.absar@arm.com>
Fri, 4 Aug 2017 17:10:11 +0000 (17:10 +0000)
committerJaved Absar <javed.absar@arm.com>
Fri, 4 Aug 2017 17:10:11 +0000 (17:10 +0000)
commit9cda5991514db77774044816fd7fbf8897300231
treedbb2be8bf831e53ef95f6145b289a480ad6f5779
parentda748f1c3d92f7bd02ee3292f3d9654d4f0f4a45
[ARM] Use searchable-table for banked registers

This is a continuation of https://reviews.llvm.org/D36219

This patch uses reverse mapping (encoding->name) in
ARMInstPrinter::printBankedRegOperand to get rid of
hard-coded values (as pointed out by @olista01).

Reviewed by: @fhahn, @rovka, @olista01
Differential Revision: https://reviews.llvm.org/D36260

llvm-svn: 310072
llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp