This is an archive of the discontinued LLVM Phabricator instance.

llc: Add 'run-pass' option
ClosedPublic

Authored by arphaman on Jun 26 2015, 1:03 PM.

Details

Summary

This patch adds a 'run-pass' option to llc, which runs the compiler only for one specified pass.

Llc already has a 'start-after' and 'stop-after' option, and this option complements the other two by making
it easier to write tests that want to invoke a single pass only. The existing 'start-after' and 'stop-after' options
allow this already, but it's kind of awkward as you have to specify a name of an unrelated pass that runs before the
pass you want to test for the 'start-after' option.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 28591.Jun 26 2015, 1:03 PM
arphaman retitled this revision from to llc: Add 'run-pass' option.
arphaman updated this object.
arphaman edited the test plan for this revision. (Show Details)
arphaman added reviewers: bob.wilson, dexonsmith, bogner.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: Unknown Object (MLST).
This revision was automatically updated to reflect the committed changes.