HomePhabricator

CFGDiff: Simplify and generalize over all graph types

Authored by dblaikie on Mar 11 2020, 3:56 PM.

Description

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