This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Add `-o` option to merge-fdata
ClosedPublic

Authored by kongyi on Jun 1 2022, 8:59 AM.

Diff Detail

Event Timeline

kongyi created this revision.Jun 1 2022, 8:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 8:59 AM
Herald added a subscriber: ayermolo. · View Herald Transcript
kongyi requested review of this revision.Jun 1 2022, 8:59 AM
kongyi updated this revision to Diff 433425.Jun 1 2022, 9:01 AM
Amir added a comment.Jun 1 2022, 9:07 AM

Can you please add a test for the option, covering -o file, -o - (stdout), and no -o modes?
bolt/test/X86/merge-fdata-bat-mode.test is a good reference for such a test.

kongyi updated this revision to Diff 433433.Jun 1 2022, 9:39 AM
Amir accepted this revision.Jun 1 2022, 9:56 AM

LGTM sans clang-format issue

bolt/tools/merge-fdata/merge-fdata.cpp
95

clang-format might complain about output variable name not being capitalized

This revision is now accepted and ready to land.Jun 1 2022, 9:56 AM
This revision was landed with ongoing or failed builds.Jun 1 2022, 10:29 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 10:29 AM