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.
Paths
| Differential D84562
[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.
Diff Detail
Event TimelineComment Actions Looks good
This revision is now accepted and ready to land.Jul 24 2020, 6:43 PM Closed by commit rGf1d4db4f0cdc: [GraphDiff] Use class method getChildren instead of GraphTraits. (authored by asbirlea). · Explain WhyJul 27 2020, 4:13 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 281076 llvm/include/llvm/Analysis/IteratedDominanceFrontier.h
llvm/include/llvm/Analysis/MemorySSAUpdater.h
llvm/include/llvm/Support/CFGDiff.h
llvm/lib/Analysis/MemorySSAUpdater.cpp
|
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.