[ARM][AsmParser] Improve debug printing of parsed asm operands
authorOliver Stannard <oliver.stannard@arm.com>
Fri, 23 Nov 2018 14:27:21 +0000 (14:27 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Fri, 23 Nov 2018 14:27:21 +0000 (14:27 +0000)
commit173bc2bb7f75aab38c2c5a1f8d82704ef830a33e
treee4b451ce8b94c46a8314b7b5c3e20aa969ddafe2
parent07a8255a7879451269960276113f97c98c7f0cfc
[ARM][AsmParser] Improve debug printing of parsed asm operands

In ARMOperand::print:
- Print human-readable register names, instead of numbers.
- Print the correct names for IT condition masks (these were in the wrong order
  before).
- Print all parts of memory operands, not just the base register.

This makes the output of llvm-mc -show-inst-operands more readable.

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

llvm-svn: 347494
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp