This is an archive of the discontinued LLVM Phabricator instance.

[Polly][PM] Register polly passes with the opt tool for the new-pm path
ClosedPublic

Authored by philip.pfaffe on Aug 3 2017, 9:59 AM.

Details

Summary

When polly is linked into the tools because of the LLVM_POLLY_LINK_INTO_TOOLS option being set, we need to register its passes with the PassBuilder. Because polly is linked in, we can directly call its callback registration method, which registers the appropriate callbacks with the new PM's PassBuilder. This essentially follows exactly the way it worked with the legacy PM.

Event Timeline

philip.pfaffe created this revision.Aug 3 2017, 9:59 AM
grosser accepted this revision.Aug 3 2017, 11:13 AM

LGTM.

This revision is now accepted and ready to land.Aug 3 2017, 11:13 AM
This revision was automatically updated to reflect the committed changes.