This is an archive of the discontinued LLVM Phabricator instance.

[MachineOutliner] Define MachineOutliner support in TargetOptions
ClosedPublic

Authored by paquette on Jun 27 2018, 4:34 PM.

Details

Summary

Targets should be able to define whether or not they support the outliner without the outliner being added to the pass pipeline. Before this, the outliner pass would be added, and ask the target whether or not it supports the outliner.

After this, it's possible to query the target in TargetPassConfig, before the outliner pass is created. This ensures that passing -enable-machine-outliner will not modify the pass pipeline of any target that does not support it.

Diff Detail

Event Timeline

paquette created this revision.Jun 27 2018, 4:34 PM
This revision is now accepted and ready to land.Jun 27 2018, 6:08 PM
paquette closed this revision.Jun 28 2018, 9:46 AM

Thanks!

Committed in r335872.

Argh. I accidentally pushed https://reviews.llvm.org/D48682 instead of this. I'll revert it and push this instead. I haven't had enough coffee this morning.

This was actually committed in r335887.

https://reviews.llvm.org/rL335887