OSDN Git Service

Remove CallGraphTraits and use equivalent methods in GraphTraits
authorEaswaran Raman <eraman@google.com>
Thu, 1 Feb 2018 19:40:35 +0000 (19:40 +0000)
committerEaswaran Raman <eraman@google.com>
Thu, 1 Feb 2018 19:40:35 +0000 (19:40 +0000)
commit51c934180b99f489089f62b5e3fba9f080e0e4ac
tree3e0668d8e5d60d221211e1dec5222b852adb0fec
parentc1676d54618919f3132ce04c2bade415b8d711c4
Remove CallGraphTraits and use equivalent methods in GraphTraits

Summary:
D42698 adds child_edge_{begin|end} and children_edges to GraphTraits
which are used here. The reason for this change is to make it easy to
use count propagation on ModulesummaryIndex. As it stands,
CallGraphTraits is in Analysis while ModuleSummaryIndex is in IR.

Reviewers: davidxl, dberlin

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D42703

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323994 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/CallGraph.h
include/llvm/Analysis/SyntheticCountsUtils.h
lib/Analysis/SyntheticCountsUtils.cpp