OSDN Git Service

[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)
commita21de3bd5b6e990512cb72a841213bb96a2695d6
tree7953cc098eb541186adab6f00ba01663b4f2a542
parent848dcbd04a7fcbc9216611e078921b4580e547f3
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347494 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp