[AsmPrinter] Use getMnemonic for instruction-mix remark.
authorFlorian Hahn <flo@fhahn.com>
Tue, 17 Nov 2020 11:53:01 +0000 (11:53 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 17 Nov 2020 12:12:47 +0000 (12:12 +0000)
commita9adb62a640621814d528691b76964209505ebb8
treee2d3988745ea83eac2c8a55e4514c2192bb416a4
parentf0c690018ad1fb4746da3aca26a443c0f96530fa
[AsmPrinter] Use getMnemonic for instruction-mix remark.

This patch uses the new `getMnemonic` helper from D90039
to display mnemonics instead of the internal opcodes.

The main motivation behind using the mnemonics is that they
are more user-friendly and more directly related to the assembly
the users will be presented.

Reviewed By: paquette

Differential Revision: https://reviews.llvm.org/D90040
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/MC/MCAsmStreamer.cpp
llvm/test/CodeGen/AArch64/arm64-instruction-mix-remarks.ll