[PATCH] D90039: [AsmWriter] Factor out mnemonic generation to accessible getMnemonic.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 06:37:00 PDT 2020


fhahn created this revision.
Herald added subscribers: kerbowa, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, atanasyan, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, fedor.sergeev, kbarton, hiraditya, jgravelle-google, sbc100, nhaehnle, jvesely, nemanjai, sdardis, dylanmckay, jyknight, dschuff, arsenm, jholewinski.
Herald added a project: LLVM.
fhahn requested review of this revision.
Herald added subscribers: MaskRay, aheejin.

This patch factors out the part of printInstruction that gets the
mnemonic string for a given MCInst. This is intended to be used
subsequently for the instruction-mix remarks to display the final
mnemonic.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90039

Files:
  llvm/include/llvm/MC/MCInstPrinter.h
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.h
  llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.h
  llvm/lib/Target/ARC/MCTargetDesc/ARCInstPrinter.h
  llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.h
  llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.h
  llvm/lib/Target/BPF/MCTargetDesc/BPFInstPrinter.h
  llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.h
  llvm/lib/Target/Lanai/MCTargetDesc/LanaiInstPrinter.h
  llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.h
  llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h
  llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXInstPrinter.h
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.h
  llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.h
  llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinter.h
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.h
  llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.h
  llvm/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.h
  llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h
  llvm/utils/TableGen/AsmWriterEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90039.300269.patch
Type: text/x-patch
Size: 18116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201023/813d42ff/attachment-0001.bin>


More information about the llvm-commits mailing list