This is an archive of the discontinued LLVM Phabricator instance.

Add quiet mode for mlir-opt
Needs ReviewPublic

Authored by jpienaar on Mar 4 2021, 12:15 PM.

Details

Summary

Allows running passes where the final case of interest is the result
(success/failure) of compilation pipeline rather than the result.
Not sure if too specialized, but for reproducer case testing I found and
even -o /dev/null felt wasteful.

Diff Detail

Event Timeline

jpienaar created this revision.Mar 4 2021, 12:15 PM
jpienaar requested review of this revision.Mar 4 2021, 12:15 PM

An alias to -o /dev/null does not pull its weight IMO, unless it really disable the printer. Is this possible to have this inside MlirOptMain to guard module->print(os);?