[PATCH] D76034: CFGDiff: Simplify and generalize over all graph types

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 11 16:00:11 PDT 2020


dblaikie created this revision.
dblaikie added a reviewer: asbirlea.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.

(I wonder if the special handling of inverted graphs can be avoided - it
adds more variations to this code than might be ideal - what's to stop
GraphDiff from not knowing anything about inversion and only using the
Inverse<T> traits to create inverses instead?)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76034

Files:
  llvm/include/llvm/IR/CFGDiff.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76034.249789.patch
Type: text/x-patch
Size: 6318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200311/bdec9516/attachment.bin>


More information about the llvm-commits mailing list