This is an archive of the discontinued LLVM Phabricator instance.

[ScheduleDAG] Move `Topo` and `addEdge` to base class.
ClosedPublic

Authored by courbet on Mar 22 2019, 3:39 AM.

Details

Reviewers
andreadb
Summary

Some DAG mutations can only be applied to ScheduleDAGMI, and have to
internally cast a ScheduleDAGInstrs to ScheduleDAGMI.

There is nothing actually specific to ScheduleDAGMI in Topo.

This allows using DAG mutations for other ScheduleDAG implementations (see D59688).