HomePhabricator

[ARM][Asm] Debug trace for the processInstruction loop
Audit RequiredrL348113

Description

[ARM][Asm] Debug trace for the processInstruction loop

In the Arm assembly parser, we first match an instruction, then call
processInstruction to possibly change it to a different encoding, to
match rules in the architecture manual which can't be expressed by the
table-generated matcher.

This adds debug printing so that this process is visible when using the
-debug option.

To support this, I've added a new overload of MCInst::dump_pretty which
takes the opcode name as a StringRef, since we don't have an InstPrinter
instance in the assembly parser. Instead, we can get the same
information directly from the MCInstrInfo.

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

Details

Auditors
grosbach
Committed
olista01Dec 3 2018, 2:21 AM
Differential Revision
D54852: [ARM][Asm] Debug trace for the processInstruction loop
Parents
rL348112: [KMSAN] Enable -msan-handle-asm-conservative by default
Branches
Unknown
Tags
Unknown