Wrapper to unify "old style" CallGraph and "new style" LazyCallGraph.
Declared in <llvm/Transforms/Utils/CallGraphUpdater.h>
class CallGraphUpdater;
This simplifies the interface and the call sites, e.g., new and old pass manager passes can share the same code.
| Name | Description |
|---|---|
CallGraphUpdater [constructor] | Default-construct a CallGraphUpdater with no attached call graph. |
~CallGraphUpdater [destructor] | Destroy the updater and finalize pending call-graph updates. |
finalize | Finalizer that will trigger actions like function removal from the CG. |
initialize | Initialize the updater for use inside a new-PM CGSCC pass. |
reanalyzeFunction | After an CGSCC pass changes a function in ways that affect the call graph, this method can be called to update it. |
registerOutlinedFunction | Update the call graph for a function created by outlining. |
removeFunction | Remove Fn from the call graph. |
replaceFunctionWith | Replace OldFn in the call graph (and SCC) with NewFn. |