[PATCH] D65188: [MC] Support returning a structured rich disassembly output
Seiya Nuta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 22:08:06 PDT 2019
seiya created this revision.
Herald added subscribers: llvm-commits, rupprecht, hiraditya.
Herald added a reviewer: alexshap.
Herald added a project: LLVM.
seiya abandoned this revision.
seiya added a comment.
I'll re-submit this as a series of separate patches.
This patch introduces MCInstPrinter::setMarkupSpans, which allows the caller to
use the output of rich disassembly without parsing its output string.
An upcoming patch replaces markup() with startMarkup() and endMarkup().
This feature will be used for the highlighting feature in llvm-objdump.
[X86] X86ATTInstPrinter: replace markup with startMarkup/endMarkup
[llvm-objcopy] Implement highlighting
As the first step, this patch highlights some elements: registers and immediate values,
and some symbol names.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D65188
Files:
llvm/include/llvm/MC/MCInstPrinter.h
llvm/lib/MC/MCInstPrinter.cpp
llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.h
llvm/test/tools/llvm-objdump/Inputs/highlight.elf-x86_64
llvm/test/tools/llvm-objdump/highlight.test
llvm/tools/llvm-objdump/llvm-objdump.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65188.211412.patch
Type: text/x-patch
Size: 21191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190724/82fa40d3/attachment.bin>
More information about the llvm-commits
mailing list