This is an archive of the discontinued LLVM Phabricator instance.

[GraphDiff] Make InverseGraph a property of a GraphDiff.
ClosedPublic

Authored by asbirlea on Aug 13 2018, 10:56 PM.

Details

Summary

Treating a graph in reverse is a property of the GraphDiff and should instead be a template argument, just like IsPostDom is one for DomTrees.
If it's just an argument to all methods, we could have mismatches between the constructor of the GraphDiff which may reverse the updates when filtering them, and the calls retrieving the filtered delete/insert updates.
Also, since this will be used in IDF, where we're using a DomTree, this creates a cleaner interface for the GraphTraits to use the existing template argument of DomTreeBase.

Separate patch from the one adding GraphDiff, so get a clear diff of what changed.

Diff Detail

Repository
rL LLVM

Event Timeline

asbirlea created this revision.Aug 13 2018, 10:56 PM
hiraditya accepted this revision.Aug 14 2018, 5:38 AM
This revision is now accepted and ready to land.Aug 14 2018, 5:38 AM
timshen accepted this revision.Aug 14 2018, 10:41 AM
This revision was automatically updated to reflect the committed changes.