[PATCH] D50479: Expose CFG Update struct. Define GraphTraits to get children given a snapshot CFG.
Jakub Kuderski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 9 13:05:15 PDT 2018
kuhar added a comment.
In https://reviews.llvm.org/D50479#1194111, @asbirlea wrote:
> Another issue with the above traits: is there a way to avoid some of the code duplication, since the only differences are the bool arguments to GraphDiff and succ/pred iterators?
I think you can create a base class with extra template parameters and then inherit from it, specializing the parameters you want. There's something similar in BlockFrequencyInfoImpl.h.
Repository:
rL LLVM
https://reviews.llvm.org/D50479
More information about the llvm-commits
mailing list