[PATCH] Add method to MCInstPrinter for printing with disassembly context
colinl at codeaurora.org
colinl at codeaurora.org
Wed Mar 18 16:16:48 PDT 2015
Hi Bigcheese, rafael,
Add a virtual method to MCInstPrinter which allows backends to specialize how the instruction is printed.
Generally this allows backends greater ability to format their instructions when being printed with a disassembly context like with objdump.
Specifically on Hexagon this allows us to print VLIW instructions in an 80-column readable way by placing one instruction per line and putting the disassembled bytes next to the associated instruction.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8427
Files:
include/llvm/MC/MCInstPrinter.h
lib/MC/MCInstPrinter.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-objdump/llvm-objdump.h
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8427.22224.patch
Type: text/x-patch
Size: 4624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150318/f3558c3a/attachment.bin>
More information about the llvm-commits
mailing list