This is an archive of the discontinued LLVM Phabricator instance.

[GraphDiff] Use class method getChildren instead of GraphTraits.
ClosedPublic

Authored by asbirlea on Jul 24 2020, 3:30 PM.

Details

Summary

Use getChildren() method in GraphDiff instead of GraphTraits.

This simplifies the code and allows for refactorigns inside GraphDiff.
All usecase need not have a light-weight/copyable range.
Clean GraphTraits implementation.

Diff Detail

Event Timeline

asbirlea created this revision.Jul 24 2020, 3:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2020, 3:30 PM
dblaikie accepted this revision.Jul 24 2020, 6:43 PM

Looks good

llvm/lib/Analysis/MemorySSAUpdater.cpp
835–836

If the inverse edge part is going to be part of the "public" API, might be worth defining an enum for it, so you don't have to add a comment to every parameter like this. Fine to do that in a separate/follow-up commit.

This revision is now accepted and ready to land.Jul 24 2020, 6:43 PM
This revision was automatically updated to reflect the committed changes.