This is an archive of the discontinued LLVM Phabricator instance.

[RemarkUtil] Refactor remarkutil tool to use a command registry.
ClosedPublic

Authored by zjaffal on Jul 27 2023, 4:14 AM.

Details

Summary

In preperation to move all remark utilities into one tool. We use
command registry to breakdown each utility into a separate file.

For now we have 3 utilities for remarks

  1. Convert: which is responsible for converting yaml remarks to bitstream and vice-versa
  2. Count: Analyse remarks and report count. This currently only supports asm-remarks and annotation-summary remarks.
  3. Diff remarks: Currently we only have a diff for size remarks using llvm-remark-size-diff

The first two utilites have been simplified and seperated into two
files. The following commit will move llvm-remark-size-diff and fold
it to be inside llvm-remarkutil as a subcommand

Diff Detail

Event Timeline

zjaffal created this revision.Jul 27 2023, 4:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2023, 4:14 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
zjaffal requested review of this revision.Jul 27 2023, 4:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2023, 4:14 AM
thegameg accepted this revision.Jul 27 2023, 10:09 AM

Thanks!

This revision is now accepted and ready to land.Jul 27 2023, 10:09 AM
This revision was landed with ongoing or failed builds.Jul 28 2023, 1:21 AM
This revision was automatically updated to reflect the committed changes.
fhahn added a comment.Aug 1 2023, 3:03 AM

Great improvement, thanks!