CFGDiff: Simplify and generalize over all graph types
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 11 Mar 2020 22:56:24 +0000 (15:56 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 12 Mar 2020 17:45:45 +0000 (10:45 -0700)
commit30804d0a3fb23325c4b455108e59d00213b83891
treef25d67568e9a4091cb1ec8546175a7e883a0980b
parentf8700db7f150287b71453e4ae10dea79a2e4fb03
CFGDiff: Simplify and generalize over all graph types

Use GraphTraits in the implementation of the GraphDiff's own GraphTraits
so GraphDiff can be used across all graph types that provide
GraphTraits.

Also use partial template specializations to make the traits a bit more
compact.

Reviewers: asbirlea

Differential Revision: https://reviews.llvm.org/D76034
llvm/include/llvm/IR/CFGDiff.h