This is an archive of the discontinued LLVM Phabricator instance.

[MC] Support returning a structured rich disassembly output

Authored by seiya on Jul 23 2019, 10:07 PM.



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.

Event Timeline

seiya created this revision.Jul 23 2019, 10:07 PM
seiya abandoned this revision.Jul 23 2019, 10:07 PM

I'll re-submit this as a series of separate patches.