This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Refine missing argument behavior
ClosedPublic

Authored by arsenm on Dec 22 2022, 11:06 AM.

Details

Summary

We required the test and input arguments for --print-delta-passes
which is unhelpful. Also, start printing the help output if no
arguments were supplied.

It looks like there's more sophisticated ways to accomplish this with
the opt library, but it was less work to manually emit these errors.

Diff Detail

Event Timeline

arsenm created this revision.Dec 22 2022, 11:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2022, 11:06 AM
arsenm requested review of this revision.Dec 22 2022, 11:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2022, 11:06 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 484908.Dec 22 2022, 11:21 AM

Forgot to save StringRef changes

regehr added a comment.Jan 3 2023, 8:29 AM

LGTM

(I actually wanted the "Don't require any other arguments for --print-delta-passes" just the other day)

regehr accepted this revision.Jan 3 2023, 8:30 AM
This revision is now accepted and ready to land.Jan 3 2023, 8:30 AM