[PATCH] D57680: [llvm-objdump] Implement `-Mreg-names-raw`/`-std` options.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 4 04:55:09 PST 2019


ikudrin created this revision.
ikudrin added reviewers: jakehehrlich, jhenderson, grimar, asl, resistor, grosbach, craig.topper.
Herald added subscribers: rupprecht, kristof.beyls, javed.absar.
Herald added a project: LLVM.

The `--disassembler-options`, or `-M`, is used to customize the disassembler
and affect its output.

This patch implements two options which allow selecting names for registers
for ARM architecture. The `-raw` is what I came across in practice, and `-std`
is the same as the default name set.

Other options and architectures might be added later.


Repository:
  rL LLVM

https://reviews.llvm.org/D57680

Files:
  include/llvm/MC/MCInstPrinter.h
  include/llvm/Target/Target.td
  lib/MC/MCInstPrinter.cpp
  lib/Target/ARM/ARMRegisterInfo.td
  lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
  lib/Target/ARM/InstPrinter/ARMInstPrinter.h
  test/tools/llvm-objdump/ARM/reg-names.s
  tools/llvm-objdump/llvm-objdump.cpp
  utils/TableGen/AsmWriterEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57680.185025.patch
Type: text/x-patch
Size: 8730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190204/2594301f/attachment.bin>


More information about the llvm-commits mailing list