Page MenuHomePhabricator

Make TargetPassConfig and llc add pre/post passes the same way. NFC
ClosedPublic

Authored by dsanders on Apr 10 2020, 10:17 AM.

Details

Summary

At the moment, any changes we make to the passes that can be
injected before/after others (e.g. -verify-machineinstrs and
-print-after-all) have to be duplicated in both
TargetPassConfig (for normal execution, -start-before/
-stop-before/etc) and llc (for -run-pass). Unify this pass
injection into addMachinePrePass/addMachinePostPass that both
TargetPassConfig and llc can use.

Diff Detail

Event Timeline

dsanders created this revision.Apr 10 2020, 10:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2020, 10:17 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
arsenm accepted this revision.Apr 10 2020, 10:22 AM
This revision is now accepted and ready to land.Apr 10 2020, 10:22 AM
This revision was automatically updated to reflect the committed changes.