Introduce a CallGraph updater helper class
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 29 Nov 2019 19:11:24 +0000 (13:11 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sat, 8 Feb 2020 20:16:48 +0000 (14:16 -0600)
commit72277ecd62e28a01bb98866c1b15d5f172ed30dc
treeb44704bc5d6227d472dbeb90dcda2801231ccd1b
parentf8c9ceb1ce9c71574d413a6391812d46d9f9edb3
Introduce a CallGraph updater helper class

The CallGraphUpdater is a helper that simplifies the process of updating
the call graph, both old and new style, while running an CGSCC pass.

The uses are contained in different commits, e.g. D70767.

More functionality is added as we need it.

Reviewed By: modocache, hfinkel

Differential Revision: https://reviews.llvm.org/D70927
13 files changed:
llvm/include/llvm/Analysis/CallGraph.h
llvm/include/llvm/Analysis/LazyCallGraph.h
llvm/include/llvm/Transforms/Utils/CallGraphUpdater.h [new file with mode: 0644]
llvm/lib/Analysis/CallGraph.cpp
llvm/lib/Analysis/CallGraphSCCPass.cpp
llvm/lib/Analysis/LazyCallGraph.cpp
llvm/lib/Transforms/Utils/CMakeLists.txt
llvm/lib/Transforms/Utils/CallGraphUpdater.cpp [new file with mode: 0644]
llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
llvm/unittests/Analysis/CMakeLists.txt
llvm/unittests/Analysis/LazyCallGraphTest.cpp
llvm/unittests/IR/CMakeLists.txt
llvm/unittests/IR/LegacyPassManagerTest.cpp